Mailinglist Archive: opensuse (1319 mails)

< Previous Next >
Re: [opensuse] Re: Dynamic DNS service [OT]
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.


The "statistics" dumps output similar to "ifconfig" in Linux, and a
paragraph is the ppp0.1 interface including the external IP. Not trivial
to parse.

Interestingly, it does include an IPv6 address! /64

"wan show" also displays the IPv4 external address on "ppp0.1", plus two
other interfaces eth0.2 and eth0.3 with 10.... addresses. Doesn't show
any IPv4 addresses.


I think I may script it again. But maybe not soon enough.



--
Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 "Bottle" at Telcontar)

< Previous Next >