I have a MikroTik RouterBoard hex lite (RB750r2) FW: 6.45.9 and I should realize the following condition:
The router has an ip equal to 192.168.1.10.
A cable is connected to the Eth1 port that comes from a PLC with IP address 192.168.2.5 and should exit with the IP 192.168.1.3
IP 192.168.2.5> 192.168.1.3
How can I do this?
I tried the following code but it doesn't work.
Code: Select all
/ip firewall nat add action=dst-nat chain=dstnat dst-address=192.168.2.5 to-addresses=192.168.1.3
/ip firewall nat add action=src-nat chain=srcnat src-address=192.168.1.3 to-addresses=192.168.2.5
/ip firewall nat add chain=dstnat dst-address=192.168.2.5 action=netmap to-addresses=192.168.1.3
/ip firewall nat add chain=srcnat src-address=192.168.1.3 action=netmap to-addresses=192.168.2.5
Anyone kind enough to help me?