OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: hjint on September 06, 2021, 08:54:55 am

Title: Dynamic DNS not updating
Post by: hjint on September 06, 2021, 08:54:55 am
OPNsense: 21.1.9_1-amd64

Current setup before changes:
2x Wan Ports
1x Lan Port
2x VLANS
Rasberry Pi with Pihole, Freeradius & OpenLDAP
Wifi AP's validated Wifi connections against Freeradius & OpenLDAP
At this point Dynamic DNS were updating the WAN addresses

I have made the following changes on Saturday:
Added 2 more VLANS
Created a Group (LAN Group) with the LAN & VLANS and moved all the LAN rules to the LAN group
Moved all the wired LAN connections to a VLAN (VLAN ID2)
Moved all the Wifi connections to another VLAN (VLAN ID3)
Moved all Multi media connections (TV,etc) to another VLAN (VLAN ID4)
Moved IOT connections to another VLAN (VLAN ID5)

My PC is now sitting in VLAN ID2. Initially when I changed my PC to the VLAN, I did not have access to the OPNsense WEB GUI. Saturday evening, I have incorrectly (in hind sight) changed the LAN subnet from 24 to 16 trying to have access the firewall web GUI.

After the subnet change, I ran into Name Resolution errors and then did a configuration restore from an earlier saved config. This resolved the name resolution partially. It was only after a restart of the firewall that name resolution was working properly again. A rule to allow my PC access to the firewall resolved the access problem.

On Sunday, I have picked up that Dynamic DNS, using DuckDNS, is not updating, both WAN addresses remain RED and when I try to access Dynamic DNS in Services, it is taking for ages to open the page. After a reboot of the firewall, Dynamic DNS do update the WAN addresses, both showing GREEN, but after the next update of the addresses both turn RED. The System General Log file shows the following error for both WAN interfaces "/usr/local/etc/rc.dyndns: Dynamic DNS (xxxxx) There was an error trying to determine the public IP for interface - xxx(yyy). Probably interface is not a WAN interface"

I went to interfaces and saved and apply every interface again, but this did not helped.

Any assistance on how to resolve this will be highly appreciated