Perlbal and CGI::remote_host returning

Ask Bjørn Hansen ask at
Wed Sep 26 08:53:28 UTC 2007

On Sep 25, 2007, at 21:04, Igor Chudov wrote:

> My question is, how do I make mod_perl and CGI module report actual
> remote host as $cgi->remote_host, as opposed to getting

For Apache 2.2 I use this module:

In mod_perl (1.x) the following should work:

   PerlPostReadRequestHandler ProxyIP

And then put something similar to the ProxyIP::handler function in  

($config->proxyip_forwarders there returns a list of IPs, optionally  
with netmasks or '*' to just allow everyone).

The Perl version here traverses all the "trusted" upstream proxies  
and sets the IP to the first "untrusted" IP found - I forget if the  
Apache module does that too.

  - ask

-- -

More information about the perlbal mailing list