MikroTik port forwarding not working comes down to one of six things, and the fastest way through them is to check in the order RouterOS processes the packet. The Packet Flow in RouterOS diagram puts dst-nat in prerouting, before the routing decision and before the filter forward chain. So the dst-nat rule sees the packet first, the forward chain sees it already rewritten to the private address, and the reply has to come back through the same router. Each check below maps to one stage.
For a new installation, first use the MikroTik router setup checklist to verify WAN connectivity, client access and management restrictions.
What a working forward looks like on a default config
On a router that still carries the default firewall, a port forward is one rule:
/ip firewall nat
add chain=dstnat action=dst-nat protocol=tcp dst-port=443 in-interface-list=WAN \
to-addresses=192.168.88.10 to-ports=443 comment="fwd https to web01"
That is the shape of the example in MikroTik’s NAT documentation, which forwards TCP 22 on 172.16.16.1 to 10.0.0.3. Nothing else is needed on a defconf box because of one filter rule that Building Advanced Firewall lists verbatim:
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" \
connection-nat-state=!dstnat connection-state=new in-interface-list=WAN
Read the negation. New connections from WAN are dropped unless a dst-nat rule already claimed them, so a forward needs no separate accept. If you replaced the default firewall with your own and it ends in a plain chain=forward action=drop, add the mirror image above the drop and below the established,related accept:
add chain=forward action=accept connection-nat-state=dstnat connection-state=new in-interface-list=WAN
Order matters; the firewall rules explainer covers why. Browse the firewall and NAT guides for related filtering and VPN configuration.
Check 1: does the dst-nat counter move?
From a phone on LTE, hit the port. Then check NAT counters on the router per MikroTik’s NAT manual:
/ip/firewall/nat/print stats
If the packet counter on the dst-nat rule stays at zero, the packet never matched. Most common first:
- Wrong ingress interface. RouterOS processes a decapsulated packet starting at its logical ingress interface (Packet Flow in RouterOS). For the PPPoE traffic in this example, that interface is
pppoe-out1. Usein-interface-list=WANand check static membership with/interface list member print(Interface Lists, Console manual), as in the PPPoE client guide. - Hard-coded
dst-address=on a dynamic WAN. The address changed, the rule died.dst-address-type=localmatches any address assigned to a router interface, per the matchers reference, and survives the change. - Wrong protocol. The
protocolmatcher selects packets by IP protocol (Common Firewall Matchers and Actions). Set it to the protocol your service uses. - A broader dst-nat rule above yours. NAT evaluates only the first packet of a connection and connection tracking applies the result to the rest, so the first matching rule wins.
Counter at zero with a correct-looking rule? Capture packets on the WAN interface with /tool/sniffer/quick interface=pppoe-out1 port=443, using the interface and port quick filters from MikroTik’s Packet Sniffer manual. No SYN arriving means the problem is upstream (Check 5).
Check 2: the forward chain and rule shadowing
Counter moves, still no service? Check the filter counters per Common Firewall Matchers and Actions:
/ip firewall filter print stats
To show only the forward chain, append where chain=forward per the RouterOS Console manual.
Watch the defconf drop rule during the test. If you remove connection-nat-state=!dstnat, that rule drops new forwarded WAN connections that reach it, including destination-NATed connections. Also check whether an earlier drop rule catches traffic before it reaches your custom accept rule.
FastTrack can make the filter counters incomplete. FastTracked packets bypass the firewall and connection tracking, while some packets in the same connection still take the slow path (Packet Flow in RouterOS). Use the dst-nat counter and the connection table to check the forward.
Check 3: you are testing from inside (hairpin NAT)
The most common false alarm. A LAN client at 192.168.88.50 opens a connection to the public IP. dst-nat rewrites the destination to 192.168.88.10; the source is untouched. web01 replies directly to .50 across the switch, the reply carries .10 as its source, the client expected the public IP, and the connection is dropped. The forward “works from outside, not from inside”.
RFC 4787 REQ-9 (for unicast UDP) and RFC 5382 REQ-8 (for TCP) state that a NAT MUST support hairpinning. RouterOS does, once you add the srcnat rule that forces replies back through the router. MikroTik’s NAT documentation gives the pattern; with the addresses above:
/ip firewall nat
add chain=srcnat action=masquerade src-address=192.168.88.0/24 dst-address=192.168.88.10 \
protocol=tcp dst-port=443 comment="hairpin https"
The dst-nat rule must also match LAN-originated packets, which arrive on the bridge rather than on in-interface-list=WAN. A June 2025 forum discussion on a hAP ax2 running RouterOS 7.17 shows this exact trap. The poster already had a hairpin masquerade rule but kept in-interface-list=WAN on the dst-nat rule. They still reported hairpin NAT failing in post #6 and never confirmed a final fix on page 1. Replies compare replacing in-interface-list=WAN with a dst-address-list= holding the WAN IP versus dst-address-type=local. They note that dst-address-type=local also catches the router’s LAN address, such as HTTPS WebFig access on TCP 443. They also note that a custom default-drop forward chain needs an accept rule for connection-nat-state=dstnat that is not limited to in-interface-list=WAN. Trade-off: web01’s logs show every hairpinned client as the router’s LAN address. Split DNS, returning 192.168.88.10 for the hostname inside, avoids that and is the cleaner design.
Check 4: the host behind the forward
A January 2024 thread on an RB750Gr3 with new VLANs is the canonical case. Sniffing showed packets reaching 192.168.10.150 on the right port and nothing coming back. The router was fine; every target device had the wrong default gateway. A host that cannot route back to the client’s public address cannot answer a forward.
RouterOS uses print detail to show reply addresses, and where dst-port filters by destination port. MikroTik Connection Tracking manual
Run this command during the HTTPS test:
/ip/firewall/connection/print detail where dst-port=443
The Connection tracking reference distinguishes the original dst-address from reply-src-address, which records the source address expected of return packets. For this forward, dst-address is the WAN address the client contacted and reply-src-address is the translated host, 192.168.88.10. Do not search dst-address for that private host.
In the connection output, d is the destination NAT flag and S means a reply was seen (MikroTik Connection Tracking manual). On the matching entry, look for both flags and confirm the TCP state reaches established. If S stays absent or the TCP state fails to reach established, check the forward chain, the host’s default gateway, and the host’s local firewall. On Windows, Windows Firewall blocks unsolicited incoming traffic by default and uses the public profile for untrusted networks; on Ubuntu, check ufw. Also verify that the service listens on its LAN interface rather than only loopback, and confirm which VLAN the host sits in.
Check 5: the ISP is in front of you
If nothing arrives on the WAN interface, inspect the address assigned to it per IP Addressing and the Console manual:
/ip address print where interface=pppoe-out1
The range 100.64.0.0/10 is Shared Address Space reserved for carrier-grade NAT (RFC 6598). A port forward on the MikroTik alone cannot accept unsolicited inbound traffic through CGNAT (MikroTik NAT documentation). If the ISP uses CGNAT, ask for a public IPv4 address or use a WireGuard tunnel to a VPS that forwards the port to you. The WireGuard configuration guide covers the RouterOS side, and the NAT traversal explainer covers why the tunnel works where the forward cannot.
The private IPv4 ranges are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 (RFC 1918). If the MikroTik WAN address is in one of those ranges, check whether another router upstream is also doing NAT. With double NAT, the SYN can stop at the upstream router if there is no NAT mapping to pass it to the MikroTik. Bridge the upstream router if it supports bridge mode, or forward the port on it to the MikroTik’s WAN address.
Check 6: stale connection tracking after an edit
MikroTik’s NAT documentation explains that after changing or adding NAT rules, existing connection tracking entries keep their old translation until they expire or are cleared. Stop the test client’s retries. Use the port filter from Check 4 to list matching entries before removing anything:
/ip/firewall/connection/print detail where dst-port=443
Identify the test client’s src-address and src-port alongside the original WAN dst-address and dst-port fields from the Connection tracking list. An entry created before the corrected NAT rule may lack the expected reply-src-address, so matching only the private host can miss the stale connection.
After confirming the exact entry, delete it with its session item number from that print output per the RouterOS Console manual:
/ip/firewall/connection/remove <entry-number>
Item numbers are assigned per console session by print and are not constant, so re-print if the entry has expired or the list has changed. Remove only the test entry you identified. This clears its tracked state. Further packets can create a new entry, so an active session may continue (MikroTik Connection Tracking manual). Then start a fresh client connection and repeat Check 4.
If you run OPNsense elsewhere, the same failure classes exist under different names; the OPNsense port forward guide maps them to that platform’s reflection settings.
Things to test before you call it done
- From outside (LTE, not Wi-Fi), probe TCP 443 with
nc -vz -w 5 <public-ip> 443(-vverbose,-zscan without sending data,-wtimeout in seconds, per OpenBSD nc(1)). - From inside, using the public hostname, run
curl -v https://<hostname>/. The-voption prints verbose diagnostics, and-kdisables TLS certificate verification for the connection, including hostname and trust checks (curl man page). Use-konly for a deliberate diagnostic bypass. This exercises hairpin NAT or split DNS, whichever you chose. - From outside, run
dig +short <hostname>and compare the answer with the intended public address. Under double NAT, use the upstream router’s public address. A stale public DNS record can send the test to the wrong address. If you use split DNS, repeat the query from the LAN using its internal resolver and expect the server’s private address. The+shortoption prints a terse answer (BIND 9 manual pages). - Run
/ip/firewall/nat/print stats(NAT manual) before and after each external test; the dst-nat packet counter must increment per new attempt. - Repeat Check 4 during a test. Confirm the original destination seen by the MikroTik and the translated reply source, then look for the
dandSflags and anestablishedTCP state. - For UDP services, test with the real client; per OpenBSD nc(1), UDP port scans using
nc -uzalways report success irrespective of the target machine’s state.
Leave the drop all from WAN not DSTNATed rule enabled while testing. It provides a second layer of protection by dropping new forwarded IPv4 connections from the WAN that lack destination NAT, even if they pass the RAW rules (Building Advanced Firewall).
Evidence and limits. This guide is based on MikroTik’s RouterOS 7 documentation, the cited RFCs, community forum reports, and the cited client-tool manuals. No hands-on testing was performed for this guide.
Related across the network
- OPNsense Port Forwarding: NAT Rules That Actually Work — opnsenselab.com
- Best Homelab Firewall in 2026: OPNsense, pfSense, UniFi, MikroTik — firewallcompare.com
- pfSense Alternatives: 7 Platforms Compared for 2026 — firewallcompare.com
- OPNsense Firewall Rules and NAT: How They Work — opnsenserouter.com
- OPNsense WireGuard Not Connecting: Handshake Fixes — opnsenserouter.com