Is it possible to create NAT 1:1 rules on a Mikrotik device to reach PLC devices which do not have gateway assigned?
I am planning to setup some Mikrorik device with two external IP's assigned to Ether1 and wishing to create NAT 1:1 rules to the two PLC's which only have IP and MASK. I do not have access to PLC's and I can not change their network configuration.
I believe I need two rules dst-nat and src-nat... and I am not sure if this will work:
Code: Select all
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=10.40.100.20 protocol=tcp to-addresses=192.168.0.20
add action=src-nat chain=srcnat dst-address=192.168.0.20 protocol=tcp to-addresses=192.168.0.1
add action=dst-nat chain=dstnat dst-address=10.40.100.30 protocol=tcp to-addresses=192.168.0.30
add action=src-nat chain=srcnat dst-address=192.168.0.30 protocol=tcp to-addresses=192.168.0.1