Want more timely Centmin Mod News Updates?
Become a Member

cloudflare real ip issue

Discussion in 'Install & Upgrades or Pre-Install Questions' started by Oxide, Oct 9, 2016.

  1. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:15 AM
    for some reason lately - i've seen more and more users using cloudflare ip

    141.101.98.215, 141.101.98.160 etc..

    here is my conf:
    Code:
      #CloudFlare
      set_real_ip_from 199.27.128.0/21;
      set_real_ip_from 173.245.48.0/20;
      set_real_ip_from 103.21.244.0/22;
      set_real_ip_from 103.22.200.0/22;
      set_real_ip_from 103.31.4.0/22;
      set_real_ip_from 141.101.64.0/18;
      set_real_ip_from 108.162.192.0/18;
      set_real_ip_from 190.93.240.0/20;
      set_real_ip_from 188.114.96.0/20;
      set_real_ip_from 197.234.240.0/22;
      set_real_ip_from 198.41.128.0/17;
      set_real_ip_from 162.158.0.0/15;
      set_real_ip_from 104.16.0.0/12;
      set_real_ip_from 172.64.0.0/13;
      real_ip_header CF-Connecting-IP;
    
    which does indeed match it so i have no clue why its occuring
     
  2. Oxide

    Oxide Active Member

    502
    29
    28
    Mar 19, 2015
    Ratings:
    +54
    Local Time:
    4:15 AM
    seems like mostly users from UK

    141.101.98.98
    2a02:0c7f:4039:0d00:bc99:a8c0:3a99:f032

    result from
    <?php
    echo $_SERVER['REMOTE_ADDR'].'<br />';
    echo $_SERVER['HTTP_CF_CONNECTING_IP']."<br />";

    disabled ipv6 support and seems to fix it..
     
  3. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,573
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,755
    Local Time:
    4:15 AM
    Nginx 1.13.x
    MariaDB 5.5