diff options
author | jim-p <jimp@pfsense.org> | 2010-12-16 10:12:54 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-16 10:12:54 -0500 |
commit | 9c4c5e80b7dbda4386604e23f78bd558fc9acdfe (patch) | |
tree | 9e2974274a93b057a70d991d39df8934ff58cc10 /etc/rc.newwanip | |
parent | ebbae443c70a6428e1e00e8a58ca4bdddd9d9741 (diff) | |
download | pfsense-9c4c5e80b7dbda4386604e23f78bd558fc9acdfe.zip pfsense-9c4c5e80b7dbda4386604e23f78bd558fc9acdfe.tar.gz |
If the IP stays the same, still resync VPNs if it's a PPP type interface.
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 4735994..a31cddc 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -95,8 +95,17 @@ setup_gateways_monitor(); /* signal filter reload */ filter_configure(); -if (is_ipaddr($oldip) && $curwanip == $oldip) +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(); + + /* start OpenVPN server & clients */ + openvpn_resync_all($interface); + } exit; +} /* perform RFC 2136 DNS update */ services_dnsupdate_process($interface); |