summaryrefslogtreecommitdiffstats
path: root/etc/rc.newwanipv6
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-03 17:44:58 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-04 09:06:07 -0300
commitaa752473de6736186ee0ab6355046b6383521091 (patch)
tree97011dde375a7b21b0652d08554a578a796be3f1 /etc/rc.newwanipv6
parent6c6ca768a0165db69c3a12fcb398c7b0be8925cb (diff)
downloadpfsense-aa752473de6736186ee0ab6355046b6383521091.zip
pfsense-aa752473de6736186ee0ab6355046b6383521091.tar.gz
Only reload racoon when there is at least one tunnel enabled on the interface used to call rc.newwanip(v6). It fixes #2922
Diffstat (limited to 'etc/rc.newwanipv6')
-rwxr-xr-xetc/rc.newwanipv64
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.newwanipv6 b/etc/rc.newwanipv6
index 1bd4553..287ea6a 100755
--- a/etc/rc.newwanipv6
+++ b/etc/rc.newwanipv6
@@ -135,7 +135,7 @@ if (is_ipaddrv6($oldipv6)) {
// Still need to sync VPNs on PPPoE and such, as even with the same IP the VPN software is unhappy with the IP disappearing.
if (in_array($config['interfaces'][$interface]['ipaddrv6'], array('pppoe', 'pptp', 'ppp'))) {
/* reconfigure IPsec tunnels */
- vpn_ipsec_force_reload();
+ vpn_ipsec_force_reload($interface);
/* start OpenVPN server & clients */
openvpn_resync_all($interface);
@@ -154,7 +154,7 @@ services_dnsupdate_process($interface);
services_dyndns_configure($interface);
/* reconfigure IPsec tunnels */
-vpn_ipsec_force_reload();
+vpn_ipsec_force_reload($interface);
/* start OpenVPN server & clients */
if (substr($interface_real, 0, 4) != "ovpn")
OpenPOWER on IntegriCloud