vpncfg {connections { enabled = yes; editable= yes; use_ikev2 = no; conn_type = conntype_lan; name = "VPN"; always_renew = yes; reject_not_encrypted = no; dont_filter_netbios = yes; localip = 2.2.2.2; local_virtualip = 0.0.0.0; remoteip = 1.1.1.1; remote_virtualip = 0.0.0.0; localid { fqdn = "SECRET"; } remoteid { fqdn = "SECRET"; } mode = phase1_mode_aggressive; phase1ss = "all/all/all"; keytype = connkeytype_pre_shared; key = "SECRET"; cert_do_server_auth = no; use_nat_t = yes; use_xauth = no; use_cfgmode = no; phase2localid { ipnet { ipaddr = 172.16.9.0; mask = 255.255.255.0; } } phase2remoteid { ipnet { ipaddr = 172.16.1.0; mask = 255.255.255.0; } } phase2ss = "esp-aes256-3des-sha/ah-all-sha/comp-lzs-no/pfs"; accesslist = "permit ip any mask 255.255.255.0 172.16.1.0 255.255.255.0"; } ike_forward_rules = "udp 0.0.0.0:500 0.0.0.0:500", "udp 0.0.0.0:4500 0.0.0.0:4500";}