Welcome! Log In Create A New Profile

Advanced

Re: Nginx/iptables passing ipclient ip

Francis Daly
November 29, 2013 06:04PM
On Fri, Nov 29, 2013 at 05:44:41PM -0500, Todd@VRG wrote:

Hi there,

> nginx is forwarding traffic to webservers..

> proxy_set_header X-Forwarded-For $remote_addr;

> the ip address I still see in the logs is the eth0 = internal_ ip

Using tcpdump, or otherwise, watch the request going from nginx to the
web server. Does is have what you expect to see in the X-Forwarded-For:
header? If so, nginx is doing all it can do; you must configure the web
server to make use of that header value instead of the address that it
actually sees the connection coming from. That web server documentation
should say how to do that.

f
--
Francis Daly francis@daoine.org

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

Nginx/iptables passing ipclient ip

Todd@VRG November 29, 2013 05:44PM

Re: Nginx/iptables passing ipclient ip

Francis Daly November 29, 2013 06:04PM

Re: Nginx/iptables passing ipclient ip

Marc Aymerich November 30, 2013 06:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
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