I have a Mikrotik with built-in LTE modem as a secondary connection attached to another Mikrotik. I'm trying to achieve a bit of a funky NAT configuration, but it's not matching the rules as expected.
R1 has 172.22.1.254/24 and 192.168.58.250/24 amongst others
R2 has 192.168.58.254/24
R2 has a static route for 172.22.1.0/24 via 192.168.58.250
The LTE connection has a CGNAT WAN IP address but I have a L2TP tunnel (via the LTE) to another ISP providing a public IP address.
I am trying to achieve:
Source: Any
Destination: L2TP Public IP
Port: TCP/25
dst-nat to 172.22.1.3 port 25
src-nat to 192.168.58.254
Else when the traffic reaches R1, replies will attempt to follow R1's default route.
I've previously been able to use routing rules to send traffic from R1 outbound via R2 with no issue (directly over LTE, not L2TP), but I'm now trying to make traffic flow in the opposite direction.
The dst-nat rule is seeing hits as expected, but the src-nat rule is not.
I can't see any obvious reason for this - any suggestions?