i need to know the basic command line commend to set up port forwarding. i’ve reviewed a lot of the posts but they seem to be more than what i need.
what i need is the following:
i have the mikrotik set up in router mode with NAT. i need to forward all requests to port 8443 on the WAN IP to port 8443 on a static IP on the LAN side of the mikrotik.
thats it.
can someone please reply with the simplest CLI string i need to enter under /ip to accomplish this.
i entered the string replacing “WAN” with ether1 as it is the in-interface but i still don’t appear to getting forwarded to the LAN device. the to-addresses= IP is the device i’m trying to get to from the WAN. the following is the entry from an /ip firewall nat print command:
to-addresses (IP address[-IP address]; Default: 0.0.0.0) Replace original address with specified one. Applicable if action is dst-nat, netmap, same, src-nat
It is sufficient with the in-interface, you don’t have to put the WAN IP if you don’t want it, another way to do this is without setting in-interface is
i ran a packet sniffer when accessing the computer from the same subnet (where it is successful) and see that the traffic from the source computer comes out of port 1143 and is destined for port 8443 on the computer i’m trying to port forward to. replies to the source computer go from port 8443 to port 1143 on the source computer.
all communication goes between these two ports.
do i need to add a firewall rule to allow traffic on port 1143?