A typical case: the IPv4 firewall is textbook, with default deny on input and forward, management only from the admin VLAN and a tidy port forward for the NAS. Scan the same router over IPv6 and Winbox, the DNS resolver and the NAS's admin page answer from the internet. Nothing on the IPv4 side is wrong. The IPv6 side has no rules at all.
RouterOS keeps two firewalls, one per address family, and they share nothing except interface lists and the connection tracker. A router can be default-deny over IPv4 and accept-all over IPv6 at the same time, and on a Starlink or fibre link with a delegated prefix the second one is reachable from anywhere.
This post is about that gap, not about ICMPv6 itself; the full RFC 4890 treatment is in IPv6 in Depth: the firewall, done right. Here: how to spot the gap, the parity ruleset, port forwards without NAT, and Starlink.
01
Nobody decides to leave IPv6 open. It happens because two separate firewalls exist and only one of them was written.
On RouterOS 7, IPv6 is part of the main package and enabled by default. Its firewall lives in /ipv6 firewall, entirely separate from /ip firewall: separate filter, separate RAW, separate address lists. The default configuration includes a sensible IPv6 ruleset, which is exactly why the problem is so common: installers who start with /system reset-configuration no-defaults=yes and build their own IPv4 firewall end up with a full IPv4 policy and an empty IPv6 one.
For years that didn't matter, because many ISPs delivered no IPv6 at all. Then two things changed: fibre ISPs started handing out prefixes, and Starlink delegates a /56 to every terminal. The day the WAN gets a prefix, every LAN host gets a global address, and the empty IPv6 filter accepts everything in both directions.
Behind Starlink or most 4G, the router's IPv4 WAN address is in 100.64.0.0/10. Nothing on the internet can start a connection to it, so a missing IPv4 input rule never shows. That habit carries over badly: on the same link, IPv6 is a routable /56 with no NAT anywhere, and the NAS, the cameras and the router's own Winbox are directly addressable.
02
Five read-only commands tell you whether a router is exposed over IPv6 right now.
/ipv6 settings print # disable-ipv6: no forward: yes accept-router-advertisements: yes-if-forwarding-disabled /ipv6 address print where global # a 2a0d:... or 2001:... address on the WAN or the bridge = IPv6 is live /ipv6 route print where dst-address=::/0 /ipv6 firewall filter print count-only # 0 = everything accepted, in and through /ip dns print # allow-remote-requests: yes = a resolver that also answers on every IPv6 address
# from a host with IPv6 (a VPS, a phone hotspot with IPv6): nmap -6 -Pn -p 22,53,80,443,8291,8728,8729 2a0d:xxxx:xxxx:xx00::1 # do NOT sweep a /64: find the LAN hosts from the router's neighbour table instead /ipv6 neighbor print where status=reachable
A /64 has 264 addresses, so the "nobody will find it" argument sounds convincing. It isn't: addresses leak through DNS, TLS certificate logs, outbound connections and EUI-64 suffixes derived from MACs. The router's neighbour table is how you find what is actually there; the filter is what protects it.
03
Mirror the intent of the IPv4 firewall, not its text. What changes is ICMPv6, DHCPv6 and the absence of NAT.
/ipv6 firewall address-list
add list=bad_ipv6 address=::/128 comment="unspecified"
add list=bad_ipv6 address=::1/128 comment="loopback"
add list=bad_ipv6 address=fec0::/10 comment="site-local, deprecated"
add list=bad_ipv6 address=::ffff:0.0.0.0/96 comment="IPv4-mapped"
add list=bad_ipv6 address=2001:db8::/32 comment="documentation"
add list=bad_ipv6 address=100::/64 comment="discard-only"
/ipv6 firewall filter
add chain=input connection-state=established,related,untracked action=accept
add chain=input connection-state=invalid action=drop
add chain=input protocol=icmpv6 action=accept comment="ND, RA, PMTU: see the RFC 4890 post"
add chain=input protocol=udp dst-port=33434-33534 action=accept comment="traceroute"
add chain=input protocol=udp src-address=fe80::/10 dst-port=546 action=accept \
comment="DHCPv6 replies: the prefix from the ISP"
add chain=input in-interface-list=LAN action=accept
add chain=input action=drop comment="FINAL DROP input v6"
add chain=forward connection-state=established,related,untracked action=accept
add chain=forward connection-state=invalid action=drop
add chain=forward src-address-list=bad_ipv6 action=drop
add chain=forward dst-address-list=bad_ipv6 action=drop
add chain=forward protocol=icmpv6 hop-limit=equal:1 action=drop \
comment="RFC 4890: never forward hop-limit 1"
add chain=forward protocol=icmpv6 action=accept
add chain=forward in-interface-list=LAN out-interface-list=WAN action=accept
add chain=forward action=drop comment="FINAL DROP forward v6"
| IPv4 rule | IPv6 counterpart | Note |
|---|---|---|
| accept established, related, untracked | identical | Same tracker, separate table. |
| accept ICMP (limited) | accept ICMPv6, drop hop-limit 1 in forward | IPv6 breaks without ND and Packet Too Big. Details in the RFC 4890 post. |
| DHCP client on the WAN (udp 68) | udp 546 from fe80::/10 | Without it the prefix never arrives, or stops renewing. |
address-list mgmt, bogons | /ipv6 firewall address-list | Lists are per family: an IPv4 list matches nothing in IPv6. |
| interface-list LAN / WAN | identical | Interface lists are shared: the one thing you get for free. |
| dst-nat port forward | a forward accept to the host | No NAT in IPv6: see section 4. |
The cheapest control is procedural: no IPv4 filter change is complete until its IPv6 counterpart is in the same commit, with the same comment. A "management from these networks" rule that exists only in /ip is half a rule.
04
In IPv4 the port forward was the only way in. In IPv6 every host is already "forwarded", and the filter is the only thing that says no.
# IPv4: dst-nat 203.0.113.10:443 -> 192.168.88.10:443, plus the filter rule # chain=forward connection-nat-state=dstnat action=accept # IPv6: no translation; allow exactly the service on exactly the host /ipv6 firewall address-list add list=published-web address=2a0d:xxxx:xxxx:xx10::10/128 comment="NAS web" /ipv6 firewall filter add chain=forward in-interface-list=WAN dst-address-list=published-web \ protocol=tcp dst-port=443 action=accept \ place-before=[find comment="FINAL DROP forward v6"]
If the ISP's prefix changes, so does every global address, and an address-list entry with the old prefix silently stops matching. Ask for a static prefix where you publish services, or keep the published hosts on a fixed interface ID and update the list from a script on the DHCPv6 client's prefix change. Starlink prefixes do change.
Note the absence of a rule for the reverse direction: established replies are already accepted at the top of the chain. Everything the old NAT did "for free", blocking unsolicited inbound connections, is now the job of the final drop in forward.
05
The terminal in bypass mode gives the router an IPv6 default route by RA and a /56 by DHCPv6-PD. Take both, deliberately.
# a forwarding router ignores RAs unless told otherwise /ipv6 settings set accept-router-advertisements=yes /ipv6 dhcp-client add interface=ether1 request=prefix pool-name=starlink6 \ pool-prefix-length=64 add-default-route=no use-peer-dns=no # one /64 from the delegated /56 for the LAN bridge, advertised to clients /ipv6 address add interface=bridge from-pool=starlink6 address=::1 advertise=yes # the parity ruleset from section 3 goes in BEFORE this point
Apply the IPv6 filter first, then add the DHCPv6 client. If the prefix arrives first, there is a window, minutes or months, in which every LAN host has a global address and no filter. On a router you are converting, run the 60-second audit, install the ruleset in Safe Mode, then enable or verify the WAN side.
06
IOS has the opposite default, and the same lesson.
| Topic | RouterOS | IOS / IOS-XE |
|---|---|---|
| IPv6 routing by default | on | off until ipv6 unicast-routing |
| Firewall per family | separate /ipv6 firewall | ACLs separate (ipv6 traffic-filter); zone-based firewall inspects both if the class-maps match IPv6 |
| Address lists / object-groups | per family | object-group network per family |
| First-hop protection | bridge filters, RA guard on switch chips | RA Guard, DHCPv6 Guard, IPv6 Source Guard |
On IOS, turning on ipv6 unicast-routing without IPv6 ACLs or zone membership produces the same hole. Zone-based firewall helps: an interface in a zone is filtered for both families, as long as the inspect class-maps don't match only IPv4 ACLs.
07
The test is the one an attacker would run: from outside, over IPv6.
| Test | Expected |
|---|---|
nmap -6 the router's WAN and LAN addresses from outside | Everything filtered; ICMPv6 echo may answer. |
nmap -6 a LAN host's global address from outside | Filtered, except the published service. |
LAN client: curl -6 https://ifconfig.co | Works: outbound IPv6 is allowed. |
/ipv6 firewall filter print stats after the scans | The final drops counted your probes. |
| Renew the prefix (or reboot the Starlink) | Prefix returns, the filter still applies, published service list updated. |
Takeaways
/ip firewall rules do nothing for IPv6; only interface lists and the tracker are shared.Part of a set on RouterOS security rules: rule order & performance · dual-stack parity · dynamic defences · templates for villas, shops & hotels. Foundations: the RouterOS firewall, properly.
I audit RouterOS and Cisco edges in both address families, from the outside, and close the IPv6 side to the same standard as the IPv4 one.
Book a Discovery Call →