diff options
author | jim-p <jimp@pfsense.org> | 2012-09-14 12:36:22 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-09-14 12:36:22 -0400 |
commit | 611b65a8ab2dd99aa440ca9e6d172991648a7129 (patch) | |
tree | 6264b853c50b6488bd34540ca3d0d09eaab3246d | |
parent | 140f30ea44e64176d45287ea687775eef4f419e0 (diff) | |
download | pfsense-611b65a8ab2dd99aa440ca9e6d172991648a7129.zip pfsense-611b65a8ab2dd99aa440ca9e6d172991648a7129.tar.gz |
Force resync of vpns and dns even if the IP doesn't change in rc.newwanip, since we could be doing failover/failback for these services.
-rwxr-xr-x | etc/rc.newwanip | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 480f5a2..2812d4b 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -162,14 +162,21 @@ setup_gateways_monitor(); filter_configure(); if (is_ipaddr($oldip) && $curwanip == $oldip) { - // 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]['ipaddr'], array('pppoe', 'pptp', 'ppp'))) { - /* reconfigure IPsec tunnels */ - vpn_ipsec_force_reload(); + /* We need to force sync VPNs on such even when the IP is the same. Even with + * the same IP the VPN software is unhappy with the IP disappearing, and we + * could be failing back in which case we need to switch IPs back anyhow. */ - /* start OpenVPN server & clients */ - openvpn_resync_all($interface); - } + /* reconfigure IPsec tunnels */ + vpn_ipsec_force_reload(); + + /* start OpenVPN server & clients */ + openvpn_resync_all($interface); + + /* perform RFC 2136 DNS update */ + services_dnsupdate_process($interface); + + /* signal dyndns update */ + services_dyndns_configure($interface); exit; } |