——
LabLABS

Audit IPv6 exposure before it becomes the firewall path nobody reviewed

A controlled RouterOS 7 lab for finding public IPv6 reachability, checking input and forward policy, preserving PMTUD, and recording before-and-after evidence without scanning systems you do not own.

A controlled RouterOS 7 lab for finding public IPv6 reachability, checking input and forward policy, preserving PMTUD, and recording before-and-after evidence without scanning systems you do not own.

MikroTikRouterOS 7IPv6firewallexposure auditPMTUD

Learning objectives

By the end of this authorised lab, you will be able to identify the IPv6 addresses and prefixes assigned to a RouterOS 7 site, distinguish router-management exposure from forwarded-host exposure, test only assets you own from an independent network, and retain evidence that a firewall change did not break essential ICMPv6 or path MTU discovery (PMTUD).

This is a Lab, not a generic firewall guide. Perform it only for an organisation that has authorised the scope. Do not probe third-party IPv6 addresses, do not run broad port scans, and do not treat a missing HTTP response as proof that a host is safe.

Prerequisites, versions and safety boundary

Tested command syntax: RouterOS 7 CLI. Validate exact behaviour against your installed RouterOS release; firewall rules, interface-list names and delegated prefixes are local configuration decisions.

You need:

  • a RouterOS administrator account and console or an out-of-band recovery path;
  • a written list of public DNS names, WAN interfaces, routed IPv6 prefixes and approved test hosts;
  • one external IPv6-capable test network that you control (for example, a mobile connection or a separate site);
  • a timestamped configuration export stored securely; and
  • a change window if rules may be altered.

Record the starting state before changing anything. In a remote session, use RouterOS Safe Mode: in the terminal press Ctrl+X (or F4 in WinBox). RouterOS documents that floating changes are reverted when the Safe Mode session ends abnormally. Safe Mode is a guardrail, not a substitute for a tested backup or a local-console recovery plan.

Time, difficulty and lab topology

Hands-on time: 60–90 minutes
Difficulty: Intermediate
Lab topology: one RouterOS 7 edge router with a WAN interface list, one internal IPv6-capable host, and one external test host under your control.

Use documentation prefixes in notes and examples. 2001:db8::/32 is reserved for documentation; it is not a routable production target.

Step 1 — build the exposure inventory

First establish what could be reachable. On RouterOS, inspect IPv6 addresses and routes:

/ipv6/address/print detail
/ipv6/route/print detail where dst-address~"::/0"
/ipv6/nd/print detail
/interface/list/member/print

Expected result: at least one global unicast address or delegated prefix is associated with the WAN/LAN design, and the default IPv6 route identifies the upstream path. Link-local addresses beginning with fe80: are normal on each IPv6 link; they are not public Internet addresses.

For each global address or prefix, record owner, interface, purpose and whether it belongs to the router itself or an internal host. Also query the public names that are in written scope:

dig +short A router.example.com
dig +short AAAA router.example.com
dig +short AAAA app.example.com

An AAAA record proves that DNS supplies an IPv6 address. It does not prove that a service is listening, that a firewall permits it, or that the address belongs to the expected asset. Compare the answer with RouterOS and asset inventory before testing.

Step 2 — separate router exposure from forwarded exposure

RouterOS evaluates traffic destined to the router itself in the IPv6 firewall input chain. Traffic transiting the router to an internal host uses forward. A rule set that protects only input may still expose an internal server; a forward-only review may leave WinBox, SSH or the web UI reachable on the router.

Capture the relevant policy and counters:

/ipv6/firewall/filter/print detail stats
/ipv6/firewall/filter/print where chain=input
/ipv6/firewall/filter/print where chain=forward

Checkpoint: identify the rule order, the WAN interface-list match, established/related handling, invalid-packet handling, and each explicit management allow rule. Take a screenshot or export of this output as evidence. Dynamic rules and zero counters need interpretation: a zero counter can mean no traffic, wrong interface matching, a reset counter, or traffic stopped earlier in the chain.

Do not copy a rule list blindly. IPv6 is not IPv4 with longer addresses. Neighbour Discovery, Router Advertisements and ICMPv6 error messages support ordinary IPv6 operation. Blocking all ICMPv6 can create intermittent failures that look unrelated to the firewall.

Step 3 — prove the router management plane from outside

From the approved external IPv6 host, test only the router address and ports that your written scope names. Start with a low-impact TCP connection check, not a scanner:

curl -6 --connect-timeout 5 -I https://[2001:db8:100::1]/
nc -6 -vz -w 5 2001:db8:100::1 22

Good result: services intentionally exposed return the expected TLS/HTTP or TCP result; services that must not be public time out or are refused according to the documented policy.

Bad result: an unplanned management service responds. Preserve the command, UTC timestamp, source network and output. Do not continue enumerating it. Move to containment under the approved change process: restrict the service by source address/VPN or correct the IPv6 input policy, then repeat the single check.

Inconclusive result: timeout alone may be a route, DNS, upstream-filtering or local-host issue. Confirm the target address, test path and firewall counters before declaring the router protected.

A permitted third-party check such as NetTools.tech can provide an additional DNS, HTTP or TLS viewpoint. Treat it as a convenience check only: it cannot see your RouterOS rule order, may use different IPv4/IPv6 connectivity, and a successful TLS test does not prove that non-web services are filtered. Do not submit private hostnames or credentials to it.

Step 4 — prove forwarded-host exposure

Pick one internal test host that you own and document its intended public service. Verify its address locally, then perform one external application check:

ip -6 addr show
curl -6 --connect-timeout 5 -I https://[2001:db8:100:10::20]/

While the external test runs, inspect RouterOS forward counters again:

/ipv6/firewall/filter/print stats where chain=forward

Expected result: a deliberately published service is reachable only on its intended port; an unpublished test host is not reachable. The corresponding forward rule counter may increment, but no increment is not proof of safety without confirming the path and rule match.

Build a before/after exposure matrix:

Asset IPv6 address/prefix Intended service External result before Policy/change External result after Evidence
Router management documented address none / VPN only record input rule review record timestamp + counter
Test web host documented address HTTPS record forward rule review record HTTP header + counter
Unpublished host documented address none record no allow rule record timeout/refusal + inventory

Step 5 — test ICMPv6 and PMTUD without opening the router

Do not create a blanket accept protocol=icmpv6 rule merely to make a test pass. Review the existing rule set against MikroTik’s current firewall guidance and preserve the ICMPv6 types required by the site design.

From the external test host, use a conservative path test to an authorised published endpoint:

ping -6 -c 3 2001:db8:100:10::20
tracepath -6 2001:db8:100:10::20

Good result: the path completes and does not report a persistent PMTU black hole. A ping response is not a security finding; many hosts intentionally suppress echo replies. Bad result: HTTPS stalls on larger responses, or tracepath shows an MTU issue after a policy change. Inconclusive result: some networks filter diagnostic traffic, so compare before/after application behaviour and firewall counters.

If PMTUD is broken after a change, roll back the changed rule set in Safe Mode or restore the recorded previous rule. Do not “fix” it by exposing all management services or disabling the firewall.

Troubleshooting

  • No AAAA answer: confirm the name is in scope and that authoritative DNS has propagated; do not substitute a guessed address.
  • RouterOS counters stay at zero: verify traffic arrives on the expected interface and that FastTrack assumptions or an earlier rule are not misleading the review.
  • External test has no IPv6: use another authorised IPv6-capable network; IPv4-only testing cannot validate IPv6 exposure.
  • A service is reachable unexpectedly: preserve minimal evidence, identify whether it is router input or forwarded traffic, contain it through the approved policy, then re-test one port.
  • Remote session drops during a change: use console/out-of-band access. Safe Mode may roll back a disconnected session, but confirm the actual configuration before declaring recovery complete.

Clean-up and done criteria

Remove only temporary lab allow rules and test DNS records that were created for this exercise. Keep the approved production policy unchanged unless a documented change was reviewed. Save the exposure matrix, command outputs, timestamps and configuration export in the change record.

The lab is complete when:

  1. every public AAAA record is mapped to an owned asset and owner;
  2. router-management and forwarded-host paths were tested separately from an external IPv6 network;
  3. expected services work and unintended services have a documented containment outcome;
  4. ICMPv6/PMTUD behaviour was checked without a blanket allow; and
  5. the rollback path was tested or explicitly accepted by the change owner.

Real-world follow-up

Use this evidence to improve the accompanying RouterOS 7 IPv6 firewall hardening guide rather than treating the audit as a one-off. Re-run the lab after WAN changes, prefix delegation changes, new public DNS names, router upgrades, or a new remote-management requirement.

Related reading: NetTools.tech: 64 tools for sysadmins, and what each result actually proves, Scan your own public IP from the outside with Nmap, Build the MikroTik foundation once — so the next VLAN does not require a firewall rewrite, and MikroTik router security checklist.

Further exercises

  1. Repeat the matrix from a second authorised IPv6 network and compare routing and TLS evidence.
  2. Add a new lab-only AAAA record, prove its intended reachability, then remove it and retain the change evidence.
  3. Have a colleague repeat the procedure from a clean, documented environment before relying on it as an operational control.

References

  1. MikroTik, Configuration Management: Safe Mode and configuration history, accessed 12 November 2026.
  2. MikroTik, RouterOS documentation, accessed 12 November 2026.
  3. IETF, RFC 8200: Internet Protocol, Version 6 (IPv6) Specification, July 2017.
  4. IETF, RFC 4890: Recommendations for Filtering ICMPv6 Messages in Firewalls, May 2007.
  5. IETF, RFC 8201: Path MTU Discovery for IP version 6, July 2017.