summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-04-26 15:11:43 +0000
committerErmal Luçi <eri@pfsense.org>2009-04-26 15:11:43 +0000
commitf3c8bd98aa5eb861245610b05893a9ba3700ffd3 (patch)
treeb4962ecdc3696c2f19a5c8b8578517a4692d7794 /etc/inc/vpn.inc
parent60120e37425e3e0147bbc3a0cfe010c124ba0df6 (diff)
downloadpfsense-f3c8bd98aa5eb861245610b05893a9ba3700ffd3.zip
pfsense-f3c8bd98aa5eb861245610b05893a9ba3700ffd3.tar.gz
Fix a spd.conf not loading changes issue.
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 3a05094..585f7f1 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -825,6 +825,8 @@ EOD;
sleep("0.1");
log_error("IPSEC: Sent a reload signal to the IPsec process");
mwexec("/usr/local/sbin/racoonctl -s /var/run/racoon.sock reload-config", false);
+ /* load SPD without flushing to be safe on config additions or changes. */
+ mwexec("/usr/local/sbin/setkey -f {$g['varetc_path']}/spd.conf", false);
} else {
/* flush SA + SPD entries */
mwexec("/usr/local/sbin/setkey -FP", false);
OpenPOWER on IntegriCloud