Welcome! Log In Create A New Profile

Advanced

Server (Proxy) Access by IP and Forward real IP to Proxy Logs

basti
July 11, 2018 04:58AM
Hello,
I have the following config

Frontend (with IP x.y.1.1) -> Proxy

In the Proxy settings I have "allow x.y.1.1" and this work very well.
Now I want to see the client IP how access to frontend in the proxy logs
and have add something like

# to get real IP who access
set_real_ip_from x.y.1.1/32;
real_ip_header X-Real-IP;

now I see the Real IP who access the frontend but I get no access to proxy.

I have also try to place the "allow x.y.1.1" before the set_real_ip_from
but this does not help.

Is there a way to get this working? In other words to allow connection
from Frontend and print client IP's to log (without iptables) ??

Best Regards,


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Server (Proxy) Access by IP and Forward real IP to Proxy Logs

basti July 11, 2018 04:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 234
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready