DDNS is way wrong
Posted: Wed Nov 03, 2021 3:53 am
Gargoyle users/develoeprs:
I use DDNS to obtain the IP address of my DSL modem and it appears to be set to 10.20.10.22 which is entirely wrong (as it is not a publically routable IP address). I was able to call my provider and have them ping my modem and provide me with my IP address as a work around.
I would suggest a couple of changes to Gargoyle so that prior to updating DDNS, it reads the old DDNS IP address and performs a comparative analysis of if it is a routable IP address and if the update is non-routable. Thus, it cannot occur that a routable IP is going to get replaced with a non-routable IP address. This can be done with a regex rather easily.
Non-routable spaces we could create a regex to filter out and not then update wiping out a good routable IP address on DDNS update.
10.0.0.0/8 (Range: 10.0.0.0 – 10.255.255.255)
172.16.0.0/12 (Range: 172.16.0.0 – 172.31.255.255)
192.168.0.0/16 (Range: 192.168.0.0 – 192.168.255.255)
Granted, my IP address (though ostensibly dynamic per the provider) seems to rarely change, so I also setup a static A record with it recorded there within as a backup plan.
I use DDNS to obtain the IP address of my DSL modem and it appears to be set to 10.20.10.22 which is entirely wrong (as it is not a publically routable IP address). I was able to call my provider and have them ping my modem and provide me with my IP address as a work around.
I would suggest a couple of changes to Gargoyle so that prior to updating DDNS, it reads the old DDNS IP address and performs a comparative analysis of if it is a routable IP address and if the update is non-routable. Thus, it cannot occur that a routable IP is going to get replaced with a non-routable IP address. This can be done with a regex rather easily.
Non-routable spaces we could create a regex to filter out and not then update wiping out a good routable IP address on DDNS update.
10.0.0.0/8 (Range: 10.0.0.0 – 10.255.255.255)
172.16.0.0/12 (Range: 172.16.0.0 – 172.31.255.255)
192.168.0.0/16 (Range: 192.168.0.0 – 192.168.255.255)
Granted, my IP address (though ostensibly dynamic per the provider) seems to rarely change, so I also setup a static A record with it recorded there within as a backup plan.