26: Configuring IPSec 
_______________________________________________________________________________________________________ 
_____________________________________________________________________________________________________ 
© Virtual Access 2017 
GW1000 Series User Manual 
Issue: 1.9    Page 240 of 350 
uci set strongswan.@connection[0].dpdaction=hold  
uci set strongswan.@connection[0].dpddelay=30s  
uci set strongswan.@connection[0].dpdtimeout=150s  
uci add strongswan secret  
uci set strongswan.@secret[0].enabled=yes  
uci set strongswan.@secret[0].secrettype=psk  
uci set strongswan.@secret[0].secret=secret  
 
This will create package strongswan.  
config general 'general'  
option enabled 'yes'  
option strictcrlpolicy 'no'  
option uniqueids 'yes'  
option cachecrls 'yes'  
option nattraversal 'yes'  
 config connection  
option enabled 'yes'  
option name 'dmvpn'  
option type 'transport'  
option localproto 'gre'  
option remoteproto 'gre'  
option ike 'aes-sha1-modp1024'  
option esp 'aes128-sha1'  
option waniface 'lan4'  
option auto 'ignore'  
option ikelifetime '28800s'  
option keylife '300s'  
option rekeymargin '30s'  
option keyingtries '%forever'  
option dpdaction 'hold'  
option dpddelay '30s'  
option dpdtimeout '150s'  
config secret  
option enabled 'yes'  
option secrettype 'psk'  
option secret 'secret'