•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Infrastructure
      • iColocation
    • Compute
      • cMetal
      • cVirtual
    • Storage
      • sObject
      • sBlock
    • Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • Protection
      • pBackup
      • pDDoS
  •  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
    • new-colocation-header-img
      Infrastructure
      • iColocation
    • new-compute-header-img
      Compute
      • cMetal
      • cVirtual
    • new-storage-header-img
      Storage
      • sObject
      • sBlock
    • new-networking-header-img
      Networking
      • nCDN
      • nIP Transit
      • nWavelength
    • new-protection-header-img
      Protection
      • pBackup
      • pDDoS
  • 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

  • Reference Architecture - Active-Active Configuration (Using CDN)
  • 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: (1707)
  • Votes: (0)
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.

Related Articles

  • Reference Architecture - Active-Active Configuration (Using CDN)
  • 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: (1707)
  • Votes: (0)
Was this article helpful?
VOTE
Copyright © 2025 Psychz Networks,
A Profuse Solutions Inc Company
Hosting Services
Infrastructure
  • iColocation
Compute
  • cMetal
  • cVirtual
Storage
  • sObject
  • sBlock
Networking
  • nCDN
  • nIP Transit
  • nWavelength
Protection
  • pBackup
  • pDDoS
Company
  • About Us
  • Blog
  • Careers
  • Contact Us
  • Data Centers
  • Looking Glass
  • Network
  • Reseller
Policies
  • Acceptable Usage Policy
  • Privacy Policy
  • Service Level Agreement
  • Terms and Conditions
Support
  • Community
  • Knowledge Base
  • Open A Ticket
Get In Touch
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801