Re: Nginx/iptables passing ipclient ip

2013-11-30 Thread Marc Aymerich
On Fri, Nov 29, 2013 at 11:44 PM, Todd@VRG wrote: > Hi, > > I have nginx reverse proxy setup on a ubuntu server to pass to webservers... > > > Setup.. > > Ubuntu-nginx > eth1 = external_ ip > eth0 = internal_ ip > > Webserver 1 ip XX1 > webserver 2 ip XX2 > > nginx is forwarding traffic to webserv

Re: Nginx/iptables passing ipclient ip

2013-11-29 Thread Francis Daly
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

Nginx/iptables passing ipclient ip

2013-11-29 Thread Todd@VRG
Hi, I have nginx reverse proxy setup on a ubuntu server to pass to webservers... Setup.. Ubuntu-nginx eth1 = external_ ip eth0 = internal_ ip Webserver 1 ip XX1 webserver 2 ip XX2 nginx is forwarding traffic to webservers.. I tried both.. proxy_set_header X-Forwarded-For $remote_addr;