diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-06-10 19:44:44 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-06-10 19:44:44 +0200 |
commit | 0559161320438f942e48c50263043d975be6fc21 (patch) | |
tree | c000b4c4281c4892f2540c96e7b061abd8f5a325 /etc | |
parent | b8947f8f20572c5c34805a894feaa705dae47bab (diff) | |
download | pfsense-0559161320438f942e48c50263043d975be6fc21.zip pfsense-0559161320438f942e48c50263043d975be6fc21.tar.gz |
Fixes #4537 On 32bit platform do not enable direct dispatch on IPsec since it crashes the system
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vpn.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 068ca00..437f148 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -154,6 +154,9 @@ function vpn_ipsec_configure($restart = false) { mwexec("/sbin/ifconfig enc0 up"); set_single_sysctl("net.inet.ip.ipsec_in_use", "1"); + if (php_uname('m') != "amd64") + set_single_sysctl("net.inet.ipsec.directdispatch", "0"); + /* needed for config files */ if (!is_dir("{$g['varetc_path']}/ipsec")) { mkdir("{$g['varetc_path']}/ipsec"); |