| Author |
Message |
verb
Joined: 13 Aug 2009
Posts: 8
|
| Posted: Tue Jul 19, 2011 1:11 pm Post subject: Nodebalancer and mod_rpaf |
|
|
I have a need to set the remote address based on the X-Forwarded-For header inserted by the Node Balancer. Many moons ago I did this using mod_rpaf, but mod_rpaf requires adding the address of all of the proxies into the apache config.
I know the Node Balancers have all been moved to 192.168.255.0/24, but is there some smaller set of addresses I can use rather than adding 255 IPs to my config?
Incidentally, I have no particular attachment to mod_rpaf. If there's some new hotness to solve this problem, I'd much rather hear about that. A solution that can match proxies by regex, for example... |
|
| Back to top |
|
TygerTyger
Joined: 02 Jun 2011
Posts: 18
|
| Posted: Wed Jul 20, 2011 3:51 am Post subject: |
|
|
| I'm sorry this isn't an answer for you, but do you have a copy of mod_rpaf to share? The only download I can find is stderr and it never works for me. |
|
| Back to top |
|
verb
Joined: 13 Aug 2009
Posts: 8
|
| Posted: Wed Jul 20, 2011 10:30 am Post subject: |
|
|
TygerTyger wrote: I'm sorry this isn't an answer for you, but do you have a copy of mod_rpaf to share? The only download I can find is stderr and it never works for me.
I just used the libapache2-mod-rpaf package from Lucid, and it worked fine. Here's the config:
Code: LoadModule rpaf_module /usr/lib/apache2/modules/mod_rpaf.so
<IfModule mod_rpaf.c>
RPAFenable On
RPAFproxy_ips 192.168.255.1
</IfModule>
Caveat 1 is that I imagine the node balancers use more IPs than just that one. Caveat 2 is that it won't work with HTTPS because SSL isn't terminated at the node balancers. |
|
| Back to top |
|
| |