We accelerate websites

30 days free trial Sign up

Media Acceleration Stream to the world

30 days free trial Sign up

Extensive Network Excellent world coverage

Get CDN Locations IP ranges

URI

https://cdnsun.com/api/locations/ips

Method

GET

Curl example

curl -i -X GET -u username:password -H 'Accept: application/json' -H 'Content-type: application/json' --url 'https://cdnsun.com/api/locations/ips'

Note

Returns a JSON array of current IP ranges of all our CDN Locations. Example: ["1.1.1.0\/24","2.2.2.0\/24"].

Please be aware that the list of IP ranges changes over time, e.g. we add new CDN edge servers. If you are using the IP ranges list for firewall whitelist on your origin(s) then you are supposed to periodically check for changes in the IP ranges list (e.g. calculate an md5 hash of the JSON array) and if necessary then update your firewall whitelist.

Iptables example whitelisting 1.1.1.0/24 and 2.2.2.0/24 and rejecting others on TCP ports 80 (HTTP) and 443 (HTTPS):

iptables -A INPUT -s 1.1.1.0/24 -p tcp -m multiport --dports 80,443 -j ACCEPT
iptables -A INPUT -s 2.2.2.0/24 -p tcp -m multiport --dports 80,443 -j ACCEPT
iptables -A INPUT -p tcp -m multiport --dports 80,443 -j REJECT
                                

Please note that the IP ranges list is available only to paying customers, it is not available to free trial accounts.

 
 ______      ___     _    _      ___    
|      \\   / _ \\  | || | ||   / _ \\  
|  --  //  | / \ || | || | ||  | / \ || 
|  --  \\  | \_/ || | \\_/ ||  | \_/ || 
|______//   \___//   \____//    \___//  
`------`    `---`     `---`     `---`   
                                        
Europe
  • Amsterdam
  • Athens
  • Bucharest
  • Budapest
  • Frankfurt
  • Istanbul
  • Kharkov
  • Kiev
  • Krasnoyarsk
  • London
  • Lvov
  • Madrid
  • Milan
  • Moscow
  • Odessa
  • Oslo
  • Paris
  • Stockholm
  • Trondheim
America
  • Atlanta
  • Bogota
  • Buenos Aires
  • Chicago
  • Dallas
  • Denver
  • Los Angeles
  • Miami
  • Montreal
  • New York
  • Provo
  • Queretaro
  • San Jose
  • Sao Paulo
  • Seattle
  • Toronto
  • Washington
Contact
  • e-mail: info@cdnsun.com
  • skype: cdnsun.com
  • phone: +1 844 300 9206
  • phone: +420 776 256 872
Blog Twitter LinkedIn Facebook CrunchBase Google+ / Google plus Foursquare Pinterest