Hurricane Electric's IPv6 Tunnel Broker Forums

Advanced search  

News:

Welcome to Hurricane Electric's Tunnelbroker.net forums!

Author Topic: Badauth on tunnel validation?  (Read 3722 times)

axivo

  • Newbie
  • *
  • Posts: 1
Badauth on tunnel validation?
« 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.
Logged

kasperd

  • Founder, Netiter ApS
  • Hero Member
  • *****
  • Posts: 965
Re: Badauth on tunnel validation?
« Reply #1 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.
Logged

snarked

  • Hero Member
  • *****
  • Posts: 775
Re: Badauth on tunnel validation?
« Reply #2 on: April 29, 2013, 10:27:59 AM »

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