• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

Badauth on tunnel validation?

Started by axivo, April 28, 2013, 06:13:07 PM

Previous topic - Next topic

axivo

I'm trying to automatically validate my dynamic IP with a shell script:
https://ipv4.tunnelbroker.net/nic/update?username=<USERNAME>&password=<PASSWORD>&hostname=<TUNNEL_ID>

When I enter it into browser it works and returns the proper value:
nochg MYIP

However, when I run it on a terminal in either Redhat 5 or 6:
$ curl -s https://ipv4.tunnelbroker.net/nic/update?username=<USERNAME>&password=<PASSWORD>&hostname=<TUNNEL_ID>
I get an error: badauth

Any idea how to fix this? Thank you.

kasperd

Quote from: axivo on April 28, 2013, 06:13:07 PMHowever, when I run it on a terminal in either Redhat 5 or 6
Aren't those versions from the previous millennium? I'm pretty sure when I first installed it in 1999, it was at version 6.0.

Quote from: axivo on April 28, 2013, 06:13:07 PM$ curl -s https://ipv4.tunnelbroker.net/nic/update?username=<USERNAME>&password=<PASSWORD>&hostname=<TUNNEL_ID>
You need quotes around the URL.

snarked

I agree with the quotes being necessary.  You forget that "&" is a unix shell metacharacter.