Good day.
I have the following lab setup:
lab_sms — Internal: 172.21.56.2/24, Static NAT behind lab_gw1 to 192.168.1.252
lab_gw1 — Internal: 172.21.56.1/24 (Internal loopback MGMT: 10.255.255.254/32), External: 192.168.1.254
lab_gw2 — Internal: 172.21.56.3/24 (Internal loopback MGMT: 10.255.255.252/32), External: 192.168.1.250
When the option “Use the remote server's original / translated IP address based on the topology” is selected (this is also the default setting on the SMS NAT; I am explicitly mentioning it here so that it corresponds to the screenshot), lab_gw2 starts sending logs through its External interface.
Why does this happen? According to the setting description, the behavior should depend on the topology, while 172.21.56.0/24 is an Internal network.
When switching to “Use only the original IP address for the remote servers”, everything starts working correctly.
If we switch the setting back, the traffic immediately starts going through the External interface again.
In the screenshot, the blue highlight shows the exact moment when the log traffic changes from 172.21.56.3 to 192.168.1.250. So this does not appear to be related to already established sessions.
Could you please explain in more detail the logic used to select the source/translated IP address and the interface through which the log traffic is sent?