Answer the question
In order to leave comments, you need to log in
How to forward the IP address of the host that initiates the connection when port forwarding to the server?
Good afternoon!
Look, there is a mail server. Internet access via mikrotik.
On Mikrotik, I forward port 25 to the server. I'm testing the connection and I see that the server sees the connection from the internal IP address of the Mikrotik, and not from the IP address of the host from which I connected to port 25.
Those. Mikrotik natit not only on the outside, but also inside.
How to make forwarding work without changing the IP?
Answer the question
In order to leave comments, you need to log in
Your question is already half the answer, if Mikrotik nats and inside, then you need to figure out why it is so configured and whether it can be removed. (you can - without breaking something else)
With a normal nata, this should not be.
for example:
chain=dstnat action=dst-nat to-addresses=10.10.0.80 to-ports=443 protocol=tcp dst-address=xxx.xxx.xxx.237 in-interface=ether6 dst-port=443 log=no log -prefix=""
There will be normal nat and server 10.10.0.80 sees connections from external ip addresses and nginx logs them correctly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question