On 2016-12-02 12:33, Yamaban wrote:
Hmmm, many router have a "home-page" that you can see without even logging in on the router, e.g. on my router, a "easyBox 802", page is http://easy.box/ or via "gateway"-ip
Not mine, I think. You mean an info page of the router without login. Not that I know, no.
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.
Does that make more sense to you?
It does, yes. But no such luck. This is the script I use to find the external IP: Isengard:~ # cat /usr/local/bin/FindAndLogMyExternalIp #!/bin/bash LOGGER=/usr/bin/logger FACILIDAD=user.notice for((i=0;i<3;i++)) do set `wget --timeout=15 -qO - checkip.dyndns.org | cut -d":" -f2 | cut -d"<" -f1 | cut -d" " -f2` if test -n "$*" ; then $LOGGER -t Sistema -p $FACILIDAD "Logging the current external IP=" $* HORA=`date --rfc-3339=ns` echo "$HORA $*" break else HORA=`date --rfc-3339=ns` echo "$HORA IP not found ($i/3)" $LOGGER -t Sistema -p $FACILIDAD "Could not find current external IP; trying again ($i)." /bin/sleep 5 fi done Isengard:~ # And some times it fails. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)