diff options
author | Ermal Luçi <eri@pfsense.org> | 2009-04-26 15:11:43 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2009-04-26 15:11:43 +0000 |
commit | f3c8bd98aa5eb861245610b05893a9ba3700ffd3 (patch) | |
tree | b4962ecdc3696c2f19a5c8b8578517a4692d7794 /etc/inc/vpn.inc | |
parent | 60120e37425e3e0147bbc3a0cfe010c124ba0df6 (diff) | |
download | pfsense-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.inc | 2 |
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); |