Carlos E. R. wrote:
On 2016-12-02 13:49, Per Jessen wrote:
Yamaban wrote:
If you look at that page, many routers provide the outside IP on it. use wget/curl/(other tool) to get that page, extract that outside-IP compare to a locally stored value, if changed, store new value and run ddns-update script. run that test every minute via local cron. That way only the updates leave your private network.
Yep, that's a clever way of doing it.
Now that I remember. There was a router I could access by ssh, and ask it the IP. I wrote a script doing that query, using, what was it, chat?
I tried now and certainly, my router responds on telnet and I could login. No, it does not support ssh!
But it is a piece of shit. I issued "dumpsysinfo" and it responded with several pages, some like XML! It dumps so much that it fill the terminal buffer completely.
XML is easy to parse though - you can probably fish the ipaddress with a simple xpath. -- Per Jessen, Zürich (3.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org