summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanip
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-29 17:22:32 +0000
committerErmal <eri@pfsense.org>2010-03-29 17:22:32 +0000
commitc7f60193594ccb20e22150c6058570fbc685ce75 (patch)
treee065b9ac0cc6600b70bf53dfdbcb698f95724b46 /etc/rc.newwanip
parent9a985f9e4bb5ecd6b985d0e7e471d0d4240068ce (diff)
downloadpfsense-c7f60193594ccb20e22150c6058570fbc685ce75.zip
pfsense-c7f60193594ccb20e22150c6058570fbc685ce75.tar.gz
Ticket #449. Teach OpenVPN to reload only tunnels for the specified interface. Use this is rc.newwanip script to reload only these tunnels.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-xetc/rc.newwanip3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip
index aad0baa..4dd7f41 100755
--- a/etc/rc.newwanip
+++ b/etc/rc.newwanip
@@ -39,6 +39,7 @@ require_once("filter.inc");
require_once("shaper.inc");
require_once("ipsec.inc");
require_once("vpn.inc");
+require_once("openvpn.inc");
/* Interface IP address has changed */
@@ -82,7 +83,7 @@ file_put_contents("/tmp/update_dyndns", $interface);
vpn_ipsec_force_reload();
/* start OpenVPN server & clients */
-exec("killall -HUP openvpn 2>/dev/null");
+openvpn_resync_all($interface);
/* signal filter reload */
unlink_if_exists("/tmp/config.cache");
OpenPOWER on IntegriCloud