0% found this document useful (0 votes)
411 views3 pages

Port Forward in Mikrotik Router

This document provides instructions for port forwarding on a Mikrotik router to allow external access to a DVR with a static IP. It describes adding a NAT rule in Winbox or via the command line to forward incoming traffic on port 3999 to the DVR at 192.168.1.200 port 3999 by changing the chain to dstnat, protocol to TCP, destination port to 3999, and action to dst-nat with the internal IP address and port.

Uploaded by

Owen Luz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
411 views3 pages

Port Forward in Mikrotik Router

This document provides instructions for port forwarding on a Mikrotik router to allow external access to a DVR with a static IP. It describes adding a NAT rule in Winbox or via the command line to forward incoming traffic on port 3999 to the DVR at 192.168.1.200 port 3999 by changing the chain to dstnat, protocol to TCP, destination port to 3999, and action to dst-nat with the internal IP address and port.

Uploaded by

Owen Luz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Port Forward in Mikrotik Router

Down and dirty version. The command line version is below the Winbox instructions.
Let’s say you have a DVR that has a static IP of 192.168.1.200, and you need to
forward port 3999.

In Winbox
1) Go to IP -> Firewall -> NAT (Figure 1-1).

Figure 1-1

2) Click the "+" to add a new NAT rule. Modify the "Chain" to "dstnat", "Protocol" to
"tcp", and "Dst. Port" to "3999". Set the “In. Interface” to your WAN port. (Note: You
are telling the router that any traffic coming IN from the Internet on port 3999 should
follow this rule. If you forget this step, the router will grab ANY traffic on port 3999 and
send it to the IP you specify in the next step) (Figure 1-2).
Figure 1-2

3) Click the "Action" tab, change the "Action" value to "dst-nat", the "To Addresses" to
"192.168.1.200" and "To Ports" to "3999" (Figure 1-3).
Figure 1-3

Terminal Version
Type the following value into a Terminal window to enter this port forwarding rule.
/ip firewall nat
add action=dst-nat chain=dstnat disabled=no dst-port=3999 in-interface=ether1-
gateway protocol=tcp to-addresses=192.168.1.200 to-ports=3999

You might also like