summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-03 22:37:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-03 22:37:09 +0000
commit94fa383863c206f3a0995af87151ead27cfef467 (patch)
tree0281d539634342993f3f3bccc3c83d77ec94c4fa
parent9cbec8205c4120202a723c503456eaaefe8d5a90 (diff)
downloadpfsense-94fa383863c206f3a0995af87151ead27cfef467.zip
pfsense-94fa383863c206f3a0995af87151ead27cfef467.tar.gz
Do not call filer_configure() if booting. set /tmp/filter_boot_dirty flag.
-rw-r--r--etc/inc/vpn.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index e157020..e3a42a6 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -492,6 +492,7 @@ EOD;
chmod("{$g['varetc_path']}/psk.txt", 0600);
/* start racoon */
+ echo " racoon ";
mwexec("/usr/local/sbin/racoon -d -f {$g['varetc_path']}/racoon.conf");
if (is_array($ipseccfg['tunnel'])) {
@@ -500,7 +501,7 @@ EOD;
$remotehost = substr($tunnel['remote-subnet'],0,strpos($tunnel['remote-subnet'],"/"));
$srchost = vpn_endpoint_determine($tunnel, $curwanip);
if ($srchost)
- mwexec_bg("/sbin/ping -c 1 -S {$srchost} {$remotehost}");
+ mwexec_bg("/sbin/ping -c 5 -S {$srchost} {$remotehost}");
}
}
}
@@ -508,8 +509,8 @@ EOD;
}
if (!$g['booting']) {
- /* reload the filter */
- filter_configure();
+ /* set the reload filter dity flag */
+ touch("{$g['tmp_path']}/filter_boot_dirty");
}
if ($g['booting'])
OpenPOWER on IntegriCloud