diff options
author | jim-p <jimp@pfsense.org> | 2012-12-17 08:24:32 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-12-17 08:24:32 -0500 |
commit | c69c37b6b0f549e767286fefd7c89bd09a279468 (patch) | |
tree | d8902b348dc1d0010e8c7d16be237dda87dd5a34 /etc/inc/openvpn.inc | |
parent | 37e67d04cdac74de1a5a38cf0f3f35fee20f38f7 (diff) | |
download | pfsense-c69c37b6b0f549e767286fefd7c89bd09a279468.zip pfsense-c69c37b6b0f549e767286fefd7c89bd09a279468.tar.gz |
Needs more thought - might route something an unintended path. Perhaps a checkbox. Revert "Exclude the VPN peer from routes so as to not break connectivity to the actual VPN peer if a route includes its IP."
This reverts commit 5d8e8c9d25b55c6d3260e69fcf4620f76488d173.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc index 82b9d3b..df34539 100644 --- a/etc/inc/openvpn.inc +++ b/etc/inc/openvpn.inc @@ -525,7 +525,6 @@ function openvpn_reconfigure($mode, $settings) { if ($settings['local_network']) { list($ip, $mask) = explode('/', $settings['local_network']); $mask = gen_subnet_mask($mask); - $conf .= "push \"route remote_host 255.255.255.255 net_gateway\"\n"; $conf .= "push \"route $ip $mask\"\n"; } if ($settings['local_networkv6']) { @@ -616,7 +615,6 @@ function openvpn_reconfigure($mode, $settings) { if ((substr($settings['mode'], 0, 3) == "p2p") && is_subnet($settings['remote_network'])) { list($ip, $mask) = explode('/', $settings['remote_network']); $mask = gen_subnet_mask($mask); - $conf .= "route remote_host 255.255.255.255 net_gateway\n"; $conf .= "route $ip $mask\n"; } // Add a remote network route if set, and only for p2p modes. |