Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Thanks alot for the prompt reply. Managed to get my ddns account unblocked.
Running it for 1 hour, i checked my logs as per below
ez-ipupdate Version 3.0.11b7
Copyright (C) 1998-2001 Angus Mackay.
connected to members.dyndns.org (63.208.196.96) on port 80.
request successful
ez-ipupdate Version 3.0.11b7
Copyright (C) 1998-2001 Angus Mackay.
connected to members.dyndns.org (63.208.196.96) on port 80.
request successful
ez-ipupdate Version 3.0.11b7
Copyright (C) 1998-2001 Angus Mackay.
connected to members.dyndns.org (63.208.196.96) on port 80.
request successful
It connected to the dyndns server 3 times. Will the logs display differently when IP is changed?
Offline
if ip was not changed then the proper log should look like
.
.
.
request successful
.
.
.
no ip update needed at this time
.
.
.
no ip update needed at this time
so, first time it updates the host, then next two times, because of the ip address caching, update is not needed.
in your case, either cache-file in ezipupdate.conf is not configured or ip was changed 3 times
check if /ffp/tmp/ezipupdate.cache exists:
ls -la /ffp/tmp/
cat /ffp/tmp/ezipupdate.cache
Offline
eureka!!
found the source of the problems! just to share incase other people have the same problem.
Inside /ffp/share/ezipupdate/ezipupdate.sh, there is a command to get current IP. The command is as per below
ip_command="echo `wget http://tilmanfrosch.de/ip.php -O $tmp_ip -q && cat $tmp_ip`"
I went to http://tilmanfrosch.de/ip.php to check my ip and ran the command multiple times to check, but it was'nt giving the correct IP address. This resulted in the multiple update. To resolve this problem, change the line to below
ip_command="echo `wget http://checkip.dyndns.com/ -O $tmp_ip -q && cat $tmp_ip| grep "IP Address" | sed -e 's/</ /g' | awk '{ print $11 }`"
Thx for the scripts SilentException
Offline
looks like that site is pain in the ass sometimes, starry_knight also had problems with it... he used one other site instead too. i'll include yours and his solutions in the script and make a new release..
Offline
First off, thank you guys for such an awesome script.
My drive spins up every time the script is run. Is there any
way to get it to cache, or relocate the tempfile to a non-disk location?
(usb? ?)
What I did in the meantime was to do a single run of ezupdate
when the box starts up, and to change the frequency to update
once a day at 11am.
BTW, is there any way (logfile?) to know what is spinning up
the drives?
Thanks!
Offline
Hi folks, first of all, thanks for your wonderful scripts here!
I have already setup ez-ipupdate on my dns-323 and started running it. However, I am getting this message from my log file:
service: ez-ipupdate Version 3.0.11b7 Copyright (C) 1998-2001 Angus Mackay. unknown service type: try one of: null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit heipv6tb
I have already defined service-type=dyndns in my ezipupdate.conf file and after restarting my dns-323, still the same error.
Also, what should I put under the host variable? Should it be my dns-323's ip address? http://www.dyndns.com? or the host name that created on dyndns, say, foo.dnsalias.com?
Thanks!
Offline
Hi Sinobato,
I had this problem. I don't really know what caused it because i am a noob. ^^ basically what happened is that the crontab $PATH does not have /ffp/bin inside.
What i did is i added the following statement in /ffp/share/ezipupdate/ezipupdate.sh
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
Do check your default path using root. Mine might differ from yours. ^^
Regards
Offline
just to help. i will copy paste my /ffp/share/ezipupdate/ezipupdate.sh below. Please do not include this line ^^
#!/ffp/bin/sh
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
datenow=`date`
tmp_ip="/tmp/ip.tmp"
ip_tmp=`wget http://checkip.dyndns.com:8245/ -q -O/tmp/ip1.tmp`
ip_add=`cat /tmp/ip1.tmp | grep "IP Address" | sed -e 's/</ /g' | awk '{ print $11 }' `
ip_command="echo $ip_add"
config_file="/ffp/etc/ezipupdate.conf"
ezipupdate_exe_file="/ffp/sbin/ezipupdate"
log_file="/mnt/HD_a2/updater.out"
#log_file=""
if test -n "$log_file"; then
if [ -f $log_file ]; then
if [ ! -w "$log_file" ]; then
echo "$0: Log file $log_file not writable!"
exit 1
fi
# lcnt=`/ffp/bin/wc -l <$log_file`
# if [ $lcnt -gt 200 ]; then
# start=180
# /ffp/bin/tail -n $start $log_file >$log_file.tmp
# mv $log_file.tmp $log_file
# fi
fi
echo "************* $datenow *********" >> $log_file
echo path : $PATH >> $log_file
echo wget : `which wget` >> $log_file
echo cat : `which cat` >> $log_file
echo grep : `which grep` >> $log_file
echo sed : `which sed` >> $log_file
echo awk : `which awk` >> $log_file
echo ezipupdate_exe_file : $ezipupdate_exe_file >> $log_file
echo ip_command : $ip_command >> $log_file
echo config_file : $config_file >> $log_file
echo ip_add : $ip_add >> $log_file
if [ "$ip_command" = "echo" ]; then
rm /tmp/ip.tmp
echo "Removing ip.tmp" >> $log_file
echo "Not updating.. " >> $log_file
else
echo "Updating..." >> $log_file
$ezipupdate_exe_file -a `$ip_command` -c $config_file 1>>$log_file 2>>$log_file
fi
else
echo Came into else loop >> $log_file
$ezipupdate_exe_file -a `$ip_command` -c $config_file 1>/dev/null 2>/dev/null
fi
Offline
Thanks linux_noob! I'll try this one later...
One last thing though, how about my other question:
Also, what should I put under the host variable? Should it be my dns-323's ip address? http://www.dyndns.com? or the host name that created on dyndns, say, foo.dnsalias.com?
This is regarding the ezipupdate.conf.
Last edited by Sinobato (2008-06-24 18:18:40)
Offline
rocknroll wrote:
First off, thank you guys for such an awesome script.
My drive spins up every time the script is run. Is there any
way to get it to cache, or relocate the tempfile to a non-disk location?
(usb? ?)
What I did in the meantime was to do a single run of ezupdate
when the box starts up, and to change the frequency to update
once a day at 11am.
BTW, is there any way (logfile?) to know what is spinning up
the drives?
Thanks!
disks spin up because config file and ipcache files are read from the disk.
you have to edit following variables in the ezipupdate.sh to point to virtual disk copies (copies you have to make sure exist):
$config_file=/tmp/ezipupdate.conf
$ezipupdate_exe_file=/usr/sbin/ez-ipupdate
(you also shouldnt use logging, because script uses /ffp/bin/wc and /ffp/bin/tail both of which are located on hdd)
also, you have to edit ezipupdate.conf:
cache-file=/tmp/ezipupdate.cache
Sinobato wrote:
Hi folks, first of all, thanks for your wonderful scripts here!
I have already setup ez-ipupdate on my dns-323 and started running it. However, I am getting this message from my log file:Code:
service: ez-ipupdate Version 3.0.11b7 Copyright (C) 1998-2001 Angus Mackay. unknown service type: try one of: null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit heipv6tbI have already defined service-type=dyndns in my ezipupdate.conf file and after restarting my dns-323, still the same error.
Also, what should I put under the host variable? Should it be my dns-323's ip address? http://www.dyndns.com? or the host name that created on dyndns, say, foo.dnsalias.com?
Thanks!
you're using my ffp package latest version?
there is no need to adjust path variable as all the stuff executed from /ffp is with full paths in the script.
double check everything in the config file:
host variable should be your dyndns name:
service-type=dyndns
host=home.dyndns.org
@linux_noob: you had a problem with "awk" in your script. use /ffp/bin/awk instead and there would be no need for PATH
Last edited by SilentException (2008-06-24 19:42:47)
Offline
I having the same problem lately.Got blocked by Dns Server numberous times.Read all the above BUt still dont understand coz i noob in computer.
Is there a simpler way .Please help.
Thks
Offline
Hey guys, not sure what happened, but the newest version on here I had running for a since May 30th and on June 29th, I got the message that said I had been inactive for 30 days, I went in and verified the account again. I checked a few times at the start and everything was updating great. Haven't had to log into the server lately, but found out now that the ip is not getting updated. How do I check to make sure that all is still running or to figure out what went wrong?
Offline
Do I still need the DDNS set to "Yes", if I have this custom install?
Offline
Oi... Having the same issues as above. Not sure what's going on. I've been banned twice now from dyndns.org and am trying to get this squared away... Thanks for any and all suggestions.
root@dlink-******:/mnt/HD_a2/ffp/start# sh ezipupdate.sh Starting ezipupdate... Started root@dlink-******:/mnt/HD_a2/ffp/start# cat /ffp/var/log/ezipupdate.log ez-ipupdate Version 3.0.11b7 Copyright (C) 1998-2001 Angus Mackay. unknown service type: try one of: null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit heipv6tb root@dlink-******:/mnt/HD_a2/ffp/start# cat /ffp/tmp/ez-ipupdate.cache 1230486302,192.168.1.2 root@dlink-******:/mnt/HD_a2/ffp/start# grep "service-type" /ffp/etc/ezipupdate. conf service-type=dyndns root@dlink-******:/mnt/HD_a2/ffp/start# crontab -l 32 2 * * * /usr/sbin/rtc -s 30 2 2 * * /usr/sbin/rtc -c 59 1 * * * /usr/sbin/daylight & */15 * * * * /ffp/share/ezipupdate/ezipupdate.sh root@dlink-******:/mnt/HD_a2/ffp/start# cat /ffp/share/ezipupdate/ezipupdate.sh #!/ffp/bin/sh tmp_ip="/tmp/ip.tmp" ip_command="echo `wget www.whatismyip.org -O $tmp_ip -q && cat $tmp_ip`" config_file="/ffp/etc/ezipupdate.conf" ezipupdate_exe_file="/ffp/sbin/ezipupdate" #log_file="/web/log/ezipupdate.log" log_file="/ffp/var/log/ezipupdate.log" <snip> root@dlink-******:/mnt/HD_a2/ffp/start# ls /ffp/var/packages/ez* /ffp/var/packages/ezipupdate-0.6-ffp0.5
My cache file has the 323's static IP behind my router instead of my actual IP.... Not only that, it seems my config file isn't being sourced...
EDIT- $ip_command was wrong. Added an http:// in there but I'm still getting the same results. Grrrrrr....... ;-)
Last edited by madpenguin (2008-12-28 21:07:58)
Offline
Just gonna talk to myself here and work thru it incase anyone else is having the same issue with funplug.
config file isn't being sourced, obviously. It comes defauled to rw for root. Don't know why SilentException has "#!/usr/local/bin/ez-ipupdate -c" at the top. Could be an issue.
Manually running:
/ffp/sbin/ezipupdate --address <MY.ACTUALL.IP.ADDRESS> --service-type dyndns --user <MYUSERNAME:MYPASSWORD> --host <MY.HOST.NAME> --interface egiga0 --max-interval 2419200 --cache-file /ffp/tmp/ez-ipupdate.cache
works. Definitely a perm issue (or something).
I've tried changing the top of the config file to "#!/usr/sbin/ez-ipupdate -c"... No effect.
For fear of getting banned again during the testing process, this will probably take me a couple days to sort out... ;-(
Could have sworn I chmoded 777 on the config file and it still didn't work. If I can't figure it out, I'll probably just rewrite /ffp/share/ezipupdate/ezipupdate.sh
Use the above code box command only retain the $ip_command functionality. That does work.
That or I'll just rewrite /ffp/start/ezipupdate.sh to do everything in one fell swoop. Dunno.
What a pain in the ass.
1.) I'm pissed at dlink for breaking functionality that worked perfectly fine in 1.04
a.) Especially pissed that nothing is being done about it after all this time.
2.) I'm really glad I'm using a product that's opensource... ;-)
If you want something done right, do it yourself I guess.
Last edited by madpenguin (2008-12-29 03:10:21)
Offline
I was able to work through this problem simply by looking at DynDNS.com's support pages at http://www.dyndns.com/support/clients/ .
They recommend:
1. *Avoid* hardware updaters (not really hardware, but they include built-in updaters like those on most routers and the DNS-323 here)
2. Only use one of their approved software update clients (ezipupdate isn't included, so I avoided it).
In short, just install the ddclient client (see the wiki entry for optware on how to install the ipkg package management system and then enter the command "ipkg install ddclient") and configure it according to the dynDNS site (they even have a little wizard that makes a basic configuration file for you). You certainly can offload it all to a usb drive to avoid spin-ups too.
Works perfectly for me running off a USB stick with zero spin-ups and no abuse warnings from dynDNS!
Last edited by johncolby (2008-12-29 19:53:55)
Offline
I adapted the script by linux_noob because the comparison did not work for me.
I've replaced "tmp_ip" with "cached_ip", added it to the log and made a comparison based on two IP in stead of comparing "$ip_command".
Also added add'l logging. All cache and logging will be moved to a USB stick in the next version (see also /ffp/etc/ezipupdate.conf file)
Next step is also Bacula backup server on DNS-323.
log OUTPUT should look like
************* Wed Feb 4 09:45:01 GMT 2009 *********
path : /ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
wget : /ffp/bin/wget
cat : /ffp/bin/cat
grep : /ffp/bin/grep
sed : /ffp/bin/sed
awk : /ffp/bin/awk
ezipupdate_exe_file : /ffp/sbin/ezipupdate
ip_command : echo xx.xx.204.137
config_file : /ffp/etc/ezipupdate.conf
current ip_add : xx.xx.204.137
cached_ip : xx.xx.201.103
Updating DynDNS
Cached IP updated
************* Wed Feb 4 10:00:00 GMT 2009 *********
path : /ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
wget : /ffp/bin/wget
cat : /ffp/bin/cat
grep : /ffp/bin/grep
sed : /ffp/bin/sed
awk : /ffp/bin/awk
ezipupdate_exe_file : /ffp/sbin/ezipupdate
ip_command : echo xx.xx.204.137
config_file : /ffp/etc/ezipupdate.conf
current ip_add : xx.xx.204.137
cached_ip : xx.xx.204.137
Not updating..
******************** Start of script ************
#!/ffp/bin/sh
PATH=/ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
datenow=`date`
cached_ip=`cat /tmp/ip.cache`
ip_tmp=`wget http://checkip.dyndns.com:8245/ -q -O/tmp/ip1.tmp`
ip_add=`cat /tmp/ip1.tmp | grep "IP Address" | sed -e 's/</ /g' | awk '{print $11 }' `
ip_command="echo $ip_add"
config_file="/ffp/etc/ezipupdate.conf"
ezipupdate_exe_file="/ffp/sbin/ezipupdate"
log_file="/mnt/HD_a2/updater.out"
#log_file=""
if test -n "$log_file"; then
if [ -f $log_file ]; then
if [ ! -w "$log_file" ]; then
echo "$0: Log file $log_file not writable!"
exit 1
fi
# lcnt=`/ffp/bin/wc -l <$log_file`
# if [ $lcnt -gt 200 ]; then
# start=180
# /ffp/bin/tail -n $start $log_file >$log_file.tmp
# mv $log_file.tmp $log_file
# fi
fi
echo "************* $datenow *********" >> $log_file
echo path : $PATH >> $log_file
echo wget : `which wget` >> $log_file
echo cat : `which cat` >> $log_file
echo grep : `which grep` >> $log_file
echo sed : `which sed` >> $log_file
echo awk : `which awk` >> $log_file
echo ezipupdate_exe_file : $ezipupdate_exe_file >> $log_file
echo ip_command : $ip_command >> $log_file
echo config_file : $config_file >> $log_file
echo current ip_add : $ip_add >> $log_file
echo cached_ip : $cached_ip >> $log_file
if [ "$ip_add" = "$cached_ip" ]; then
echo "Not updating.. " >> $log_file
else
echo "Updating DynDNS" >> $log_file
$ezipupdate_exe_file -a `$ip_command` -c $config_file 1>>$log_file 2>>$log_file
echo $ip_add > /tmp/ip.cache
echo "Cached IP updated" >> $log_file
fi
else
echo Came into else loop >> $log_file
$ezipupdate_exe_file -a `$ip_command` -c $config_file
1>/dev/null 2>/dev/null
fi
Offline
Hi SilentException
Can I check if your tar can work under ffp 0.4 ?
Could you compile one for ffp 0.4 users ?
Thanks so much
Offline
hi Guys
I have finally upgraded my ffp to ffp0.5~
I tried the above...and I still cant get it worked..
This is what I get from the ezipupdater.out file:
root@dlink323:/mnt/HD_a2/tmp# cat ezipupdater.out
ez-ipupdate Version 3.0.11b7
Copyright (C) 1998-2001 Angus Mackay.
unknown service type:
try one of:
null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods
tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit
heipv6tb
service: ez-ipupdate Version 3.0.11b7
Copyright (C) 1998-2001 Angus Mackay.
unknown service type:
try one of:
null ezip pgpow dhs dyndns dyndns-static dyndns-custom ods
tzo easydns easydns-partner gnudip justlinux dyns hn zoneedit
heipv6tb
From the posts I read, it's because of the PATH thingy?
I did add that line in the script file though:
path : /ffp/sbin:/ffp/bin:/usr/sbin:/sbin:/usr/bin:/bin
Any clues? ?
Offline
To add on:
root@dlink323:/tmp# echo `wget http://checkip.dyndns.com:8245/ -q -O/tmp/ip1.tmp`
wget: can't resolve symbol 'clock_getres'
What is this 'clock_getres' ??
Offline
hmm anyway, just to sum up.
I used SilentException script, then change the checkIP url to http://whatismyip.org/
finally got it work
Offline
Hi SilentException & linux_noob,
Firstly, thanks to you I managed to get it to update 1 of my dyndns account with multiple domains.
Would appreciate if you can advise on how to update more than 1 dyndns accounts?
Thank you.
Offline
I have FW 1.07 and am running the "stock" DDNS client, as configured from the admin web page. It is working fine except that once in awhile it will send the local LAN address of the DNS-323 (192.168.0.2) to dyndns.com. The crontab entry put in place by the stock firmware runs ddns-start every 10 minutes. So, often it sends the correct external IP to dyndns.com on the next update, so the problem usually corrects itself within 10 minutes, but it is still annoying.
It does avoid updating dyndns.com when the IP does not change, which is good, and I am not getting banned. But these momentary swings to the wrong address cannot be good and I'd like to fix it.
My first suspicion is that ddns-start is failing to get the correct IP address, probably by timing out when the response does not come back in time. I don't know which site ddns-start uses to get the IP. I think that if that site is slow to serve up the IP address, then that could be the problem. I'm guessing that if ddns-start fails to get the IP address, it uses my LAN address 192.168.0.2 in the --address parm to ez-ipupdate and I am sunk.
Any thoughts?
I know about the ezipupdate script discussed in this thread. But I am running optware and I am more likely to install ddclient as that is a popular and approved program for this purpose.
But are there any suggestions for solving this with the "stock" ddns-start/ez-ipupdate package?
Offline