Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jul 19, 2011 2:11 pm 
Offline
Senior Newbie

Joined: Thu Aug 13, 2009 3:13 pm
Posts: 8
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...


Top
   
 Post subject:
PostPosted: Wed Jul 20, 2011 4:51 am 
Offline
Senior Newbie

Joined: Thu Jun 02, 2011 12:00 pm
Posts: 18
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.


Top
   
 Post subject:
PostPosted: Wed Jul 20, 2011 11:30 am 
Offline
Senior Newbie

Joined: Thu Aug 13, 2009 3:13 pm
Posts: 8
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group