Dynamic DNS Updating - Multi-WAN … send update via active connection?



  • Hello Everyone,

    I have Dual WAN configured with my pfSense router and it works perfectly; however, I recently signed up with a DNS Proxy Server and they have an "update URL" which can be called to update the IP address of the subscriber. Unfortunately this update URL does not contain an IP address field - it will automatically update the IP based on the calling host.

    Therefore, I need to configure the Dynamic DNS custom provider to send the request via the active gateway - is this possible? Seems like my only options are LAN, WAN, and WAN2.

    This seems odd as the "interface to monitor" supports multi-wan, but the outbound interface does not?

    Are there any workarounds for this?

    Thanks.



  • Make a gateway group for WAN+WAN2 with whatever tiers you wish. Then select the gateway group for the Dynamic DNS entry. It will set itself out the highest tier gateway in the group that is up.
    And whatever external services you offer that use that name, (e.g. OpenVPN…) make them also listen on that gateway group so they are always listening to the same place that the name points to.



  • The monitoring of the gateway ground is fine (Interface to Monitor), however, my gateway group does not show up under "Interface to Send Update From".

    Therefore doesn't this defeat the purpose of multi-WAN support if the update doesn't fail over too?



  • Now I understand your problem - I hadn't looked hard at the "custom provider" bit of your needs.
    The software that generates the GUI form - services_dyndns_edit.php - is just lacking code to add gateway groups to the dropdown for the "Interface to send update from" field. It really should have the same list as the "Interface to monitor" field.
    I did this in the code on Github at https://github.com/phildd/pfsense/blob/master/usr/local/www/services_dyndns_edit.php the changes are this commit https://github.com/phildd/pfsense/commit/31300a95f71b14dcb98c139388205223a36e8c8b
    This applies fine to 2.1-RELEASE - there have been no other substantive changes to that file since 2.1-RELEASE.
    Try it and see if it works for your case. Then I can submit a pull request for it.



  • @phil.davis:

    Now I understand your problem - I hadn't looked hard at the "custom provider" bit of your needs.
    The software that generates the GUI form - services_dyndns_edit.php - is just lacking code to add gateway groups to the dropdown for the "Interface to send update from" field. It really should have the same list as the "Interface to monitor" field.

    I appreciate the heads up on the pages that you wrote; I'll give those a try shortly.

    Thanks Phil!


Log in to reply