2.3.2p1 Dyndns don't updates on Dual WAN failover
-
Hello.
I have my system with two WANs (FO, WIMAX) configured as failover. Both interfaces connect with PPPOE.
I defined a gateway group with FO as Tier1 and WIMAX as Tier2. Gateway monitor and DNS server for FO is 8.8.8.8, GW and DNS for WIMAX is 4.4.4.4
I added LAN rules to pass connections through GW Group (terra).
I have Dynamic DNS configured with dyndns and sync with GW Group.
When I disconnect FO, automatically WIMAX is used, the failover works.
Dyndns widget shows public IP in red color (not updated). I wait several minutes but it doesn't turns on green. If I enter in dynamic DNS config and click on save and force update the IP is updated intermediately.
Then I reconnect FO dyndns ip turns red again as not updated but pfsense don't update it until I force to update it.
I tried several times but dyndns is not updated unless I force it.
I extracted this info from logs filtering dydns, beware every group is ordered from new to old.FO cable disconnect
–-----------------
Feb 18 11:07:39 php-fpm 53880 /rc.dyndns.update: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:07:39 php-fpm 53880 /rc.dyndns.update: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:07:38 check_reload_status updating dyndns FIBRA_PPPOEForcing Dyndns Update
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: phpDynDNS (DYNDNS.ALIAS.COM): (Success) IP Address Changed Successfully! (WIMAX.PUBLIC.IP)
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_Terradyndns'DYNDNS.ALIAS.COM'0.cache: WIMAX.PUBLIC.IP
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): WIMAX.PUBLIC.IP extracted from local system.
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _checkStatus() starting.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _update() starting.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS (DYNDNS.ALIAS.COM): running get_failover_interface for Terra. found pppoe1
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): WIMAX.PUBLIC.IP extracted from local system.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Feb 18 11:15:20 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:20 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:45 php-fpm 45925 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:45 php-fpm 45925 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:39 php-fpm 45925 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:39 php-fpm 45925 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!FO cable reconnect
Feb 18 11:19:39 check_reload_status updating dyndns wan
Forcing Dyndns update
Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: phpDynDNS (DYNDNS.ALIAS.COM): (Success) IP Address Changed Successfully! (FO.PUBLIC.IP)
Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_Terradyndns'DYNDNS.ALIAS.COM'0.cache: FO.PUBLIC.IP
Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): FO.PUBLIC.IP extracted from local system.
Feb 18 11:23:43 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _checkStatus() starting.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _update() starting.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS (DYNDNS.ALIAS.COM): running get_failover_interface for Terra. found pppoe0
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): FO.PUBLIC.IP extracted from local system.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting -
Hello.
I have my system with two WANs (FO, WIMAX) configured as failover. Both interfaces connect with PPPOE.
I defined a gateway group with FO as Tier1 and WIMAX as Tier2. Gateway monitor and DNS server for FO is 8.8.8.8, GW and DNS for WIMAX is 4.4.4.4
I added LAN rules to pass connections through GW Group (terra).
I have Dynamic DNS configured with dyndns and sync with GW Group.
When I disconnect FO, automatically WIMAX is used, the failover works.
Dyndns widget shows public IP in red color (not updated). I wait several minutes but it doesn't turns on green. If I enter in dynamic DNS config and click on save and force update the IP is updated intermediately.
Then I reconnect FO dyndns ip turns red again as not updated but pfsense don't update it until I force to update it.
I tried several times but dyndns is not updated unless I force it.
I extracted this info from logs filtering dydns, beware every group is ordered from new to old.FO cable disconnect
–-----------------Feb 18 11:07:39 php-fpm 53880 /rc.dyndns.update: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:07:39 php-fpm 53880 /rc.dyndns.update: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:07:38 check_reload_status updating dyndns FIBRA_PPPOEForcing Dyndns Update
–-------------------Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: phpDynDNS (DYNDNS.ALIAS.COM): (Success) IP Address Changed Successfully! (WIMAX.PUBLIC.IP)
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_Terradyndns'DYNDNS.ALIAS.COM'0.cache: WIMAX.PUBLIC.IP
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): WIMAX.PUBLIC.IP extracted from local system.
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:40 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _checkStatus() starting.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _update() starting.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS (DYNDNS.ALIAS.COM): running get_failover_interface for Terra. found pppoe1
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): WIMAX.PUBLIC.IP extracted from local system.
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:39 php-fpm 9441 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting
Feb 18 11:15:20 php-fpm 9441 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:20 php-fpm 9441 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:15:17 php-fpm 9441 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:45 php-fpm 45925 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:45 php-fpm 45925 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:39 php-fpm 45925 /services_dyndns_edit.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:39 php-fpm 45925 /services_dyndns_edit.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: MONITOR: FIBRA_PPPOE is down, omitting from routing group Terra
Feb 18 11:14:36 php-fpm 34305 /services_dyndns.php: Default gateway down setting WIMAX_PPPOE as default!FO cable reconnect
–----------------Feb 18 11:19:39 check_reload_status updating dyndns wan
Forcing Dyndns update
–-------------------Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: phpDynDNS (DYNDNS.ALIAS.COM): (Success) IP Address Changed Successfully! (FO.PUBLIC.IP)
Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_Terradyndns'DYNDNS.ALIAS.COM'0.cache: FO.PUBLIC.IP
Feb 18 11:23:44 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): FO.PUBLIC.IP extracted from local system.
Feb 18 11:23:43 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _checkStatus() starting.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): _update() starting.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS (DYNDNS.ALIAS.COM): running get_failover_interface for Terra. found pppoe0
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS dyndns (DYNDNS.ALIAS.COM): FO.PUBLIC.IP extracted from local system.
Feb 18 11:23:42 php-fpm 27368 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting -
I agree, it simply doesn't work!
I just upgraded to V2.3.3 and I see that with 2.3.3 the firewall GUI remains much more responsive than before, but, Dynamic DNS still never manages to update. The firewall WANGROUP consisting on WAN1 and WAN2, WAN1 fails, WAN2 correctly works, the dynamic DNS entry goes "red" but never every gets updated.
It seems to me to be a long standing issue that dynamic DNS cannot update on WAN fail-over, because, it can't "get out" to actually do an update.
-
Hello,
I've the same issue on 2.3.2_1.
Dual-wan gateway group with "custom" Dynamic DNS, and with an IPSEC tunnel using this gateway group as gateway.
When there is a change in one interface the system logs shows the following:Mar 10 15:44:09 check_reload_status updating dyndns GW_WAN
Mar 10 15:44:09 check_reload_status Restarting ipsec tunnels
Mar 10 15:44:09 check_reload_status Restarting OpenVPN tunnels/interfaces
Mar 10 15:44:09 check_reload_status Reloading filterBut in the "Dynamic DNS" server, which is also managed by me, I don't get any connection from pfsense to update the IP.
Then when I go edit the "Dynamic DNS" settings and force update it finally works.Did you managed to fix this?
Do you know if this is a known bug, already in the development roadmap? -
Hello,
As a workaround I've created a cron job running every minute that executes this script:
/sbin/ping -c2 172.17.2.28
if [ $? -ne 0 ]; then
/etc/rc.dyndns.update
/usr/local/sbin/pfSsh.php playback svc stop ipsec
/usr/local/sbin/pfSsh.php playback svc start ipsec
fiThis script pings 2x an IP address from the remote IPSEC lan (172.17.2.28).
If it fails it tries to update DynDNS, and then restart IPSEC.It works but I would like a more robust and smarter solution… it may take more than 1m to re-establish IPSEC tunnel.
If you guys have though of a solution please let me know.It would be really nice if developers could fix this, though. ;)
-
I'm also seeing this same behavior in 2.3.3 (maybe it's fixed in 2.4?). I'll try that script out and see if that helps until it gets fixed. :)
-
The workaround solution posted by luis also works well if using the cron package. Here (attached pic) it's setup to refresh dyndns every 20 minutes. This should really happen without cron just after the gateway failover. Hopefully in the next release.
-
It looks like bug 7719 which is fixed in 2.4.0 looks like it finally solves Dynamic DNS. It looks like it was an issue with gateway groups.
https://redmine.pfsense.org/issues/7719
I will be testing as soon as 2.4.0 is released and I'll report my findings!