Hi, please help me. I have MikroTik RB951G-2HnD, routerOS 6.10. scheme of my network:
provider->MikroTik RB951G-2HnD->server (http, ftp etc).
When accessing to my server from outside (for example user sends request to my http server) my MikroTik change public ip address of users on own private IP address (192.168.88.1). therefore some of the functions of my server not working. For example module on my site can not detect the unique visitors on site, because all request from users http server apache sees as 192.168.88.1. Also in log of apache all requests come from the address MikroTik (192.168.88.1).
Please, tell me how to solve this problem, that MikroTik do not change public ip address of users and public servers on own private ip address (192.168.88.1). Thanks.
You have to set up NAT correctly on your router. Specify outgoing interface on your router, so that srcnat rule is not translating incoming packets that you are dst-natting so they can reach your server.
That way, your server will see correct source IP addresses of the incoming traffic.
Hello, sorry that I’m a long time did not write about the solution of my problem. Next decision help me - I wrote in Nat rule with action “masquerade” in field “Src. Address” my home subnet - 192.168.88.0/24, and MikroTik stopped change public ip address of users on own private IP address (192.168.88.1). Thank you very much!!! I hope, that this topic will be useful to others.Thanks.