IPv6 HowTo in new versions - HE.NET tunnelbroker

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
danis
DD-WRT Novice


Joined: 22 Sep 2010
Posts: 25
Location: Toronto, Ontario

PostPosted: Sat Dec 06, 2014 19:02    Post subject: IPv6 HowTo in new versions - HE.NET tunnelbroker Reply with quote
Hi Everyone,

I've noticed IPv6 is now baked into DD-WRT. I spent about 2 hours trying to make this new version work with my HE.NET tunnelbroker tunnel , so I figured I would help out the community (and for my future reference... LOL).

Please see the following screenshot for help if you need it!

Please note, I don't use DHCP (since I run my own internal DHCP server on another machine), so you might have to find another thread for that.

I also used an old script which I found on here to update the tunnel status (but I haven't tested it yet, but pretty sure it works since this is part of the same script I used to use, original script is at : http://www.dd-wrt.com/wiki/index.php/IPv6_setup_Hurricane_Electric_Tunnel_Broker )

Code:

#Update HE Settings
#basic connection settings
SERVER_IP4_ADDR="Server IPv4 Address"
CLIENT_IPV6_ADDR="Client IPv4 Address"
ROUTED_64_ADDR="ROUTED ADDRESS (with suffix), eg 2001:1:1:1/64 "

#account info to auto update endpoint
USERID="enter your hex user id. NOT text username"
PASSWD="your plain text password"
TUNNELID="your numeric tunnel id"

HE_VERIFY_SERVER_IP="66.220.2.74"
CRON_STATUS_LOG_FILE="/tmp/lastHEUpdate.log"

ENABLE_WANUP_SCRIPT=1
WANUP_SCRIPT_FILE_PATH="/tmp/etc/config/tunnelUpdate.wanup"

CRON_JOB_FILE="/tmp/report.sh"
STARTUP_SCRIPT_LOG_FILE="/tmp/ipv6.log"

#get a hash of the plaintext password
MD5PASSWD=`echo -n $PASSWD | md5sum | sed -e 's/  -//g'`
#initialize network before getting the WAN IP
sleep 10
WANIP=$(nvram get wan_ipaddr);

#update HE endpoint
#need to allow wan ping or HE will not validate new endpoint
iptables -I INPUT 2 -s $HE_VERIFY_SERVER_IP -p icmp -j ACCEPT
echo -e wget -q "http://ipv4.tunnelbroker.net/ipv4_end.php?ip=$WANIP&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O $CRON_STATUS_LOG_FILE  >>$CRON_JOB_FILE
chmod +x $CRON_JOB_FILE
echo "Cron script created, sending endpoint update request to HE" >> $STARTUP_SCRIPT_LOG_FILE
etime=`date +%s`
wget -q "http://ipv4.tunnelbroker.net/ipv4_end.php?ip=$WANIP&pass=$MD5PASSWD&apikey=$USERID&tid=$TUNNELID" -O /tmp/wget.tmp.$etime
cat /tmp/wget.tmp.$etime >> $STARTUP_SCRIPT_LOG_FILE
echo "" >> $STARTUP_SCRIPT_LOG_FILE
rm /tmp/wget.tmp.$etime




ipv6-config-Tunnel.jpg
 Description:
IPv6 config for HE.net
 Filesize:  120.77 KB
 Viewed:  4902 Time(s)

ipv6-config-Tunnel.jpg


Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum