Tutorial 5 min read

MikroTik UPnP, NAT Helpers & Gaming: Fix NAT Issues for Games, VoIP & Streaming

Getting "Strict NAT" in games? VoIP calls dropping? Security cameras inaccessible remotely? This guide covers UPnP for automatic port opening, NAT helpers (connection tracking helpers) for SIP/FTP, manual port forwarding for games, and achieving Open NAT on MikroTik.

MI
MikroRadius Team
MikroRadius Engineering Team

MikroTik's firewall blocks all incoming connections by default – which is great for security but frustrating for gaming, VoIP phones, video conferencing, and P2P applications that need inbound connections. This guide covers every method to make these work.

Understanding NAT Types

NAT TypeDescriptionImpact
Open / Type 1Public IP directly on deviceEverything works perfectly
Moderate / Type 2Behind NAT, port forwarding worksMost games/VoIP work fine
Strict / Type 3Behind NAT, no port forwardingCan't host, limited matchmaking

Method 1: UPnP (Automatic Port Opening)

UPnP lets applications on your network automatically request port forwards from the router – no manual configuration.

Enable UPnP

/ip upnp set enabled=yes allow-disable-external-interface=no show-dummy-rule=yes

# Add interfaces
/ip upnp interfaces add interface=bridge-lan type=internal
/ip upnp interfaces add interface=pppoe-isp type=external

WinBox: IP → UPnP → Enable → Add Interfaces.

  • internal – Your LAN interface where devices request port opens.
  • external – Your WAN interface where ports are opened.

How It Works

  1. Xbox sends UPnP request: "Open UDP 3074 and forward to my IP."
  2. MikroTik creates a temporary NAT rule: dstnat UDP 3074 → Xbox IP.
  3. When the application closes, the rule is removed.

Check UPnP Mappings

/ip upnp mappings print

UPnP Security Considerations

  • UPnP is a security risk – any device on your LAN can open any port. A compromised IoT device could open ports for attackers.
  • If you use VLANs for IoT isolation, only enable UPnP on the trusted LAN, not the IoT VLAN.
  • For maximum security, disable UPnP and use manual port forwarding instead.

Method 2: Manual Port Forwarding (Most Secure)

For detailed port forwarding, see our NAT guide. Quick examples:

Gaming Ports

# Xbox Live / PlayStation Network
/ip firewall nat add chain=dstnat protocol=udp dst-port=3074 in-interface=pppoe-isp action=dst-nat to-addresses=192.168.88.50 comment="Xbox UDP"
/ip firewall nat add chain=dstnat protocol=tcp dst-port=3074 in-interface=pppoe-isp action=dst-nat to-addresses=192.168.88.50 comment="Xbox TCP"

# Minecraft Server
/ip firewall nat add chain=dstnat protocol=tcp dst-port=25565 in-interface=pppoe-isp action=dst-nat to-addresses=192.168.88.60 comment="Minecraft"

# Steam
/ip firewall nat add chain=dstnat protocol=udp dst-port=27015-27030 in-interface=pppoe-isp action=dst-nat to-addresses=192.168.88.50 comment="Steam"

Allow the Forwarded Traffic

/ip firewall filter add chain=forward protocol=udp dst-port=3074 dst-address=192.168.88.50 action=accept comment="Allow Xbox forward"

Method 3: NAT Helpers (Connection Tracking Helpers)

Some protocols (SIP, FTP, H.323) embed IP addresses inside the payload. NAT breaks these because the payload IPs don't get translated. NAT helpers (conntrack helpers) inspect the payload and fix the embedded addresses.

SIP Helper (VoIP)

If VoIP calls connect but there's no audio (one-way audio), the SIP helper may need adjustment:

# Check current helpers
/ip firewall service-port print

# Enable/disable SIP helper
/ip firewall service-port set sip disabled=no sip-direct-media=yes

Sometimes the SIP helper causes problems (rewriting headers incorrectly). If your VoIP provider recommends disabling it:

/ip firewall service-port set sip disabled=yes

Then configure the VoIP phone to use a STUN server instead.

FTP Helper

/ip firewall service-port set ftp disabled=no ports=21

The FTP helper handles active FTP connections where the server initiates a data connection back to the client – which NAT normally blocks.

Other Helpers

HelperProtocolDefault
ftpFTPEnabled
sipSIP (VoIP)Enabled
h323H.323 (video conf)Enabled
pptpPPTP VPNEnabled
tftpTFTPEnabled
ircIRC DCCDisabled

Method 4: Full Cone NAT (Open NAT)

Standard masquerade creates a "symmetric NAT" – the strictest type. For Open NAT (needed by some games), use srcnat instead of masquerade with specific rules:

# Replace masquerade with srcnat for gaming device
/ip firewall nat add chain=srcnat src-address=192.168.88.50 out-interface=pppoe-isp action=src-nat to-addresses=YOUR_PUBLIC_IP comment="Static NAT for Xbox"

Combined with port forwarding, this gives the gaming device a nearly "Open NAT" experience.

Method 5: DMZ (Last Resort)

Forward ALL incoming connections to one device. Security risk – only for testing:

/ip firewall nat add chain=dstnat in-interface=pppoe-isp action=dst-nat to-addresses=192.168.88.50 comment="DMZ - INSECURE"

This is essentially removing the firewall for that device. Only use if nothing else works and only temporarily.

Troubleshooting

  • Game still shows "Strict NAT": UPnP may be creating the rules but the firewall filter chain is dropping them. Add an accept rule for forwarded traffic from the WAN interface.
  • VoIP one-way audio: Try disabling the SIP helper (/ip firewall service-port set sip disabled=yes). Configure the phone to use a STUN/TURN server. Ensure RTP ports (10000-20000) are not blocked.
  • Port forward not working: Check the NAT rule with /ip firewall nat print stats – if 0 bytes, traffic isn't matching. Verify the in-interface and dst-port. Also check you have a matching filter accept rule.
  • UPnP mappings not appearing: Verify the internal and external interfaces are correct. Check that the device is actually sending UPnP requests (some devices have UPnP disabled by default).
  • Double NAT: If your MikroTik is behind another router (ISP router), you have double NAT. Put the ISP router in bridge mode or set the MikroTik's IP as the DMZ host on the ISP router.

Conclusion

For most home users, enabling UPnP solves gaming and VoIP NAT issues instantly. For production networks where UPnP is a security risk, use manual port forwarding. For VoIP, tune the SIP helper or disable it and use STUN. And always verify that your firewall filter chain allows the forwarded traffic.

Found this guide helpful?

Share it with fellow network engineers and ISP operators.

MI
MikroRadius Team MikroRadius Engineering Team • RADIUS Authentication & Invoicing

Get Our Next MikroTik Tutorial In Your Inbox

Join 2,500+ ISP engineers. RouterOS scripts, invoicing tips, and zero spam.

Related Guides

MikroTik Questions?

Need guidance setting up RADIUS authentication, optimizing RouterOS queues, or managing subscriber invoicing? Our engineering team is available for live chat.