Hurricane Electric's IPv6 Tunnel Broker Forums

General IPv6 Topics => IPv6 on Linux & BSD & Mac => Topic started by: aziaja on January 21, 2009, 12:03:52 PM

Title: Dynamic IP
Post by: aziaja on January 21, 2009, 12:03:52 PM
...
Title: Re: Dynamic IP
Post by: jucs on March 17, 2009, 12:17:03 PM
You need to alter your script:


#!/bin/bash

NEW_IP=`curl -s "http://whatismyip.com/automation/n09230945.asp"`
HEUSER=556e527c5ef766e74a980XXXXXXXXXXX
HEPASS=XXXX
HETUNNEL=XXXX

HEPASS=`echo -n $HEPASS | md5sum | cut -d ' ' -f 1`
curl -k -s "http://ipv4.tunnelbroker.net/ipv4_end.php?ipv4b=$NEW_IP&pass=$HEPASS&user_id=$HEUSER&tunnel_id=$HETUNNEL"