When Looking through service logs on my server (which is behind a Mikrotik RB2011UIAS-RM NAT) All incoming connections appear as the Mikrotik’s IP address and not the client’s Public IP.
I have a feeling it has to do with Masquerade but I have tried disabling all the rules with no success.
A. Connections from WAN to LAN are masqaraded with router’s IP
B. Connections from LAN to server use harpin-nat as they connect not directly to local server IP but they use it’s public IP so server sees them as incoming from router. https://wiki.mikrotik.com/wiki/Hairpin_NAT
Ok, so I have figured out it is not a hairpin nat causing this. so it must be the masquerade rules.
Below is a screenshot of the masquerade rules in IP>Firewall>Nat
Do I need to disable the rule for “OutInterface=Local” or all of them?