To set up Hurricane Electric (HE) IPv6 on Ubuntu, you will need to do the following:
Sign up for an account with Hurricane Electric and request a tunnel. This will give you a Tunnel Server (also known as an endpoint) and a Tunnel ID that you will need to configure the tunnel.
On your Ubuntu machine, install the "inetutils-inetd" package, which includes the "inetd" service that we will use to set up the tunnel:
sudo apt-get install inetutils-inetd
Create a new file called "sit1" in the "/etc/network/interfaces.d" directory with the following contents, replacing the values for "server" and "tunnel_id" with the values provided by Hurricane Electric:
auto sit1
iface sit1 inet6 v4tunnel
address YOUR_IPV6_ADDRESS
netmask 64
endpoint YOUR_TUNNEL_SERVER
local YOUR_IPV4_ADDRESS
ttl 255
sit1
enable the interface
sudo ifup sit1
Start the "inetd" service:
sudo service inetutils-inetd start
Verify that the tunnel is up and running:
ip addr show sit1
Verify that you are able to reach the IPv6 internet by pinging an IPv6 address:
ping6 ipv6.google.com