Hurricane Electric's IPv6 Tunnel Broker Forums

Tunnelbroker.net Specific Topics => Questions & Answers => Topic started by: axivo on April 28, 2013, 06:13:07 PM

Title: Badauth on tunnel validation?
Post by: axivo on April 28, 2013, 06:13:07 PM
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.
Title: Re: Badauth on tunnel validation?
Post by: kasperd on April 28, 2013, 11:33:46 PM
However, 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.

$ curl -s https://ipv4.tunnelbroker.net/nic/update?username=<USERNAME>&password=<PASSWORD>&hostname=<TUNNEL_ID>
You need quotes around the URL.
Title: Re: Badauth on tunnel validation?
Post by: snarked on April 29, 2013, 10:27:59 AM
I agree with the quotes being necessary.  You forget that "&" is a unix shell metacharacter.