vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Community Lounge (https://vborg.vbsupport.ru/forumdisplay.php?f=13)
-   -   @Paul_M (https://vborg.vbsupport.ru/showthread.php?t=324320)

X-or 01-30-2017 12:15 AM

@Paul_M
 
Can you please make this product available again
https://vborg.vbsupport.ru/showthread.php?t=231873
Proxy to Real IP Conversion

Quote:

This modification has been withdrawn.
vBulletin 4.0.x and 4.1.x are no longer supported.
For vBulletin 4.2.x please use the built in reverse proxy detection.
Problem the built in vbulletin reverse proxy detection is based on a list of IP to reverse
So if there are hundreds thousands IP to reverse the server will search for a match whenever any user does anything, and I'm afraid that's certain death for the server

So please make your product available again.

Paul M 01-30-2017 01:04 AM

Sorry, but thats not going to happen.

However, as of 4.2.3 a couple of new options were added to the core to help in this case.
Code:

/* Enter your known proxy servers here. You can list multiple trusted IPs separated by a comma.
You can also use the * wildcard (at the end of a definition only) or use the keyword 'all' to represent any ip address.*/
//$config['Misc']['proxyiplist'] = '127.0.0.1, 192.168.*, all';


Also, in 4.2.4 an extra fix was added due to PHP sometimes not passing the custom headers into the $_SERVER array (which stopped the system working).

X-or 01-30-2017 08:12 AM

wow, completely missed this as I took the bad habit of not updating the config file anymore :O

thank you, works fine

TheLastSuperman 02-03-2017 01:32 AM

Quote:

Originally Posted by X-or (Post 2581524)
wow, completely missed this as I took the bad habit of not updating the config file anymore :O

thank you, works fine

Always update the config.php file using config.php.new, just copy/paste the values then save and overwrite :cool:. In some cases issues can arise form using an older config.php file.

SuperTaz 02-25-2017 08:35 PM

Quote:

Originally Posted by Paul M (Post 2581519)
Sorry, but thats not going to happen.

However, as of 4.2.3 a couple of new options were added to the core to help in this case.
Code:

/* Enter your known proxy servers here. You can list multiple trusted IPs separated by a comma.
You can also use the * wildcard (at the end of a definition only) or use the keyword 'all' to represent any ip address.*/
//$config['Misc']['proxyiplist'] = '127.0.0.1, 192.168.*, all';


Also, in 4.2.4 an extra fix was added due to PHP sometimes not passing the custom headers into the $_SERVER array (which stopped the system working).

Cloudflare gave their IP ranges. Should we enter them as they are shown here even with the /## on the end?

Code:

103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
104.16.0.0/12
108.162.192.0/18
131.0.72.0/22
141.101.64.0/18
162.158.0.0/15
172.64.0.0/13
173.245.48.0/20
188.114.96.0/20
190.93.240.0/20
197.234.240.0/22
198.41.128.0/17
199.27.128.0/21


Paul M 02-25-2017 09:38 PM

Nope, CIDR format wont work at all.

If you want to restrict it to ranges, you would have to figure out what ranges they represent, and add them.

SuperTaz 02-26-2017 12:04 AM

So will it work with this format?

Code:

$config['Misc']['proxyiplist'] = '131.0.72.0 - 131.0.75.255, 103.22.200.0 - 103.22.203.255, all';

BirdOPrey5 02-26-2017 01:10 PM

If using Apache web server use mod_cloudflare - https://support.cloudflare.com/hc/en...flare-Packages

Paul M 02-26-2017 10:48 PM

Quote:

Originally Posted by SuperTaz (Post 2582911)
So will it work with this format?

Code:

$config['Misc']['proxyiplist'] = '131.0.72.0 - 131.0.75.255, 103.22.200.0 - 103.22.203.255, all';

The config file tells you what format will work, please read it.

X-or 02-27-2017 03:30 AM

Simply use this
$config['Misc']['proxyiplist'] = 'all';


All times are GMT. The time now is 11:24 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01571 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete