mod_rpaf。Apache透過reverse server得知訪客的真實IP
# wget http://stderr.net/apache/rpaf/download/mod_rpaf-0.6.tar.gz
# tar -zxvpf 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如果出現以下等錯誤
error: 'conn_rec' has no member named 'remote_ip'
warning: implicit declaration of function 'inet_addr'
error: 'conn_rec' has no member named 'remote_ip'請執行:(參考來源)
# git clone git://gist.github.com/2716030.git
# patch < 2716030/mod_rpaf-2.0.c.patch
# apxs -i -c -n mod_rpaf-2.0.so mod_rpaf-2.0.c更改httpd.conf設定檔:
LoadModule rpaf_module modules/mod_rpaf-2.0.so
RPAFenable On
RPAFproxy_ips 127.0.0.1 2.2.2.2(reverse proxy ip)
RPAFsethostname On
RPAFheader X-Forwarded-For