Page 1 of 2
Issue with wget...
Posted: Fri Mar 18, 2016 4:09 pm
by 11freddy
I am using a 'custom' DNS service that requires me to keep their system updated with my current WAN IP (I have a dynamic IP). This can be done manually with a web link but they also provided a line to add to the crontab for DDWRT... to automate the update.
I assumed this should work also for Gargoyle, got WinSCP, was able to find the root file and add
0 * * * * root wget
http://unlo.it/Your_API_KEY_HER
rebooted router but it didn't work.
I then opened a console and issued the wget command... got the following response
Failed with return code 1 and error message
/etc/crontabs$ wget
http://unlo.it/<API Key Deleted>
Connecting to unlo.it (95.211.39.42:80)
wget: not an http or ftp url:
https://unlocator.com/tool/api.php?api_key=<Deleted>
Any idea what the issue might be?
Thanks.
Re: Issue with wget...
Posted: Fri Mar 18, 2016 5:16 pm
by Lantis
I'm not too familiar with wget, however I know gargoyle doesn't install the full version of it.
You can opkg update and then opkg install to try and get the full version.
That's a complete guess though.
Re: Issue with wget...
Posted: Sat Mar 19, 2016 9:17 am
by oliver
Looks like that short URL expands to an HTTPS address and the Gargoyle wget was apparently not compiled with SSL support.
Does the URL work if you drop the 's''? If so, use that. But I would imagine it's a redirect on their side from HTTP to HTTPS since you initially connect on :80
Re: Issue with wget...
Posted: Sat Mar 19, 2016 12:13 pm
by 11freddy
The web address you use manually is also http: so I suspect as you say the site must make that change.
Afraid I'm ignorant on DD-WRT and how I might address this problem with wget. Any suggestions where I might go to learn how?
How risky is it (ie possibility to brick my router)...
Thanks.
Re: Issue with wget...
Posted: Sat Mar 19, 2016 4:46 pm
by Lantis
You never mentioned what router you have? But with plenty of space, installing the ssl version of wget is going to take 30 seconds following my instructions from earlier.
Re: Issue with wget...
Posted: Sat Mar 19, 2016 5:45 pm
by 11freddy
Its a TP-Link Archer A7, so think memory shouldn't be an issue.
Didn't realize it was that simple... I just enter those commands in a Telnet session? Nothing to download first?
Thanks.
Re: Issue with wget...
Posted: Sat Mar 19, 2016 5:58 pm
by Lantis
At an ssh prompt, not telnet. But yea.
opkg update
opkg install wget --force-reinstall
Should get you SSL support.
Re: Issue with wget...
Posted: Sun Mar 20, 2016 8:05 am
by 11freddy
Remarkably easy...
Was able to make the command work after this.
Thanks.
Re: Issue with wget...
Posted: Sun Mar 20, 2016 8:11 pm
by 11freddy
...onto the next problem...
Realized eventually Cron isn't enabled by default on OpenWRT.
When I issue the start commend I get an error message saying 'uninteger - 9 = true'. Any idea why that should happen?
THanks.
Re: Issue with wget...
Posted: Sun Mar 20, 2016 9:19 pm
by Lantis
It should be enabled?
We use it all the time to schedule backups for bandwidth data.
How are you starting it?