diff options
author | Ermal <eri@pfsense.org> | 2010-12-06 18:16:07 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-12-06 18:16:07 +0000 |
commit | 6706a83a06d00d7e0c504139f308b77c3e2c79c0 (patch) | |
tree | 7bcd28b91112b04456899c6d466d4ce3cb4a2d54 /etc/inc | |
parent | dcadda5558ec76bf5c1d4476b618d9d1635f628b (diff) | |
download | pfsense-6706a83a06d00d7e0c504139f308b77c3e2c79c0.zip pfsense-6706a83a06d00d7e0c504139f308b77c3e2c79c0.tar.gz |
Do the setting earlier to not miss any code and make ipsec not work.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/vpn.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 7c045d2..e8cc824 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -118,6 +118,7 @@ function vpn_ipsec_configure($ipchg = false) return true; } else { mwexec("/sbin/ifconfig enc0 up"); + mwexec("/sbin/sysctl net.inet.ip.ipsec_in_use=1"); if ($g['booting']) echo "Configuring IPsec VPN... "; @@ -877,7 +878,6 @@ EOD; sleep("0.1"); mwexec("/usr/local/sbin/setkey -F", false); sleep("0.1"); - exec("/sbin/sysctl net.inet.ip.ipsec_in_use=1"); /* start racoon */ mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf", false); sleep("0.1"); @@ -1721,4 +1721,4 @@ function vpn_ipsec_configure_preferoldsa() { mwexec("/sbin/sysctl net.key.preferred_oldsa=0"); } -?>
\ No newline at end of file +?> |