summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2012-04-23 22:11:26 -0400
committerChris Buechler <cmb@pfsense.org>2012-04-23 22:14:02 -0400
commit58070e1cf7526bdceedf20b0f805de76bcae0559 (patch)
tree9be958894055cbe406f0539de0239a2d61a357f2 /etc
parent2fc4190fafc4c8319da340b1ef4a6c2c9a5bf980 (diff)
downloadpfsense-58070e1cf7526bdceedf20b0f805de76bcae0559.zip
pfsense-58070e1cf7526bdceedf20b0f805de76bcae0559.tar.gz
routes should not be skipped when IPsec is on WAN, as WAN may not be the default gateway.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index e65708a..0e21c68 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -911,7 +911,7 @@ EOD;
else
$parentinterface = $ph1ent['interface'];
- if (($parentinterface <> "wan") && (is_ipaddr($rgip))) {
+ if (is_ipaddr($rgip)) {
/* add endpoint routes to correct gateway on interface */
if (interface_has_gateway($parentinterface)) {
$gatewayip = get_interface_gateway("$parentinterface");
@@ -928,8 +928,7 @@ EOD;
}
}
}
- } else if(is_ipaddr($rgip))
- mwexec("/sbin/route delete -host {$rgip}", true);
+ }
}
}
OpenPOWER on IntegriCloud