I’d like to set up port forwarding of tcp
port 8000
-> 192.168.1.16:4200
on my Mikrotik RouterOS.
I’ve done the following:
/ip firewall nat add dstnat chain=dstnat action=dst-nat to-addresses=192.168.1.16 to-ports=4200 protocol=tcp dst-address=<PUBLIC_IP> dst-port=8000
When I try to use the service from the Internet then the following command just hangs:
curl <PUBLIC_IP>:8000
I can see the counters moving on the Mikrotik’s NAT rule (via WebBox).
On the target machine, I can see the following in netstat -an | grep 4200
:
tcp 0 0 0.0.0.0:4200 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.16:4200 <REMOTE_HOST>:37720 SYN_RECV
I verified that I am able to connect to the machine locally via curl 192.168.1.16:4200
.
I can’t figure out what can be wrong 🙁
Go to Source
Author: adamsfamily