Category Archives: proxy

This is fairly straight forward and surprisingly simple:

First, get the dependency out of the way:

yum install httpd-devel

Once you have that package (and its dependencies), you can then install mod_rpaf.

wget http://www.stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz

(you may want to go to http://www.stderr.net/apache/rpaf/download/ just to verify that is still the current version)

tar zxvf mod_rpaf-0.6.tar.gz
cd mod_rpaf-0.6
apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c

You can then create the file /etc/httpd/conf.d/mod_rpaf.conf, with the following content:

LoadModule rpaf_module modules/mod_rpaf-2.0.so

# mod_rpaf configuration

RPAFenable On
RPAFsethostname On
RPAFproxy_ips X.X.X.X
RPAFheader X-Forwarded-For

Be sure to replace X.X.X.X with your proxy IP.

Restart apache and then check your logs to see that you are now seeing the IPs of your visitors rather than the private proxy IP.


Categories


gives good tech

tech.superhappykittymeow.com
Kale is one of the smartest people I know

Racker Hacker
Major is always good for leet deetz