[web2py] Re: web2py sitting behind load balancer showing lb IP not client IP

2011-12-27 Thread Dave
I already said I can't change settings on the load balancer. There is no default route on this network so the traffic must be sourced from the inside interface of the load balancer as it hits the web server. Here's the problem: diff -r 9619eb054669 gluon/globals.py --- a/gluon/globals.py Tue De

[web2py] Re: web2py sitting behind load balancer showing lb IP not client IP

2011-12-23 Thread pbreit
What web server are you running? On Nginx there's a module to take the x-forwarded-for and make it the client ip. http://wiki.nginx.org/HttpRealIpModule

[web2py] Re: web2py sitting behind load balancer showing lb IP not client IP

2011-12-23 Thread Dave
I can't make changes to the load balancer. The x-forwarded-for is populated but I can not change the config so the source up is kept the same. If I could, that would have been my first choice. The network between the lb and web server isn't routed so the ip source must be the local LAN RFC1018 add