I have a web server behind NAT, accessible on the internet. I am using mikrotik router for NAT.
But when website is accessed from internet or outside LAN it is not showing the actual visitor's IP instead it is showing gateway IP address. I tried many thing changing the log format to assigning custom header to x-forwarded but still no luck.
NAT Rule:
chain=srcnat action=masquerade
chain=dstnat action=dst-nat to-addresses=private-ip to-ports=80 protocol=tcp dst-address=public-ip dst-port=80