Answer the question
In order to leave comments, you need to log in
How to transfer the real ip address of the client to nginx for Kerio Control?
Hello!
The scheme is nginx (192.168.1.2) after Kerio Control (192.168.1.1). Ports 80 and 443 are redirected to the Nginx web server (192.168.1.2). NAT is enabled in the Kerio Control traffic rules and the destination address is set to 192.168.1.2. Everything works from the outside, you can see all the services that are located on the web north.
But in the nginx logs, the real ip of the client is not visible, but shows the ip address of Kerio Control (192.168.1.1).
In the nginx settings I specified the following:
set_real_ip_from 192.168.10.1/32;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
but it did not help. Answer the question
In order to leave comments, you need to log in
It is necessary to force Kerio Control to transfer the real address in any attribute.
And only after that try to accept it in nginx.
It is better to ask this question to Kerio Control technical support.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question