Dynamic DNS on Mutli WAN & HA Setup
Describe the bug I have a dual WAN setup with two opnsense instances running in high availability mode (CARP). Since i set up high availability, the Dynamic DNS plugin is unable to determine the correct WAN public address any longer.
The plugin always determine the WAN interface IP address of the WAN interface with higher priority regardless which interface is defined in the Dynamic DNS field "Interface to Monitor".
I already posted at the forum, but no answer so far. I'm unsure if this is a bug or simply an unsupported configuration.
Expected behavior I expect, that when selecting a WAN interface in the field "Interface to Monitor", that this public IP address of the particular WAN is taken.
Environment OPNsense 20.7.4-amd64 FreeBSD 12.1-RELEASE-p10-HBSD OpenSSL 1.1.1h 22 Sep 2020 os-dyndns 1.23 Running on Hyper-V hosts
Hi @AdSchellevis , what the flag "support" means? Does someone take care of this?
community support (https://github.com/opnsense/core/blob/master/CONTRIBUTING.md)
Note: Maybe this can be solved not only offer the WAN interfaces in the drop down list but list ALL interfaces including virtual (CARP) IP's. There is a similar implementation in the OpenVPN package. Hopefully it helps.

@Paraplexo I have a dual WAN setup and even though I also have issues with DynDNS to get it updated correctly all the time, it does always get the correct IP address. Do you see the same IP address for both WANs in the GUI Services: Dynamic DNS, Cached IP? Or do you have 2 devices and one DynDNS configured on each of them?
Do you have a firewall rule pushing all traffic through a specific Gateway/WAN? Because that can explain why it shows the same IP for both.
@bramevo Only having a dual WAN setup doesen't cause this problem, its related to dual WAN AND HA setup. Before I setup high availability using CARL/VRRP virtual IP addresses for all interfaces, dynamic DNS update was working fine.
Using dual/multi WAN and HA, the dynamic DNS always captures the (single) gateway with has the higher priority (lower number). I didn't tested how the plugin behaves using a gateway group.
From my opinion, it should be possible to select the CARP VIP of the respective WAN interface (similar to other plugins like OpenVPN).
I have tried to add
$iflist = array_merge($iflist, get_configured_carp_interface_list());
to services_dyndns_edit.php. The carp VIPs now show up in the GUI, but it seems to have no effect to the IP to be updated.
$iflist = get_configured_interface_with_descr();
$iflist = array_merge($iflist, return_gateway_groups_array());
$iflist = array_merge($iflist, get_configured_carp_interface_list());
foreach ($iflist as $if => $ifdesc):?>
<option value="<?= $if ?>" <?= $pconfig['requestif'] == $if ? 'selected="selected"' : '' ?>>
<?= is_array($ifdesc) ? $if : htmlspecialchars($ifdesc) ?>
</option>

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.