Nat in Mikrotik
WIP
Server listening
ncat -l -p 8888
Nothing
Connect
ncat 10.0.100.10 8888
192.168.0.239 - 10.0.100.10
DST-NAT
Configure
/ip firewall nat add action=dst-nat chain=dstnat disabled=yes dst-port=8888 in-interface=bridgewlan protocol=tcp to-addresses=10.0.100.10 to-ports=8888
Connect
ncat 192.168.0.1 8888
192.168.0.239 - Router NAT (192.168.0.1:8888 connects to 10.0.100.10:8888) - 10.0.100.10
The client connects to router and the NAT connects to the server.
SRC-NAT
Configure
/ip firewall nat add action=src-nat chain=srcnat dst-port=8888 protocol=tcp to-addresses=10.0.100.1 to-ports=8888
Connect
ncat 10.0.100.10 8888
192.168.0.239 - Router's NAT translates the ip from 192.168.0.239 to the router's 10.0.100.1 and connects to 10.0.100.10