Page 1 of 4

DDNS update failed in gargoyle 1.7 but not 1.6 (SOLVED)

Posted: Sat Apr 25, 2015 3:06 pm
by harsini
I was happy with DDNS in version 1.6 the update worked fine there.I bought a new tplink wr841 ver9 which there isn't any 1.6 for that but only 1.7.And here in 1.7 DDNS update won't work fine as 1.6.
Below images show log in my two tplink wr841 routers when updating DDNS one with gargoyle 1.6 which successfully updates DDNS record and other with gargoyle 1.7 which failed to update.
Any suggestion or solution would be appreciated
ddnsUpdateSuccess.jpg
ddnsUpdateSuccess.jpg (64.45 KiB) Viewed 10633 times
ddnsUpdateFailed.jpg
ddnsUpdateFailed.jpg (66.73 KiB) Viewed 10633 times

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Sun Apr 26, 2015 6:38 pm
by ispyisail
screen shots of your config pages please

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Mon Apr 27, 2015 7:07 am
by harsini
Thank for reply.Both have exactly the same default config:
Untitled.png
Untitled.png (21.99 KiB) Viewed 10616 times

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Wed Apr 29, 2015 11:43 am
by harsini
Do you want to see any other config of the router? :?

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Thu Apr 30, 2015 2:10 am
by Lantis
i'd like to try and work this out for you, but i don't have an account with them. I have signed up, but the activation email has yet to come through. until then i can't investigate.

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Thu Apr 30, 2015 5:16 am
by Lantis
It worked perfectly for me. Have you tried removing the config and re-adding it?

Can you check the contents of /etc/config/ddns_gargoyle
to make sure they resemble this:

Code: Select all

config service 'ddns_1'
	option enabled '1'
	option service_provider 'freedns.afraid.org'
	option ip_source 'internet'
	option force_interval '3'
	option force_unit 'days'
	option check_interval '15'
	option check_unit 'minutes'
	option domain 'yourdomain.chickenkiller.com'
	option username 'yourusername'
	option password 'yourpassword'
Just to make sure nothing is corrupted.

Also your username and or password doesn't have any funky characters in it does it? my password was purely alphanumeric, i'm wondering if say an exclamation mark or a backslash or something is interfering.

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Mon May 04, 2015 9:57 am
by harsini
Thanks for your attention Lantis.I checked ddns_gargoyle files on both 1.6 and 1.7 and they are the same.Nothing is different.Note that in 1.7 when updating the local IP retrieve successfully but remote ip can not be determined.I don't know what are those mean and both are same in successful update on 1.6 version.
Also only numbers and alphabets used in my username and pass.

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Mon May 04, 2015 6:45 pm
by Lantis
I'm mostly out of ideas then mate. It worked fine for me.
Maybe try setting a new domain up and using that instead and see if that works. "Whatever.chickenkiller.com". Just try a different one.
Are you particularly attached to freedns? There's many other free DNS services. Maybe try another one and see if that works better. I use duckdns personally.

How the script works is it needs to tell your DNS provider what ip belongs to you.
So it tries a number of websites to find your current IP address. This is the "Local IP successful".
Then it compares it to the IP address that freedns has recorded. If they are different it needs to update. It uses a hashed login page to grab your remote ip. This is the bit that isn't working and is giving "remote IP unsuccessful"

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Tue May 05, 2015 11:43 am
by harsini
Thank you lantis.I tested duckdns with no success.with the below error message:
ddnsUpdateFailed2.jpg
ddnsUpdateFailed2.jpg (14.58 KiB) Viewed 10529 times

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Posted: Sat May 09, 2015 12:04 pm
by harsini
I try to update ddns records using script described here which uses below update url which is same as url available in /etc/ddns_gargoyle.conf file for updating ddns:

"https://freedns.afraid.org/api/?action=getdyndns&sha=" plus hashed user and pass
but I get the Authentication error.

But I go to freedns.afraid.org/api and there I found a different format of ddns update url:
"https://freedns.afraid.org/dynamic/update.php?" plus hashed user and pass

which I tested successfully.
I try to change the ddns_providers.conf file with the new url which works fine but still I haven't get successful result.
Acctullay I replaced this:

Code: Select all

"https://freedns.afraid.org/api/?action=getdyndns&sha="$(printf "[[USERNAME]]|[[PASSWORD]]" | sha1sum | awk ' { print $1 }') 2>/dev/null | grep "[[DOMAIN]]" | sed 's/^.*|//g'
with this:

Code: Select all

"https://freedns.afraid.org/dynamic/update.php?"$(printf "[[USERNAME]]|[[PASSWORD]]" | sha1sum | awk ' { print $1 }') 2>/dev/null | grep "[[DOMAIN]]" | sed 's/^.*|//g'