Skip to content

Instantly share code, notes, and snippets.

@gordlea
Last active September 21, 2023 06:48
Show Gist options
  • Save gordlea/a8a275aeb0ded62f4807834c2074f670 to your computer and use it in GitHub Desktop.
Save gordlea/a8a275aeb0ded62f4807834c2074f670 to your computer and use it in GitHub Desktop.
edgerouter ipv6 config for telus purefibre
# current as of edgeos v1.10.5
# cobbled together from:
# https://medium.com/@nurblieh/ipv6-on-the-edgerouter-lite-c95e3cc8d49d
# https://heald.ca/configuring-telus-optik-ipv6-ubiquiti-edgerouter/
configure
edit firewall ipv6-name WANv6_IN
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
top
edit firewall ipv6-name WANv6_LOCAL
set default-action drop
set rule 10 action accept
set rule 10 description "allow established"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
set rule 20 description "drop invalid packets"
set rule 20 protocol all
set rule 20 state invalid enable
set rule 30 action accept
set rule 30 description "allow ICMPv6"
set rule 30 protocol icmpv6
set rule 40 action accept
set rule 40 description "allow DHCPv6 client/server"
set rule 40 destination port 546
set rule 40 source port 547
set rule 40 protocol udp
top
set interfaces ethernet eth0 firewall in ipv6-name WANv6_IN
set interfaces ethernet eth0 firewall local ipv6-name WANv6_LOCAL
set interfaces ethernet eth0 dhcpv6-pd prefix-only
set interfaces ethernet eth0 dhcpv6-pd rapid-commit enable
set interfaces ethernet eth0 dhcpv6-pd pd 0 prefix-length 56
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface eth1 prefix-id :0
set interfaces ethernet eth0 dhcpv6-pd pd 0 interface eth1 service slaac
set interfaces ethernet eth0 ipv6 router-advert managed-flag true
set interfaces ethernet eth0 ipv6 dup-addr-detect-transmits 1
commit
# check if you get an ipv6 address on eth1, if all is good then run `save`
# To fix ipv6 on telus, add a script called fix_ipv6.sh under /config/scripts with
# the following content:
# assuming eth0 is your wan interface
/bin/rdisc6 --single eth0 > /dev/null
# then add it as a scheduled task with a couple of commands like:
# configure
# set system task-scheduler task fixipv6 executable path /config/scripts/fix_ipv6.sh
# set system task-scheduler task fixipv6 interval 30m
# commit
# save
@nathanvy
Copy link

Hah. I ended up getting it working somehow. Thanks for the eventual reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment