Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dluciv/2ac78daefee60b433aea3522afbfe329 to your computer and use it in GitHub Desktop.
Save dluciv/2ac78daefee60b433aea3522afbfe329 to your computer and use it in GitHub Desktop.
RouterOS IPv6 Firewall Rules
/ipv6 firewall filter
add action=accept chain=input comment="Allow established connections" connection-state=established disabled=no
add action=accept chain=input comment="Allow related connections" connection-state=related disabled=no
add action=accept chain=input comment="Allow ICMP" disabled=no protocol=icmpv6
add action=accept chain=input comment="Allow UDP" disabled=no protocol=udp
add action=drop chain=input comment="" disabled=no
add action=accept chain=forward comment="Allow any to internet" disabled=no out-interface=sit1
add action=accept chain=forward comment="Allow established connections" connection-state=established disabled=no
add action=accept chain=forward comment="Allow related connections" connection-state=related disabled=no
add action=accept chain=forward comment="Allow ICMP" disabled=no protocol=icmpv6
add action=drop chain=forward comment="" disabled=no
@dluciv
Copy link
Author

dluciv commented Apr 2, 2017

Above script is for 6in4.

For 6to4, replace sit1 with ipng-tunnel.

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