V
V
Vasily Alibabaevich2021-02-20 21:15:50
Nginx
Vasily Alibabaevich, 2021-02-20 21:15:50

Why is the IP of the mikrotik interface displayed in the nginx logs?

Hello gentlemen!
Tell me why this thing happens: There is an incoming Internet from the provider. One white IP X.X.36.218 comes with it and there is still a small subnet X.X.41.241/28 in the vlan . Of course, they are combined into a bridge. Everything is ok, everything works. BUT! Web server with nginx , which has IP X.X.41.247 in the logs displays incoming requests with X.X.41.241 What needs to be done to display client IPs? I've already broken my head. Point in the right direction.




Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wexter, 2021-02-20
@Wexter

Somewhere you are doing unnecessary NAT towards the server
Post /ip firewall nat export

Here it is: X.X.36.218 hangs on one port, this is X.X.41.241/28 on another. Of course, they are combined into a bridge.

in sense hang but different ports but are united in the bridge? lay out the full config without passwords, obviously some asshole set up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question