Skip to content

Instantly share code, notes, and snippets.

@rlex
Created April 26, 2016 14:34
Show Gist options
  • Save rlex/7841736d679f0afba0d12d8324c24999 to your computer and use it in GitHub Desktop.
Save rlex/7841736d679f0afba0d12d8324c24999 to your computer and use it in GitHub Desktop.
IPv6 minimal firewall for mikrotik
add chain=input comment="Router: Allow established connections" connection-state=established
add chain=input comment="Router: Allow related connections" connection-state=related
add chain=input comment="Router: Allow IPv6 ICMP" protocol=icmpv6
add action=drop chain=input comment="Drop everything else"
add chain=forward comment="LAN: Allow established connections" connection-state=established
add chain=forward comment="LAN: Allow related connections" connection-state=related
add chain=forward comment="LAN: Allow IPv6 ICMP" protocol=icmpv6
#example rule for opening port
add chain=forward comment="LAN: Allow SSH" dst-port=22 protocol=tcp
add chain=forward comment="Allow any to internet" out-interface=sixbone
add chain=forward comment="Drop everything else" action=drop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment