•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Reading real IPs

  • Home
  • Client
  • Knowledgebase
  • Devices
  • CDN
  • Reading real IPs

Table Of Content

Related Articles

  • Create CDN Domain
  • Manage CDN Domain
  • Manage CDN Services
  • CDN Intro
  • How to move existing domain from one CDN device to another
  • Regex: regular expression cheat sheet
  • IP's for Psychz Networks CDN edge servers
  • Order CDN Service
  • Complete Guide To Psychz's CDN
  • Views: (11408)
  • Votes: (1)
Was this article helpful?
VOTE

Reading real IPs

Publisher: Psychz Networks,  April 13,2017

Need to see your client's real IPs through our CDN service? NO problem!


NGINX:

Nginx makes this super simple and to the point. Compile your nginx build with "--with-http_realip_module"

    ./configure --with-http_realip_module

Then in the location{} directive (or server/http) place the following:

set_real_ip_from  103.126.137.30/32;
set_real_ip_from  103.126.138.82/32;
set_real_ip_from  172.107.92.10/32;
set_real_ip_from  68.168.30.2/32;
set_real_ip_from  103.78.122.66/32;
set_real_ip_from  172.106.111.18/32;
set_real_ip_from  172.107.94.26/32;
set_real_ip_from  23.238.135.42/32;
set_real_ip_from  23.228.221.74/32;
set_real_ip_from  45.34.165.2/32;
set_real_ip_from  172.107.96.42/32;
set_real_ip_from  103.78.121.195/32;
set_real_ip_from  103.102.161.112/32;
set_real_ip_from  172.107.196.222/32;
set_real_ip_from  172.107.207.220/32;
real_ip_header    X-Forwarded-For;
real_ip_recursive on;


We will update the list as we add more nodes!

Apache

    Create a file such as "trusted-proxies.list", to stick to the docs, we'll put ours in the "conf" folder. 

    Place the following IPs in your trusted-proxies.list file:

103.126.137.30/32
103.126.138.82/32
172.107.92.10/32
68.168.30.2/32
103.78.122.66/32
172.106.111.18/32
172.107.94.26/32
23.238.135.42/32
23.228.221.74/32
45.34.165.2/32
172.107.96.42/32
103.78.121.195/32
103.102.161.112/32
172.107.196.222/32
172.107.207.220/32


Note: This list will be updated as we add more nodes!

then Simply add the following to your apache config:

    RemoteIPHeader X-Forwarded-For
    RemoteIPInternalProxyList conf/trusted-proxies.lst

 

and change your log file (typically /etc/apache2/apache2.conf) to:

LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined


We'll update this tutorial with more web servers as needed, stay tuned! In case you are using a different web server contact our support for help. 

Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company