summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-02-05 09:11:05 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-02-05 09:11:05 +0000
commitc9c9ad4a8d2847537c7ef7b376b94fdcbab84e1f (patch)
treebb13db14b7acea46ca66d723e8b7c4784639b205
parentaf668fad5eabf1233221470616fba96485b5769f (diff)
downloadpfsense-c9c9ad4a8d2847537c7ef7b376b94fdcbab84e1f.zip
pfsense-c9c9ad4a8d2847537c7ef7b376b94fdcbab84e1f.tar.gz
With the current Racoon we need to inform that we are reloading our SPD
entries with a SIGHUP
-rw-r--r--etc/inc/vpn.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 61ad7d6..159e916 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -615,6 +615,8 @@ EOD;
mwexec("/sbin/setkey -F");
/* load SPD */
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
+ /* We are already online, reload */
+ mwexec("/usr/bin/killall -HUP racoon");
} else {
/* start racoon */
mwexec("/usr/local/sbin/racoon -f {$g['varetc_path']}/racoon.conf");
@@ -623,6 +625,8 @@ EOD;
mwexec("/sbin/setkey -F");
/* load SPD */
mwexec("/sbin/setkey -f {$g['varetc_path']}/spd.conf");
+ /* We are already online, reload */
+ mwexec("/usr/bin/killall -HUP racoon");
/* start dnswatch, if necessary */
if (count($dnswatch_list) > 0) {
OpenPOWER on IntegriCloud