Hurricane Electric
Hurricane Electric 是一家知名的全球網際網路服務供應商,以其穩定、高效能的網路服務聞名,特別是在 IPv6 的領域中扮演著重要角色。該公司總部位於美國加州費利蒙,其骨幹網路遍及北美、歐洲、亞洲、南美洲、非洲和大洋洲,並與超過 200 個主要交換點互連,提供 IP 轉址、主機代管、專線以及資料中心等服務。
使用Tunnel Broker的好處
給你的IPv4 only vps添加公網IPv6
免費/48IP段 請勿濫用!
解鎖部分流媒體
解鎖ChatGPT,Disney+,Netflix(僅自製)
使用教程
注冊Tunnel Broker賬號:
注意事項
這裏的Country決定了你IP顯示的位置(不是Tunnel的位置,是你在查IP的時候顯示的位置)
比如你在這裏填了Hong Kong,即使你tunnel的位置在美國,你在查IP的時候會顯示在Hong Kong
這裏的Email不能用gmail&outlook,會提示That email is not permitted
我用這個temp mail可以注冊
用戶注冊當天只能創建/64Tunnel,需要等待一天後才能獲得/48Tunnel
注冊後,點擊左邊的Create Regular Tunnel
創建Tunnel
綫路
香港&新加坡3網繞路(日本沒試),美國洛杉磯直連
香港
新加坡
美國洛杉磯
查看Tunnel配置
注:注冊一天後可以在這裏獲取/48 IP段
獲取配置
點擊Example Configurations
選擇你的系統,本文以Debian系爲例
生成隨機IP
填上Routed /48
的内容
https://bulianglin.com/archives/ipv6.html
添加接口到VPS
安裝組件
apt update
apt install net-tools iproute2 ifupdown -y
快速命令
tee /etc/network/interfaces.d/he-ipv6 <<EOF
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:xxxx:xxxx:xxxx:xxxx:xxxx
netmask 48
endpoint xx.xx.xx.xx
local xx.xx.xx.xx
ttl 255
gateway 2001:xxxx:xxxx:xxxx:xxxx:xxxx
EOF
如果你需要添加更多IP,請在後面加上up ip -6 addr add 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/48 dev he-ipv6
例子
tee /etc/network/interfaces.d/he-ipv6 <<EOF
auto he-ipv6
iface he-ipv6 inet6 v4tunnel
address 2001:xxxx:xxxx:xxxx:xxxx:xxxx
netmask 48
endpoint xx.xx.xx.xx
local xx.xx.xx.xx
ttl 255
gateway 2001:xxxx:xxxx:xxxx:xxxx:xxxx
up ip -6 addr add 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/48 dev he-ipv6
up ip -6 addr add 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/48 dev he-ipv6
up ip -6 addr add 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx/48 dev he-ipv6
EOF
啓用Tunnel
啓動接口
echo 'source /etc/network/interfaces.d/*' >>/etc/network/interfaces
ifup he-ipv6
輸入ifoconfig
應該就能看見一個he-ipv6
接口
he-ipv6: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1480
inet6 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 48 scopeid 0x0<global>
inet6 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 48 scopeid 0x0<global>
inet6 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 48 scopeid 0x0<global>
inet6 2001:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx prefixlen 48 scopeid 0x0<global>
sit txqueuelen 1000 (IPv6-in-IPv4)
RX packets 2 bytes 208 (208.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2 bytes 208 (208.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
測試Tunnel
輸入ping ipv6.google.com
root@VMxxxx-xxx:~# ping ipv6.google.com
PING ipv6.google.com(sh-in-f139.1e100.net (2404:6800:4003:c1c::8b)) 56 data bytes
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=1 ttl=110 time=1.69 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=2 ttl=110 time=1.76 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=3 ttl=110 time=1.71 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=4 ttl=110 time=1.69 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=5 ttl=110 time=1.67 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=6 ttl=110 time=1.72 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=7 ttl=110 time=1.66 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=8 ttl=110 time=1.70 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=9 ttl=110 time=1.70 ms
64 bytes from sh-in-f139.1e100.net (2404:6800:4003:c1c::8b): icmp_seq=10 ttl=110 time=1.71 ms
^C
--- ipv6.google.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9010ms
rtt min/avg/max/mdev = 1.661/1.701/1.763/0.026 ms
刪除Tunnel
停用Tunnel
ifdown he-ipv6
刪除Tunnel
rm -f /etc/network/interfaces.d/he-ipv6
其他玩法
看看我之後有沒有時間寫吧
评论区