diff options
author | Ermal <eri@pfsense.org> | 2010-03-29 14:44:16 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-29 14:45:02 +0000 |
commit | c64d5028932d6dd025599d872c50f9c658d21dfd (patch) | |
tree | 83d36aefbd296ae7ce3434dafc0890c1eda56384 /etc/inc | |
parent | 68465fab8c4aeba39fcd793f208b667a1ebb4afc (diff) | |
download | pfsense-c64d5028932d6dd025599d872c50f9c658d21dfd.zip pfsense-c64d5028932d6dd025599d872c50f9c658d21dfd.tar.gz |
Do not enable fastforwarding with ipsec. Silence command because default gw might not exist yet.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/system.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index aef94c9..7a01513 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -245,7 +245,7 @@ function system_routing_configure() { } /* Enable fast routing, if enabled */ - if(isset($config['staticroutes']['enablefastrouting'])) + if(isset($config['staticroutes']['enablefastrouting']) && !isset($config['ipsec']['enable'])) mwexec("/sbin/sysctl net.inet.ip.fastforwarding=1"); $route_str = exec_command("/usr/bin/netstat -rnf inet"); @@ -316,7 +316,7 @@ function system_routing_configure() { if(($interfacegw <> "bgpd") && (is_ipaddr($gatewayip))) { preg_match("/default[ ]+([0-9].*?)[ ]+/i", $route_str, $elements); if(trim($elements[1]) != "$gatewayip") { - mwexec("/sbin/route delete default " . escapeshellarg($gatewayip), false); + mwexec("/sbin/route delete default " . escapeshellarg($gatewayip), true); } mwexec("/sbin/route add default " . escapeshellarg($gatewayip), true); } |