summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2010-01-28 20:15:10 +0000
committerErmal Luçi <eri@pfsense.org>2010-01-28 20:15:10 +0000
commit1900c4b701171b50f561bada9e92907d0392bc43 (patch)
treed1a48163550e9e7dccd20bb9253a4056281bd35b /etc/inc/vpn.inc
parent5a73004904de39f4383b58a6eea8f71b2ad839f2 (diff)
downloadpfsense-1900c4b701171b50f561bada9e92907d0392bc43.zip
pfsense-1900c4b701171b50f561bada9e92907d0392bc43.tar.gz
Do not fail to create racoon.conf if there is no ip on wan. this might be a valid config.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc9
1 files changed, 0 insertions, 9 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index df6ad6a..a268808 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -115,8 +115,6 @@ function vpn_ipsec_configure($ipchg = false)
for ($x = 0; $x < $number_of_gifs; $x++)
mwexec("/sbin/ifconfig gif" . $x . " delete");
- $curwanip = get_interface_ip();
-
$syscfg = $config['system'];
$ipseccfg = $config['ipsec'];
$a_phase1 = $config['ipsec']['phase1'];
@@ -156,13 +154,6 @@ function vpn_ipsec_configure($ipchg = false)
/* fastforwarding is not compatible with ipsec tunnels */
mwexec("/sbin/sysctl net.inet.ip.fastforwarding=0");
- if (!$curwanip) {
- /* IP address not configured yet, exit */
- if ($g['booting'])
- echo "done\n";
- return 0;
- }
-
/* this loads a route table which is used to determine if a route needs to be removed. */
exec("/usr/bin/netstat -rn", $route_arr, $retval);
$route_str = implode("\n", $route_arr);
OpenPOWER on IntegriCloud