tajidyakub
2/11/2018 - 8:37 AM

Configure a 6to4 tunnel from our server to HE's tunnelbroker in Ubuntu

Configure a 6to4 tunnel from our server to HE's tunnelbroker in Ubuntu

Hurricane Electronic's 6to4 Tunnel Broker

URL : https://tunnelbroker.net/

  • Register for tunnelbroker 6to4 service from HE
  • Create a tunnel in the management interface, you have to provide your server's IP Address as tunnel endpoint
  • Download init script, make it executable and put inside /etc/network/if-up.d/
  • Init script from https://gist.github.com/jbhannah/987146
$ wget wget https://gist.githubusercontent.com/jbhannah/987146/raw/790fb57ec940a82d1b3c5fb984f0b53918f34032/he-ipv6.sh
$ chmod +x he-ipv6.sh
$ move he-ipv6.sh /etc/network/if-up.d/

View and modify the script if necessary. These are the configuration inside the file that you need to adjust

# The primary internet-facing network interface
MY_IF=eth0
# Given under "IPv6 Tunnel Endpoints" on the tunnel details page
SERVER_V4=216.218.221.42 # He tunnel gateway
CLIENT_V6=2001:470:35:dbc::2/64 # Your allocated /64 ipv6
# An address from your Routed /64 or /48 prefix for the local interface
LOCAL_V6=2001:470:35:dbc::1337/64 # Your designated local ipv6 (taken from allocated)

Execute the script manually or restart networking service via systemctl

$ ./heipv6.sh
$ systemctl restart networking