I have a GL-MT2500A router (Brume 2) with firmware version 4.7.0. In LuCI I installed the packages needed to configure a dynamic DNS client for namecheap.com (I have a domain registered there) as indicated by the official wiki.
The Brume 2 is configured to connect to the Surfshark VPN; depending on the configuration options I choose in LuCI, with the VPN active the dynamic DNS service updates my domain with the VPN IP instead of the public IP assigned by my ISP (the Brume 2 is connected to my ISP's modem/router through the WAN port) or it fails because it tries to use the local IP 192.168.1.2 which is the one assigned to it by the ISP's modem/router, is possible to solve this problem?
The only solution would be running the ddns-daemon (or whatever program is updating the DDNS) with sudo -g nonevpn
to avoid the usage of VPN.
How the built-in DDNS service get the real IP not the VPN IP?
It runs the same command, so without VPN all the time.
I don't know how to achieve that, can you help me, please?
The built-in client get the IP querying a website like http://ipinfo.io/ip?
Sorry, can't really help you with that because I don't use any other DDNS than GLDDNS.
You need to make sure that the IP query of your DDNS script/binary will run as group nonevpn