Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 23 Oct 2008, 21:33
richgrech richgrech is offline
 
Join Date: Dec 2006
vbulletin and squid + proxy headers

Hi there -

We are using squid as a reverse proxy and this causes obvious issues when a user locks themselves out because all requests come from the same server.

Squid is sending x-forwarded for but someone familiar with squid said i need to configure vbulletin to trust these headers from the proxy...that by default it does not. However, I can't find anything in the manual that references this (at least by using search).

I am running the latest version of vbulletin.

Thanks,
Rich
Reply With Quote
  #2  
Old 24 Oct 2008, 10:50
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
You must make sure that the proxy server forwards the original IP address and not all connection are made with the IP of the proxy server.
__________________
Marco van Herwaarden
Ex vBulletin.org Coordinator
Reply With Quote
  #3  
Old 24 Oct 2008, 16:08
richgrech richgrech is offline
 
Join Date: Dec 2006
My proxy server is forwarding the original IP address - it doesn't look like vbulletin is recognizing this.

--------------- Added 24 Oct 2008 at 20:46 ---------------

I wound up modifying this line in class_core.php.

$alt_ip = $_SERVER['REMOTE_ADDR'];
to
$alt_ip = $_SERVER['HTTP_X_FORWARDED_FOR'];

in order to force the alt_ip as the http_x_forwarded_for address.

For some reason the default conditional logic did not seem to be getting the job done.

Last edited by richgrech; 24 Oct 2008 at 20:46. Reason: Auto-Merged DoublePost
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 04:48.

Layout Options | Width: Wide Color: