Created
June 20, 2012 12:21
-
-
Save mralexgray/2959642 to your computer and use it in GitHub Desktop.
ipv6 tunnelbroker / he.net dyndns setup / update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo `curl -k --trace -s https://domain.com:[email protected]/nic/update?hostname=domain.com` | |
// XXXXXXXXXXXXXXXXX = dns.he.net key | |
-ERROR: Missing parameter(s). | |
Usage: https://ipv4.tunnelbroker.net/ipv4_end.php?ip=IPV4ADDR&pass=MD5PASS&apikey=USERID&tid=TUNNELID | |
-or-: https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID (auto-detect IP) | |
https://USERNAME:[email protected]/ipv4_end.php?tid=TUNNELID&ip=IPV4ADDR | |
IPV4ADDR: Your IPv4 endpoint. Set to AUTO to determine your IP based on the IP you requested this page from. Previously passed as ipv4b. | |
MD5PASS : The MD5 hash of your password. You may be able to 'echo -n YOURPASSWORD | md5sum' to produce the MD5 hash of your password. | |
USERID : The UserID shown on the main page of tunnelbroker.net when you log in. Previously referred to as user_id. | |
TUNNELID: The ID of the tunnel you're updating the endpoint on. This can be found on the tunnel information page. Previously referred to as the Global Tunnel ID / tunnel_id. | |
The following parameters are only usable when accessing this script over https. | |
USERNAME: Your tunnelbroker.net username. | |
PASSWORD: Your tunnelbroker.net password. | |
The legacy parameter names will continue to work for the forseable future. Naming of them changed to be more in line with industry convention and their roles. | |
# EXTERNAL_IPV4=`curl -s "http://v4.ipv6-test.com/api/myip.php"` | |
# # logger External IP reported as $EXTERNAL_IPV4 | |
# | |
# SERVER_IPV4=209.51.161.14 | |
# TUNNELCLIENT_IPV6ADDRESS=2001:470:1f06:2cd::2 | |
# TUNNELSERVER_IPV6ADDRESS=2001:470:1f06:2cd::1 | |
# LOCAL_IPV6ADDRESS_en0=2001:470:8b55::100 | |
# # LOCAL_IPV6ADDRESS_en1=2001:470:8b55::100 | |
# | |
# sudo ifconfig gif0 destroy | |
# sudo ifconfig gif0 create | |
# sudo ifconfig gif0 tunnel $EXTERNAL_IPV4 $SERVER_IPV4 | |
# sudo ifconfig gif0 inet6 $TUNNELCLIENT_IPV6ADDRESS $TUNNELSERVER_IPV6ADDRESS prefixlen 128 | |
# | |
# sudo route -n add -inet6 default $TUNNELSERVER_IPV6ADDRESS | |
# | |
# sudo ifconfig en0 inet6 $LOCAL_IPV6ADDRESS_en0 prefixlen 48 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment