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

General discussion about Gargoyle, OpenWrt or anything else even remotely related to the project

Moderator: Moderators

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

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

Post 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 10639 times
ddnsUpdateFailed.jpg
ddnsUpdateFailed.jpg (66.73 KiB) Viewed 10639 times
Last edited by harsini on Tue May 12, 2015 8:25 am, edited 1 time in total.

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post by ispyisail »

screen shots of your config pages please

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post by harsini »

Thank for reply.Both have exactly the same default config:
Untitled.png
Untitled.png (21.99 KiB) Viewed 10622 times

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post by harsini »

Do you want to see any other config of the router? :?

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post 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.

Lantis
Moderator
Posts: 7063
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post 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"
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post by harsini »

Thank you lantis.I tested duckdns with no success.with the below error message:
ddnsUpdateFailed2.jpg
ddnsUpdateFailed2.jpg (14.58 KiB) Viewed 10535 times

User avatar
harsini
Posts: 84
Joined: Mon Jul 22, 2013 9:59 am
Location: Iran

Re: DDNS update failed in gargoyle 1.7 but not 1.6

Post 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'
Last edited by harsini on Sun May 10, 2015 8:48 am, edited 2 times in total.

Post Reply