cloudflare-ddns-updater
cloudflare-ddns-updater copied to clipboard
Possibility to take IP from another gateway
Hi there, at my home I have 2 connections. (ADSL and 5G)
I want to run the script in a server, but I want to take the IP from another router (gateway). Is this possible please ?
Thanks in advance Denis
Here are two ways to get the IP that way:
ifstatus wan | jsonfilter -e '@["ipv4-address"][0].address'
ip route get 1.2.3.4 | awk '{print $7}'
Thanks a lot :-)