H
H
Hikmat Abdunabiev2020-08-26 08:10:45
Nginx
Hikmat Abdunabiev, 2020-08-26 08:10:45

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.

How can I make sure that the real ip address of the connected client is recorded in the nginx logs?!
Many thanks in advance for the information!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Dmitriev, 2020-08-26
@SignFinder

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 question

Ask a Question

731 491 924 answers to any question