Last active
August 17, 2024 18:04
-
-
Save rys/fba04fafac8dd1a67e62 to your computer and use it in GitHub Desktop.
HE.net Tunnelbroker IPv6 tunnel on EdgeOS
This file contains 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
# this assumes WAN is eth0 and LAN is switch0. Please adjust for your own setup | |
configure | |
# Tunnel first | |
edit interfaces tunnel tun0 | |
set encapsulation sit | |
set local-ip xxx.xxx.xxx.xxx # your WAN IP | |
set remote-ip xxx.xxx.xxx.xxx # HE.net Server IPv4 Address | |
set address xxxx:xxxx:xxxx:xxxx::2/64 # Client IPv6 Address | |
set description "HE.NET IPv6 Tunnel" | |
exit | |
set protocols static interface-route6 ::/0 next-hop-interface tun0 | |
commit | |
# Use DHCPv6 to set some client config parameters | |
edit service dhcpv6-server shared-network-name SWITCH0_V6POOL | |
set subnet xxxx:xxxx:xxxx:xxxx::/64 domain-search xxxx # your local domain | |
set subnet xxxx:xxxx:xxxx:xxxx::/64 name-server xxxx:xxxx:xxxx:xxxx::2 | |
top | |
commit | |
# Set the LAN IPv6 address | |
set interfaces switch switch0 address xxxx:xxxx:xxxx:xxxx::1/64 # 1st IP in the routed /64 | |
# Set the DHCPv6 options to assign interface parameters only, not addresses | |
set interfaces switch switch0 dhcpv6-options parameters-only | |
# Setup Router Advertisement | |
edit interfaces switch switch0 ipv6 | |
set dup-addr-detect-transmits 1 | |
set router-advert cur-hop-limit 64 | |
set router-advert default-preference high | |
set router-advert link-mtu 0 | |
set router-advert managed-flag false | |
set router-advert max-interval 600 | |
set router-advert other-config-flag true | |
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 autonomous-flag true # Routed /64 | |
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 on-link-flag true | |
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 valid-lifetime 2592000 | |
set router-advert reachable-time 0 | |
set router-advert retrans-timer 0 | |
set router-advert send-advert true | |
top | |
commit | |
# Save everything | |
save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi got it working thank you so much,
just in case I haven't messed up this section:
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 autonomous-flag true # Routed /64
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 on-link-flag true (is this the routed /64? or client ipv6 address)
set router-advert prefix xxxx:xxxx:xxxx:xxxx::/64 valid-lifetime 2592000 (is this the routed /64? or client ipv6 address)
are they ALL the routed /64? or client ipv6 address?
EDIT: nevermind looks like they are all the Routed /64
Currently using it with ISP Virgin Media and it's confirmed that they throttle protocol 41.
this is how bad it is: http://img2.ipv6-test.com/speedtest/result/2021/04/12/846f902c12feef60789a7a8ca0bc3ff3.png