Accessing second MT via IPSEC tunnel
Posted: Sun Jun 30, 2019 2:16 pm
Hello, I have a problem with redirecting access to a second Mikrotik via a IPSEC tunnel like on the picture below (this is only a model of the real network i struggle with). The IPSEC tunnel connects the two LAN's and the traffic is flowing between them with no problem, but I need to access the second Mikrotik from a remote PC. For the testing purpose, all filter rules are disabled. I tried DST-NAT forwarding to 192.168.144.30:30096 to the second MT 192.168.0.20 but iit does not work, and I don't know what am I doing wrong.
NAT CFG of first MT:
NAT CFG of first MT:
/ip firewall nat
add action=dst-nat chain=dstnat dst-address=192.168.144.30 dst-port=30096 \
protocol=tcp to-addresses=192.168.0.30 to-ports=8291
add action=accept chain=srcnat dst-address=192.168.200.0/24 src-address=\
192.168.100.0/24
add action=accept chain=srcnat dst-address=192.168.100.0/24 src-address=\
192.168.200.0/24
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
out,none out-interface=ether1