summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-12-26 01:59:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-12-26 01:59:11 +0000
commitd1d7f6631b529ee388c84b030debf109c295e6de (patch)
tree98c823736cf36ff7e603ba1f350989d98b2d16f2 /etc/inc/vpn.inc
parent3674284cd2b7a4cb3c9d99da9a45bb3a26edc712 (diff)
downloadpfsense-d1d7f6631b529ee388c84b030debf109c295e6de.zip
pfsense-d1d7f6631b529ee388c84b030debf109c295e6de.tar.gz
Alert that we are auto establishing tunnel
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 2930128..6439890 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -553,13 +553,17 @@ EOD;
/* start racoon */
mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf");
+ usleep(100);
+
if (is_array($ipseccfg['tunnel'])) {
foreach ($ipseccfg['tunnel'] as $tunnel) {
if (isset($tunnel['auto'])) {
$remotehost = substr($tunnel['remote-subnet'],0,strpos($tunnel['remote-subnet'],"/"));
$srchost = vpn_endpoint_determine($tunnel, $curwanip);
- if ($srchost)
+ if ($srchost) {
+ log_error("Bringing ipsec tunnel up with ping -c 10 -S {$srchost} {$remotehost}");
mwexec_bg("/sbin/ping -c 10 -S {$srchost} {$remotehost}");
+ }
}
}
}
OpenPOWER on IntegriCloud