|
Home > Archive > Perlbal > October 2007 > IP passthrough?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| My application logs the IP addresses of visitors, and bans users who try to
abuse the system. However, after using Perlbal, all requests end up going
through the Perlbal server, and so on the web server end, there's only one
source IP, the Perlbal server's.
Is there a way to fix this problem so that my application can still ban IPs
as needed? Maybe a HTTP_X_FORWARDED_FOR header?
| |
| Mark Smith 2007-10-17, 1:12 pm |
| >
> My application logs the IP addresses of visitors, and bans users who try
> to abuse the system. However, after using Perlbal, all requests end up
> going through the Perlbal server, and so on the web server end, there's only
> one source IP, the Perlbal server's.
>
> Is there a way to fix this problem so that my application can still ban
> IPs as needed? Maybe a HTTP_X_FORWARDED_FOR header?
>
IIRC Perlbal does this already automatically. X-Forwarded-For is set to the
source IP address of the client as long as you haven't set
trusted_upstream_proxies to something and the incoming request matches it.
--
Mark Smith / xb95
smitty@gmail.com
|
|
|
|
|