I use own very complex DDNS script. Works perfectly. Currently I am on DoubleNAT configuration. When I fire up a VPN Client in the router, my routing changes. If my DDNS script now checks the outside address, it will get an VPN server address and that is wrong. VPN server on my router is not an issue here. Asuswrt-Merlin fw.
My routing gets changed from my doubleNAT modem 192.168.0.1
via 192.168.0.1 dev eth0 src 192.168.0.100
to VPN client:
via 10.9.2.133 dev tun13 src 10.9.2.134
How to fight it? I could limit DDNS address checking to eth and ppp links or skip tun/tap. But how do I check my external IP address using curl and go through eth or ppp and not through tun? Manually adding / changing routing rules is absolutely not a solution in this situation for several good reasons.
For me personally, the solution is to simply skip checking my WAN IP while VPN client is active in the router.
Plus, I do not know what would happen in singleNAT (and I am not in the mood to loose over an hour to switch to my singleNAT USB modem just to test it; I would appreciate quick 10 sec PM help from someone with singleNAT and VPN client configuration to SSH one command for me).
I would prefer an inteligent and universal solution but within my DDNS script. Ideas?
My routing gets changed from my doubleNAT modem 192.168.0.1
via 192.168.0.1 dev eth0 src 192.168.0.100
to VPN client:
via 10.9.2.133 dev tun13 src 10.9.2.134
How to fight it? I could limit DDNS address checking to eth and ppp links or skip tun/tap. But how do I check my external IP address using curl and go through eth or ppp and not through tun? Manually adding / changing routing rules is absolutely not a solution in this situation for several good reasons.
For me personally, the solution is to simply skip checking my WAN IP while VPN client is active in the router.
Plus, I do not know what would happen in singleNAT (and I am not in the mood to loose over an hour to switch to my singleNAT USB modem just to test it; I would appreciate quick 10 sec PM help from someone with singleNAT and VPN client configuration to SSH one command for me).
I would prefer an inteligent and universal solution but within my DDNS script. Ideas?