Google Chrome browse is not using my host DNS settings.

Environment –
Operating System : CentOS release 6.8
Google Chrome: Version 55.0.2883.87 (64-bit)

I have an Intranet DNS server with internal domain name. The domain name is resolved internally by my DNS server to an internal private IP address. With Firefox I could always visit my internal site without issues, but recently I installed Chrome browser into my CentOS desktop and when I tried to visit my internal site, it was directing me to an Internet site which I don’t own. Apparently Google Chrome was ignoring my dns setting and using its own name servers.

My first attempt – flush DNS on Chrome (failed)
I went to the DNS configuration for chrome and cleared host cache. The dns settings clearly showed my ‘nameservers’ as the 192.168.1.1 (my internal name servers) and yet Chrome was not using it. Even after cleaning the host cache and flushing sockets, it didn’t help.

Chrome setting to view and manage DNS settings –

chrome://net-internals/#dns

My second attempt – block IPv6 (worked)
After running tcpdump on port 53, Chrome was calling an IPv6 address 2001:4860:4860::8888 to resolve domains.

Added below lines to

 /etc/sysctl.conf 

in order to disable IPv6 temporarily for a test –

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

And executed the command

 sysctl -p 

to apply the new kernel settings. After this change and flushing dns, I was able to visit my internal site.

I am guessing the DNS IPs used by Chrome as somehow internally coded, and haven’t been able to find those settings.

References –

https://www.reddit.com/r/chrome/comments/1xj69t/chrome_ignoring_system_dns_and_using_google_dns/

https://www.howtogeek.com/197804/how-to-clear-the-google-chrome-dns-cache-on-windows/

Free SSL certificates with Let’s Encrypt certbot – tested in Ubuntu 14.04 with Apache 2.

It is nice to have a site with valid SSL certificates, your visitors will be happy when they see that green padlock. Unfortunately it generally costs time and money to setup SSL certificates. Most big businesses with buy SSL certificates from well know Certificate Authorities(CAs) such as VeriSign, Symantec or GlobalSign. If you run a personal blog though and you can still get free SSL certificates.

Benefits of certificates –

a. Search engines such as Google give preference to secure sites
b. Security reasons – encryption and extended validation.

Disadvantages –

a. Introduces latency or delay
b. Operational cost to setup/renew certificates

One of the most popular SSL certificate providers was StarCom or StarSSL, until Google recently stopped trusting the certificates issues by this CA in Google Chrome. In the blog post, Google says –‘Google has determined that two CAs, WoSign and StartCom, have not maintained the high standards expected of CAs and will no longer be trusted by Google Chrome, in accordance with our Root Certificate Policy. ‘

So what is the alternative? Once my site was blocked by Chrome with a cert warning – ERR_CERT_AUTHORITY_INVALID – I did a research on new options and I can across “Let us encrypt”. And it was way better than StartSSL as it was easy to generate and renew certificates. Every thing was automated. No more certificate creation and renewal hassle.

Here are the steps I followed to get new certificates for my site –

1. Install certbot

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache

2. Get SSL certificates and modify Apache configuration automagically with certbot!!

root@localhost:~# certbot --apache

Interactive session –

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel):notshowingmyemail@example.com

-------------------------------------------------------------------------------
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf. You must agree
in order to register with the ACME server at
https://acme-v01.api.letsencrypt.org/directory
-------------------------------------------------------------------------------
(A)gree/(C)ancel: A

-------------------------------------------------------------------------------
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
-------------------------------------------------------------------------------
(Y)es/(N)o: Y

Here, certbot automatically detects my domains –

Which names would you like to activate HTTPS for?
-------------------------------------------------------------------------------
1: danasmera.com
2: www.danasmera.com
3: linuxfreelancer.com
4: www.linuxfreelancer.com
-------------------------------------------------------------------------------
Select the appropriate numbers separated by commas and/or spaces, or leave input
blank to select all options shown (Enter 'c' to cancel):1,2,3,4

Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for danasmera.com
tls-sni-01 challenge for www.danasmera.com
tls-sni-01 challenge for linuxfreelancer.com
tls-sni-01 challenge for www.linuxfreelancer.com
Waiting for verification...
Cleaning up challenges
Deploying Certificate for danasmera.com to VirtualHost /etc/apache2/sites-available/danasmera-ssl
Deploying Certificate for www.danasmera.com to VirtualHost /etc/apache2/sites-available/danasmera-ssl
Deploying Certificate for linuxfreelancer.com to VirtualHost /etc/apache2/sites-available/linuxfreelancer-ssl
Deploying Certificate for www.linuxfreelancer.com to VirtualHost /etc/apache2/sites-available/linuxfreelancer-ssl

Please choose whether HTTPS access is required or optional.
-------------------------------------------------------------------------------
1: Easy - Allow both HTTP and HTTPS access to these sites
2: Secure - Make all requests redirect to secure HTTPS access
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 1

-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://danasmera.com,
https://www.danasmera.com, https://linuxfreelancer.com, and
https://www.linuxfreelancer.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=danasmera.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.danasmera.com
https://www.ssllabs.com/ssltest/analyze.html?d=linuxfreelancer.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.linuxfreelancer.com
-------------------------------------------------------------------------------

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at
/etc/letsencrypt/live/danasmera.com/fullchain.pem. Your cert will
expire on 2017-09-08. To obtain a new or tweaked version of this
certificate in the future, simply run certbot again with the
"certonly" option. To non-interactively renew *all* of your
certificates, run "certbot renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le

Just making sure my apache configuration is valid after certbot modified it –

root@localhost:~# apache2ctl -t
Syntax OK

certbot will create a ‘/etc/letsencrypt/live/’ directory and dump the SSL certificate, private key and cert chain in that directory –

SSLCertificateFile /etc/letsencrypt/live/danasmera.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/danasmera.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/danasmera.com/chain.pem

Certbot created a multidomain SSL certiticate for 90 days, and a renewal cron job was added to my server so that I don’t have to do manual renewals –

root@localhost:~# cat /etc/cron.d/certbot
# /etc/cron.d/certbot: crontab entries for the certbot package
#
# Upstream recommends attempting renewal twice a day
#
# Eventually, this will be an opportunity to validate certificates
# haven't been revoked, etc.  Renewal will only occur if expiration
# is within 30 days.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

0 */12 * * * root test -x /usr/bin/certbot -a \! -d /run/systemd/system && perl -e 'sleep int(rand(3600))' && certbot -q renew

References –

https://certbot.eff.org/all-instructions/#ubuntu-14-04-trusty-apache
https://security.googleblog.com/2016/10/distrusting-wosign-and-startcom.html

Cloud service providers IP ranges for Amazon Web Services(AWS), Microsoft Azure and Google Cloud Platform(GCP).

Cloud service provides publish the subnet IP ranges through multiple ways. This information is particularly important if you want to setup firewall rules or proxy whitelisting based on IP address range.

1. Amazon Web Services(AWS)

Amazon publishes its current IP address range in JSON format. You can find it here.

This quick and dirty python script dumps the IPv4 address range –

#!/usr/bin/env python

import sys
import requests

try:
    r = requests.get('https://ip-ranges.amazonaws.com/ip-ranges.json')
except Exception as e:
    print('Error making https request : {}'.format(e))
    sys.exit(1)

if r.status_code == 200:
    for item in r.json().get('prefixes'):
        print(item.get('ip_prefix'))

Run script –

$ python aws_ip_range.py  | tee /tmp/aws_ip_range.txt
13.32.0.0/15
13.54.0.0/15
13.56.0.0/16
13.58.0.0/15
13.112.0.0/14
13.124.0.0/16
13.126.0.0/15
13.210.0.0/15
13.228.0.0/15
18.194.0.0/15
18.196.0.0/15
18.220.0.0/14
18.231.0.0/16
23.20.0.0/14
27.0.0.0/22
34.192.0.0/12
34.208.0.0/12
34.224.0.0/12
34.240.0.0/13
34.248.0.0/13
35.154.0.0/16
35.156.0.0/14
35.160.0.0/13
35.176.0.0/15
35.182.0.0/15
43.250.192.0/24
43.250.193.0/24
46.51.128.0/18
46.51.192.0/20
46.51.216.0/21
46.51.224.0/19
46.137.0.0/17
46.137.128.0/18
46.137.192.0/19
46.137.224.0/19
50.16.0.0/15
50.18.0.0/16
50.19.0.0/16
50.112.0.0/16
52.0.0.0/15
52.2.0.0/15
52.4.0.0/14
52.8.0.0/16
52.9.0.0/16
52.10.0.0/15
52.12.0.0/15
52.14.0.0/16
52.15.0.0/16
52.16.0.0/15
52.18.0.0/15
52.20.0.0/14
52.24.0.0/14
52.28.0.0/16
52.29.0.0/16
52.30.0.0/15
52.32.0.0/14
52.36.0.0/14
52.40.0.0/14
52.44.0.0/15
52.46.0.0/18
52.46.64.0/20
52.46.80.0/21
52.46.88.0/22
52.46.92.0/22
52.47.0.0/16
52.48.0.0/14
52.52.0.0/15
52.54.0.0/15
52.56.0.0/16
52.57.0.0/16
52.58.0.0/15
52.60.0.0/16
52.61.0.0/16
52.62.0.0/15
52.64.0.0/17
52.64.128.0/17
52.65.0.0/16
52.66.0.0/16
52.67.0.0/16
52.68.0.0/15
52.70.0.0/15
52.72.0.0/15
52.74.0.0/16
52.76.0.0/17
52.76.128.0/17
52.77.0.0/16
52.78.0.0/16
52.79.0.0/16
52.80.0.0/16
52.82.187.0/24
52.82.188.0/22
52.82.196.0/24
52.82.200.0/21
52.82.208.0/20
52.83.0.0/16
52.84.0.0/15
52.86.0.0/15
52.88.0.0/15
52.90.0.0/15
52.92.0.0/20
52.92.16.0/20
52.92.32.0/22
52.92.39.0/24
52.92.40.0/21
52.92.48.0/22
52.92.52.0/22
52.92.56.0/22
52.92.60.0/22
52.92.64.0/22
52.92.68.0/22
52.92.72.0/22
52.92.76.0/22
52.92.80.0/22
52.92.84.0/22
52.92.88.0/22
52.92.248.0/22
52.92.252.0/22
52.93.0.0/24
52.93.1.0/24
52.93.2.0/24
52.93.3.0/24
52.93.4.0/24
52.93.5.0/24
52.93.8.0/22
52.93.16.0/24
52.94.0.0/22
52.94.4.0/24
52.94.5.0/24
52.94.6.0/24
52.94.7.0/24
52.94.8.0/24
52.94.9.0/24
52.94.10.0/24
52.94.11.0/24
52.94.12.0/24
52.94.13.0/24
52.94.14.0/24
52.94.15.0/24
52.94.16.0/24
52.94.17.0/24
52.94.20.0/24
52.94.24.0/23
52.94.26.0/23
52.94.28.0/23
52.94.30.0/23
52.94.32.0/20
52.94.48.0/20
52.94.64.0/22
52.94.80.0/20
52.94.96.0/20
52.94.112.0/22
52.94.192.0/22
52.94.196.0/24
52.94.197.0/24
52.94.198.0/28
52.94.198.16/28
52.94.198.32/28
52.94.198.48/28
52.94.198.64/28
52.94.198.80/28
52.94.198.96/28
52.94.198.112/28
52.94.198.128/28
52.94.198.144/28
52.94.199.0/24
52.94.200.0/24
52.94.204.0/23
52.94.206.0/23
52.94.208.0/21
52.94.216.0/21
52.94.224.0/20
52.94.240.0/22
52.94.244.0/22
52.94.248.0/28
52.94.248.16/28
52.94.248.32/28
52.94.248.48/28
52.94.248.64/28
52.94.248.80/28
52.94.248.96/28
52.94.248.112/28
52.94.248.128/28
52.94.248.144/28
52.94.248.160/28
52.94.248.176/28
52.94.248.192/28
52.94.248.208/28
52.94.248.224/28
52.94.249.0/28
52.94.249.16/28
52.94.249.32/28
52.94.252.0/23
52.94.254.0/23
52.95.0.0/20
52.95.16.0/21
52.95.24.0/22
52.95.28.0/24
52.95.30.0/23
52.95.34.0/24
52.95.35.0/24
52.95.36.0/22
52.95.40.0/24
52.95.48.0/22
52.95.56.0/22
52.95.60.0/24
52.95.61.0/24
52.95.62.0/24
52.95.63.0/24
52.95.64.0/20
52.95.80.0/20
52.95.96.0/22
52.95.100.0/22
52.95.104.0/22
52.95.108.0/23
52.95.110.0/24
52.95.111.0/24
52.95.112.0/20
52.95.128.0/21
52.95.136.0/23
52.95.138.0/24
52.95.142.0/23
52.95.144.0/24
52.95.145.0/24
52.95.146.0/23
52.95.148.0/23
52.95.150.0/24
52.95.154.0/23
52.95.156.0/24
52.95.192.0/20
52.95.212.0/22
52.95.240.0/24
52.95.241.0/24
52.95.242.0/24
52.95.243.0/24
52.95.244.0/24
52.95.245.0/24
52.95.246.0/24
52.95.247.0/24
52.95.248.0/24
52.95.249.0/24
52.95.250.0/24
52.95.251.0/24
52.95.252.0/24
52.95.253.0/24
52.95.254.0/24
52.95.255.0/28
52.95.255.16/28
52.95.255.32/28
52.95.255.48/28
52.95.255.64/28
52.95.255.80/28
52.95.255.96/28
52.95.255.112/28
52.95.255.128/28
52.95.255.144/28
52.119.160.0/20
52.119.176.0/21
52.119.184.0/22
52.119.192.0/22
52.119.196.0/22
52.119.204.0/24
52.119.208.0/23
52.119.212.0/23
52.119.216.0/21
52.119.224.0/21
52.119.232.0/21
52.192.0.0/15
52.196.0.0/14
52.200.0.0/13
52.208.0.0/13
52.216.0.0/15
52.218.0.0/17
52.218.128.0/17
52.219.0.0/20
52.219.16.0/22
52.219.20.0/22
52.219.24.0/21
52.219.32.0/21
52.219.40.0/22
52.219.44.0/22
52.219.56.0/22
52.219.60.0/23
52.219.62.0/23
52.219.64.0/22
52.219.68.0/22
52.219.72.0/22
52.219.76.0/22
52.219.80.0/20
52.220.0.0/15
52.222.0.0/17
52.222.128.0/17
54.64.0.0/15
54.66.0.0/16
54.67.0.0/16
54.68.0.0/14
54.72.0.0/15
54.74.0.0/15
54.76.0.0/15
54.78.0.0/16
54.79.0.0/16
54.80.0.0/13
54.88.0.0/14
54.92.0.0/17
54.92.128.0/17
54.93.0.0/16
54.94.0.0/16
54.95.0.0/16
54.144.0.0/14
54.148.0.0/15
54.150.0.0/16
54.151.0.0/17
54.151.128.0/17
54.152.0.0/16
54.153.0.0/17
54.153.128.0/17
54.154.0.0/16
54.155.0.0/16
54.156.0.0/14
54.160.0.0/13
54.168.0.0/16
54.169.0.0/16
54.170.0.0/15
54.172.0.0/15
54.174.0.0/15
54.176.0.0/15
54.178.0.0/16
54.179.0.0/16
54.182.0.0/16
54.183.0.0/16
54.184.0.0/13
54.192.0.0/16
54.193.0.0/16
54.194.0.0/15
54.196.0.0/15
54.198.0.0/16
54.199.0.0/16
54.200.0.0/15
54.202.0.0/15
54.204.0.0/15
54.206.0.0/16
54.207.0.0/16
54.208.0.0/15
54.210.0.0/15
54.212.0.0/15
54.214.0.0/16
54.215.0.0/16
54.216.0.0/15
54.218.0.0/16
54.219.0.0/16
54.220.0.0/16
54.221.0.0/16
54.222.0.0/19
54.222.57.0/24
54.222.58.0/28
54.222.128.0/17
54.223.0.0/16
54.224.0.0/15
54.226.0.0/15
54.228.0.0/16
54.229.0.0/16
54.230.0.0/16
54.231.0.0/17
54.231.128.0/19
54.231.160.0/19
54.231.192.0/20
54.231.224.0/21
54.231.232.0/21
54.231.240.0/22
54.231.244.0/22
54.231.248.0/22
54.231.252.0/24
54.231.253.0/24
54.232.0.0/16
54.233.0.0/18
54.233.64.0/18
54.233.128.0/17
54.234.0.0/15
54.236.0.0/15
54.238.0.0/16
54.239.0.0/28
54.239.0.16/28
54.239.0.32/28
54.239.0.48/28
54.239.0.64/28
54.239.0.80/28
54.239.0.96/28
54.239.0.112/28
54.239.0.128/28
54.239.0.144/28
54.239.0.160/28
54.239.0.176/28
54.239.0.192/28
54.239.0.208/28
54.239.0.224/28
54.239.0.240/28
54.239.1.0/28
54.239.1.16/28
54.239.2.0/23
54.239.4.0/22
54.239.8.0/21
54.239.16.0/20
54.239.32.0/21
54.239.48.0/22
54.239.52.0/23
54.239.54.0/23
54.239.56.0/21
54.239.64.0/21
54.239.96.0/24
54.239.98.0/24
54.239.99.0/24
54.239.100.0/23
54.239.104.0/23
54.239.108.0/22
54.239.116.0/22
54.239.120.0/21
54.239.128.0/18
54.239.192.0/19
54.240.128.0/18
54.240.192.0/22
54.240.196.0/24
54.240.197.0/24
54.240.198.0/24
54.240.199.0/24
54.240.200.0/24
54.240.202.0/24
54.240.203.0/24
54.240.204.0/22
54.240.208.0/22
54.240.212.0/22
54.240.216.0/22
54.240.220.0/22
54.240.225.0/24
54.240.226.0/24
54.240.227.0/24
54.240.228.0/23
54.240.230.0/23
54.240.232.0/22
54.240.244.0/22
54.240.248.0/21
54.241.0.0/16
54.242.0.0/15
54.244.0.0/16
54.245.0.0/16
54.246.0.0/16
54.247.0.0/16
54.248.0.0/15
54.250.0.0/16
54.251.0.0/16
54.252.0.0/16
54.253.0.0/16
54.254.0.0/16
54.255.0.0/16
67.202.0.0/18
72.21.192.0/19
72.44.32.0/19
75.101.128.0/17
79.125.0.0/17
87.238.80.0/21
96.127.0.0/17
103.4.8.0/22
103.4.12.0/22
103.8.172.0/22
103.246.148.0/23
103.246.150.0/23
107.20.0.0/14
122.248.192.0/18
172.96.97.0/24
174.129.0.0/16
175.41.128.0/18
175.41.192.0/18
176.32.64.0/19
176.32.96.0/21
176.32.104.0/21
176.32.112.0/21
176.32.120.0/22
176.32.125.0/25
176.34.0.0/19
176.34.32.0/19
176.34.64.0/18
176.34.128.0/17
177.71.128.0/17
177.72.240.0/21
178.236.0.0/20
184.72.0.0/18
184.72.64.0/18
184.72.128.0/17
184.73.0.0/16
184.169.128.0/17
185.48.120.0/22
185.143.16.0/24
203.83.220.0/22
204.236.128.0/18
204.236.192.0/18
204.246.160.0/22
204.246.164.0/22
204.246.168.0/22
204.246.174.0/23
204.246.176.0/20
205.251.192.0/19
205.251.224.0/22
205.251.228.0/22
205.251.232.0/22
205.251.236.0/22
205.251.240.0/22
205.251.244.0/23
205.251.247.0/24
205.251.248.0/24
205.251.249.0/24
205.251.250.0/23
205.251.252.0/23
205.251.254.0/24
207.171.160.0/20
207.171.176.0/20
216.137.32.0/19
216.182.224.0/20
54.183.255.128/26
54.228.16.0/26
54.232.40.64/26
54.241.32.64/26
54.243.31.192/26
54.244.52.192/26
54.245.168.0/26
54.248.220.0/26
54.250.253.192/26
54.251.31.128/26
54.252.79.128/26
54.252.254.192/26
54.255.254.192/26
107.23.255.0/26
176.34.159.192/26
177.71.207.128/26
52.82.188.0/22
52.92.0.0/20
52.92.16.0/20
52.92.32.0/22
52.92.39.0/24
52.92.40.0/21
52.92.48.0/22
52.92.52.0/22
52.92.56.0/22
52.92.60.0/22
52.92.64.0/22
52.92.68.0/22
52.92.72.0/22
52.92.76.0/22
52.92.80.0/22
52.92.84.0/22
52.92.88.0/22
52.92.248.0/22
52.92.252.0/22
52.95.128.0/21
52.95.136.0/23
52.95.138.0/24
52.95.142.0/23
52.95.144.0/24
52.95.145.0/24
52.95.146.0/23
52.95.148.0/23
52.95.150.0/24
52.95.154.0/23
52.95.156.0/24
52.216.0.0/15
52.218.0.0/17
52.218.128.0/17
52.219.0.0/20
52.219.16.0/22
52.219.20.0/22
52.219.24.0/21
52.219.32.0/21
52.219.40.0/22
52.219.44.0/22
52.219.56.0/22
52.219.60.0/23
52.219.62.0/23
52.219.64.0/22
52.219.68.0/22
52.219.72.0/22
52.219.76.0/22
52.219.80.0/20
54.222.20.0/22
54.231.0.0/17
54.231.128.0/19
54.231.160.0/19
54.231.192.0/20
54.231.224.0/21
54.231.232.0/21
54.231.240.0/22
54.231.248.0/22
54.231.252.0/24
54.231.253.0/24
54.239.64.0/21
54.240.248.0/22
54.240.252.0/22
13.54.0.0/15
13.56.0.0/16
13.58.0.0/15
13.112.0.0/14
13.124.0.0/16
13.126.0.0/15
13.210.0.0/15
13.228.0.0/15
18.194.0.0/15
18.196.0.0/15
18.220.0.0/14
18.231.0.0/16
23.20.0.0/14
34.192.0.0/12
34.208.0.0/12
34.224.0.0/12
34.240.0.0/13
34.248.0.0/13
35.154.0.0/16
35.156.0.0/14
35.160.0.0/13
35.176.0.0/15
35.182.0.0/15
46.51.128.0/18
46.51.192.0/20
46.51.216.0/21
46.51.224.0/19
46.137.0.0/17
46.137.128.0/18
46.137.192.0/19
46.137.224.0/19
50.16.0.0/15
50.18.0.0/16
50.19.0.0/16
50.112.0.0/16
52.0.0.0/15
52.2.0.0/15
52.4.0.0/14
52.8.0.0/16
52.9.0.0/16
52.10.0.0/15
52.12.0.0/15
52.14.0.0/16
52.15.0.0/16
52.16.0.0/15
52.18.0.0/15
52.20.0.0/14
52.24.0.0/14
52.28.0.0/16
52.29.0.0/16
52.30.0.0/15
52.32.0.0/14
52.36.0.0/14
52.40.0.0/14
52.44.0.0/15
52.47.0.0/16
52.48.0.0/14
52.52.0.0/15
52.54.0.0/15
52.56.0.0/16
52.57.0.0/16
52.58.0.0/15
52.60.0.0/16
52.61.0.0/16
52.62.0.0/15
52.64.0.0/17
52.64.128.0/17
52.65.0.0/16
52.66.0.0/16
52.67.0.0/16
52.68.0.0/15
52.70.0.0/15
52.72.0.0/15
52.74.0.0/16
52.76.0.0/17
52.76.128.0/17
52.77.0.0/16
52.78.0.0/16
52.79.0.0/16
52.80.0.0/16
52.83.0.0/16
52.86.0.0/15
52.88.0.0/15
52.90.0.0/15
52.95.240.0/24
52.95.241.0/24
52.95.242.0/24
52.95.243.0/24
52.95.244.0/24
52.95.245.0/24
52.95.246.0/24
52.95.247.0/24
52.95.248.0/24
52.95.249.0/24
52.95.250.0/24
52.95.251.0/24
52.95.252.0/24
52.95.253.0/24
52.95.254.0/24
52.95.255.0/28
52.95.255.16/28
52.95.255.32/28
52.95.255.48/28
52.95.255.64/28
52.95.255.80/28
52.95.255.96/28
52.95.255.112/28
52.95.255.128/28
52.95.255.144/28
52.192.0.0/15
52.196.0.0/14
52.200.0.0/13
52.208.0.0/13
52.220.0.0/15
52.222.0.0/17
54.64.0.0/15
54.66.0.0/16
54.67.0.0/16
54.68.0.0/14
54.72.0.0/15
54.74.0.0/15
54.76.0.0/15
54.78.0.0/16
54.79.0.0/16
54.80.0.0/13
54.88.0.0/14
54.92.0.0/17
54.92.128.0/17
54.93.0.0/16
54.94.0.0/16
54.95.0.0/16
54.144.0.0/14
54.148.0.0/15
54.150.0.0/16
54.151.0.0/17
54.151.128.0/17
54.152.0.0/16
54.153.0.0/17
54.153.128.0/17
54.154.0.0/16
54.155.0.0/16
54.156.0.0/14
54.160.0.0/13
54.168.0.0/16
54.169.0.0/16
54.170.0.0/15
54.172.0.0/15
54.174.0.0/15
54.176.0.0/15
54.178.0.0/16
54.179.0.0/16
54.183.0.0/16
54.184.0.0/13
54.193.0.0/16
54.194.0.0/15
54.196.0.0/15
54.198.0.0/16
54.199.0.0/16
54.200.0.0/15
54.202.0.0/15
54.204.0.0/15
54.206.0.0/16
54.207.0.0/16
54.208.0.0/15
54.210.0.0/15
54.212.0.0/15
54.214.0.0/16
54.215.0.0/16
54.216.0.0/15
54.218.0.0/16
54.219.0.0/16
54.220.0.0/16
54.221.0.0/16
54.222.128.0/17
54.223.0.0/16
54.224.0.0/15
54.226.0.0/15
54.228.0.0/16
54.229.0.0/16
54.232.0.0/16
54.233.0.0/18
54.233.64.0/18
54.233.128.0/17
54.234.0.0/15
54.236.0.0/15
54.238.0.0/16
54.241.0.0/16
54.242.0.0/15
54.244.0.0/16
54.245.0.0/16
54.246.0.0/16
54.247.0.0/16
54.248.0.0/15
54.250.0.0/16
54.251.0.0/16
54.252.0.0/16
54.253.0.0/16
54.254.0.0/16
54.255.0.0/16
67.202.0.0/18
72.44.32.0/19
75.101.128.0/17
79.125.0.0/17
96.127.0.0/17
103.4.8.0/22
103.4.12.0/22
107.20.0.0/14
122.248.192.0/18
174.129.0.0/16
175.41.128.0/18
175.41.192.0/18
176.32.64.0/19
176.34.0.0/19
176.34.32.0/19
176.34.64.0/18
176.34.128.0/17
177.71.128.0/17
184.72.0.0/18
184.72.64.0/18
184.72.128.0/17
184.73.0.0/16
184.169.128.0/17
185.48.120.0/22
204.236.128.0/18
204.236.192.0/18
216.182.224.0/20
52.95.110.0/24
205.251.192.0/21
13.32.0.0/15
13.54.63.128/26
13.59.250.0/26
34.195.252.0/24
35.162.63.192/26
35.167.191.128/26
52.15.127.128/26
52.46.0.0/18
52.52.191.128/26
52.56.127.0/25
52.57.254.0/24
52.66.194.128/26
52.78.247.128/26
52.84.0.0/15
52.199.127.192/26
52.212.248.0/26
52.220.191.0/26
52.222.128.0/17
54.182.0.0/16
54.192.0.0/16
54.230.0.0/16
54.233.255.128/26
54.239.128.0/18
54.239.192.0/19
54.240.128.0/18
204.246.164.0/22
204.246.168.0/22
204.246.174.0/23
204.246.176.0/20
205.251.192.0/19
205.251.249.0/24
205.251.250.0/23
205.251.252.0/23
205.251.254.0/24
216.137.32.0/19

2. Google Cloud Platform(GCP)

Google makes its cloud IP address range publicly available in DNS as TXT record. The information on how to query DNS to get the IP address range is here.

For GCP, this quick and dirty shell script can pull the IP ranges –

#!/bin/bash

# array to hold list of IP blocks
ALL_IPS=()
NAME_SERVER='8.8.8.8'
txt_records=$(dig @${NAME_SERVER} _cloud-netblocks.googleusercontent.com txt +short)
txt_rr_only=$(echo $txt_records | grep -oP 'include:\S+' | sed 's/include://g')
[[ -z ${txt_rr_only} ]] && { echo 'No TXT dns record found.'; exit 1;}
## unpack txt records to get IPv4 ranges
for rr in ${txt_rr_only}; do
  new_ips=$(dig @${NAME_SERVER} $rr txt +short | grep -o -P '(\d+\.){3}\d+/\d+')
  for item in ${new_ips}; do
    # add space separator between ip blocks
    item=" ${item} "
    ALL_IPS+=${item}
  done
done

# sort IPs
echo ${ALL_IPS[@]} | sed 's/ /\n/g' | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4

Run script –

$ ./gcp_ip_ranges.sh | tee gcp_ip_range.txt 
8.34.208.0/20
8.35.192.0/21
8.35.200.0/23
23.236.48.0/20
23.251.128.0/19
35.184.0.0/14
35.188.0.0/15
35.190.0.0/17
35.190.128.0/18
35.190.192.0/19
35.190.224.0/20
104.154.0.0/15
104.196.0.0/14
107.167.160.0/19
107.178.192.0/18
108.59.80.0/20
108.170.192.0/20
108.170.208.0/21
108.170.216.0/22
108.170.220.0/23
108.170.222.0/24
130.211.4.0/22
130.211.8.0/21
130.211.16.0/20
130.211.32.0/19
130.211.64.0/18
130.211.128.0/17
146.148.2.0/23
146.148.4.0/22
146.148.8.0/21
146.148.16.0/20
146.148.32.0/19
146.148.64.0/18
162.216.148.0/22
162.222.176.0/21
173.255.112.0/20
192.158.28.0/22
199.192.112.0/22
199.223.232.0/22
199.223.236.0/23
208.68.108.0/23

3. Microsoft Azure

Microsoft publishes its IP address range in xml format, you can download it from here.

This quick and dirty Python script pulls the IP ranges using BeautifulSoup. Note – this IP range was downloaded on 05/23/2017 – change the date to get the latest data.

#!/usr/bin/env python

import sys
import requests
from bs4 import BeautifulSoup

try:
    r = requests.get('https://download.microsoft.com/download/0/1/8/018E208D-54F8-44CD-AA26-CD7BC9524A8C/PublicIPs_20170515.xml')
except Exception as e:
    print('Error making https request : {}'.format(e))
    sys.exit(1)

if r.status_code == 200:
    xml_data = BeautifulSoup(r.text, "lxml")
    ip_range = xml_data.find_all('iprange')
    for ip in ip_range:
        print(ip.get('subnet'))

Run script –

$ python azure_ip_range.py | tee azure_ip_range.txt
40.112.124.0/24
65.52.128.0/19
94.245.97.0/24
104.47.169.0/24
104.214.240.0/24
137.116.192.0/19
168.63.0.0/19
168.63.96.0/20
168.63.112.16/28
168.63.112.64/26
168.63.112.128/25
168.63.113.0/24
168.63.114.0/23
168.63.116.0/22
168.63.120.0/21
193.149.80.0/22
213.199.128.0/21
213.199.136.0/22
213.199.180.32/28
213.199.180.112/28
213.199.183.0/24
23.97.128.0/17
23.98.46.0/24
23.100.0.0/20
23.101.64.0/20
40.74.0.0/18
40.90.141.160/27
40.114.128.0/18
104.40.128.0/17
104.44.90.192/27
104.44.93.192/27
104.44.95.96/28
104.45.0.0/18
104.45.64.0/20
104.46.32.0/19
137.117.128.0/17
168.61.56.16/28
168.61.56.32/27
168.61.56.64/26
168.61.56.128/26
168.61.56.192/28
168.61.56.224/27
168.61.57.32/27
168.61.57.64/26
168.61.57.128/25
168.61.58.0/26
168.61.58.128/26
168.61.58.192/28
168.61.58.224/27
168.61.59.0/25
168.61.59.224/28
168.61.60.0/24
168.61.61.0/26
168.61.61.96/27
168.61.61.128/25
168.61.62.0/23
191.233.64.0/18
191.237.232.0/22
191.239.200.0/23
191.239.202.0/24
191.239.203.0/27
191.239.203.64/27
193.149.84.0/22
13.69.40.48/28
13.69.40.64/26
13.69.40.128/25
13.69.42.0/23
13.69.44.0/22
13.69.64.0/19
13.73.128.16/28
13.73.128.32/27
13.73.128.64/26
13.73.128.128/25
13.73.130.0/23
13.73.132.0/22
13.73.168.112/28
13.73.168.128/25
13.73.170.0/23
13.73.172.0/22
13.80.32.16/28
13.80.32.32/27
13.80.32.64/26
13.80.32.128/25
13.80.34.0/23
13.80.36.0/22
13.80.89.16/28
13.80.89.32/27
13.80.89.64/26
13.80.89.128/25
13.80.91.16/28
13.80.91.32/27
13.80.91.64/26
13.80.91.128/25
13.80.92.0/22
13.80.160.16/28
13.80.160.64/26
13.80.160.128/25
13.80.161.0/24
13.80.162.0/23
13.80.164.0/22
13.80.184.16/28
13.80.184.32/27
13.80.184.64/26
13.80.184.128/25
13.80.186.0/23
13.80.188.0/22
13.80.192.0/19
13.80.224.0/21
13.80.233.16/28
13.80.233.32/27
13.80.233.64/26
13.80.233.128/25
13.80.234.0/23
13.80.236.0/22
13.81.16.16/28
13.81.16.64/26
13.81.16.128/25
13.81.18.0/23
13.81.20.0/22
13.81.72.32/27
13.81.72.64/26
13.81.72.128/25
13.81.75.0/24
13.81.76.0/22
13.81.128.0/19
13.81.160.16/28
13.81.160.32/27
13.81.160.64/26
13.81.160.128/25
13.81.162.0/23
13.81.164.0/22
13.81.232.16/28
13.81.232.32/27
13.81.232.64/26
13.81.232.128/25
13.81.234.0/23
13.81.236.0/22
13.95.128.0/19
13.95.160.0/20
13.95.176.0/21
13.95.184.0/28
13.95.185.0/24
13.95.192.0/19
13.95.224.0/20
13.95.240.0/26
13.95.240.64/27
13.95.240.96/28
13.95.241.0/24
13.95.248.0/21
40.80.0.0/18
40.82.0.0/16
40.112.36.128/26
40.112.96.0/20
40.112.112.0/21
40.112.120.0/22
40.112.125.0/24
40.112.126.0/23
40.113.96.0/19
40.113.128.0/18
40.114.192.0/18
40.115.0.0/18
40.118.0.0/17
52.178.0.0/19
52.178.32.0/20
52.253.180.0/22
104.46.16.0/21
104.47.128.0/19
104.47.160.0/21
104.47.168.0/24
104.47.170.0/23
104.47.172.0/22
104.47.176.0/20
104.214.192.0/19
104.214.224.0/20
104.214.241.0/24
104.214.242.0/23
104.214.244.0/22
104.214.248.0/21
13.69.0.0/19
13.69.32.0/21
13.69.40.0/27
13.69.40.32/28
13.69.41.0/24
13.69.48.0/20
13.69.96.0/19
13.73.128.0/28
13.73.129.0/24
13.73.136.0/21
13.73.144.0/20
13.73.160.0/21
13.73.168.0/26
13.73.168.64/27
13.73.168.96/28
13.73.169.0/24
13.73.176.0/20
13.73.224.0/21
13.80.0.0/19
13.80.32.0/28
13.80.33.0/24
13.80.40.0/21
13.80.48.0/20
13.80.64.0/20
13.80.80.0/21
13.80.88.0/24
13.80.89.0/28
13.80.90.0/24
13.80.91.0/28
13.80.96.0/19
13.80.128.0/19
13.80.160.0/28
13.80.160.32/27
13.80.168.0/21
13.80.176.0/21
13.80.184.0/28
13.80.185.0/24
13.80.232.0/24
13.80.233.0/28
13.80.240.0/20
13.81.0.0/20
13.81.16.0/28
13.81.16.32/27
13.81.24.0/21
13.81.32.0/19
13.81.64.0/21
13.81.72.0/27
13.81.73.0/24
13.81.74.0/24
13.81.80.0/20
13.81.96.0/19
13.81.160.0/28
13.81.161.0/24
13.81.168.0/21
13.81.176.0/20
13.81.192.0/19
13.81.224.0/21
13.81.232.0/28
13.81.233.0/24
13.81.240.0/20
13.88.200.0/21
13.93.0.0/20
13.93.16.0/24
13.93.17.0/28
13.93.24.0/21
13.93.32.0/20
13.93.48.0/21
13.93.56.0/24
13.93.57.0/28
13.93.64.0/19
13.93.96.0/27
13.93.97.0/24
13.93.98.0/24
13.93.104.0/21
13.93.112.0/20
13.94.128.0/19
13.94.160.0/28
13.94.161.0/24
13.94.168.0/21
13.94.176.0/20
13.94.192.0/20
13.94.208.0/21
13.94.216.0/27
13.94.217.0/24
13.94.218.0/24
13.94.224.0/19
13.95.0.0/19
13.95.64.0/19
13.95.96.0/28
13.95.96.32/27
13.95.96.160/27
13.95.96.192/28
13.95.97.0/24
13.95.104.0/21
13.95.112.0/20
40.68.0.0/19
40.68.32.0/20
40.68.48.0/28
40.68.49.0/24
40.68.56.0/21
40.68.64.0/19
40.68.96.0/21
40.68.104.0/28
40.68.105.0/24
40.68.112.0/20
40.68.128.0/19
40.68.160.0/20
40.68.176.0/26
40.68.176.64/28
40.68.177.0/24
40.68.184.0/21
40.68.192.0/19
40.68.224.0/21
40.68.232.0/26
40.68.232.64/28
40.68.233.0/24
40.68.240.0/20
52.157.64.0/19
52.157.96.0/20
52.166.0.0/20
52.166.16.0/21
52.166.24.0/28
52.166.25.0/24
52.166.32.0/19
52.166.64.0/20
52.166.80.0/25
52.166.81.0/24
52.166.82.0/24
52.166.88.0/21
52.166.96.0/19
52.166.128.0/20
52.166.144.0/21
52.166.152.0/28
52.166.153.0/24
52.166.160.0/19
52.166.192.0/20
52.166.208.0/28
52.166.209.0/24
52.166.216.0/21
52.166.224.0/19
52.174.0.0/21
52.174.8.0/26
52.174.9.0/24
52.174.10.0/24
52.174.16.0/20
52.174.32.0/19
52.174.64.0/19
52.174.96.0/20
52.174.112.0/28
52.174.113.0/24
52.174.120.0/21
52.174.128.0/19
52.174.160.0/21
52.174.168.0/28
52.174.169.0/24
52.174.176.0/20
52.174.192.0/19
52.174.224.0/25
52.174.224.128/27
52.174.225.0/24
52.174.232.0/21
52.174.240.0/20
52.178.64.0/19
52.178.96.0/20
52.178.112.0/21
52.178.120.0/28
52.178.121.0/24
52.232.0.0/19
52.232.32.0/20
52.232.48.0/24
52.232.49.0/28
52.232.56.0/21
52.232.64.0/20
52.232.80.0/21
52.232.88.0/28
52.232.89.0/24
52.232.96.0/19
52.233.128.0/20
52.233.144.0/28
52.233.145.0/24
52.233.152.0/21
52.233.160.0/19
52.233.192.0/21
52.233.216.0/23
52.233.224.0/19
52.236.128.0/20
52.236.240.0/26
52.236.240.64/28
52.236.242.0/23
52.236.248.0/21
52.239.140.0/26
52.245.48.0/26
52.136.192.0/21
52.137.0.0/19
52.142.192.0/19
52.142.224.0/20
52.148.232.0/22
52.149.112.0/24
52.149.120.0/21
52.157.128.0/24
52.157.136.0/21
52.157.144.0/20
52.157.160.0/20
52.157.176.0/21
52.157.184.0/23
52.157.187.0/24
52.157.240.0/20
52.239.140.128/26
52.245.49.0/26
52.245.49.80/28
52.245.49.96/28
52.245.49.128/28
52.245.50.0/28
23.96.0.0/18
23.96.64.0/28
23.96.64.64/26
23.96.64.128/27
23.96.64.160/28
23.96.80.0/20
23.96.96.0/19
23.100.16.0/20
23.101.128.0/20
52.179.25.0/24
52.191.106.0/24
52.234.202.0/24
52.240.61.0/24
52.240.112.0/24
104.45.128.0/18
104.45.192.0/20
137.116.112.0/20
137.117.32.0/19
137.117.64.0/18
137.135.64.0/18
157.56.176.0/21
168.61.32.0/20
168.61.48.0/21
168.62.32.0/26
168.62.32.96/27
168.62.32.192/26
168.62.33.0/28
168.62.33.32/27
168.62.33.64/26
168.62.33.128/26
168.62.33.192/28
168.62.33.224/27
168.62.34.0/26
168.62.34.64/28
168.62.34.96/27
168.62.34.128/25
168.62.35.0/24
168.62.36.0/22
168.62.40.0/22
168.62.44.0/23
168.62.46.0/24
168.62.47.0/27
168.62.47.32/28
168.62.47.96/27
168.62.47.128/25
168.62.48.0/20
168.62.160.0/19
23.98.45.0/24
40.76.0.0/18
40.121.168.0/28
40.121.169.0/24
40.121.176.0/20
40.121.192.0/19
40.121.224.0/28
40.121.225.0/24
40.121.232.0/21
40.121.240.0/20
52.168.128.0/20
52.168.144.0/21
52.168.152.0/28
52.168.153.0/24
52.170.128.0/19
52.170.160.0/20
104.41.128.0/19
138.91.96.0/25
138.91.96.128/26
138.91.96.192/28
138.91.112.0/20
191.234.32.0/19
191.236.0.0/18
191.238.0.0/26
191.238.0.64/27
191.238.0.144/28
191.238.0.160/27
191.238.0.192/26
191.238.1.0/24
191.238.2.0/23
191.238.4.0/24
191.238.6.0/26
191.238.6.64/28
191.238.7.0/24
191.238.8.0/21
191.238.16.0/20
191.238.32.0/19
13.68.161.16/28
13.68.161.32/27
13.68.161.64/26
13.68.161.128/25
13.68.163.48/28
13.68.163.64/26
13.68.163.128/25
13.72.88.64/26
13.72.88.128/25
13.72.91.0/24
13.72.92.0/22
13.72.120.16/28
13.72.120.32/27
13.72.120.64/26
13.72.120.128/25
13.72.122.0/23
13.72.124.0/22
40.76.64.0/18
40.76.128.0/17
40.114.0.0/17
40.117.128.0/17
40.121.0.0/17
40.121.128.0/19
40.121.160.0/21
40.121.168.16/28
40.121.168.32/27
40.121.168.64/26
40.121.168.128/25
40.121.170.0/23
40.121.172.0/22
40.121.224.16/28
40.121.224.32/27
40.121.224.64/26
40.121.224.128/25
40.121.226.0/23
40.121.228.0/22
52.170.176.0/28
52.170.177.0/24
52.170.184.0/21
52.191.0.0/19
52.191.32.0/21
52.253.152.0/22
104.211.0.0/18
191.237.0.0/19
191.237.32.0/22
191.237.36.0/23
191.237.38.0/27
191.237.39.0/24
191.237.40.0/21
191.237.48.0/20
191.237.64.0/18
13.68.128.0/19
13.68.160.0/24
13.68.161.0/28
13.68.162.0/24
13.68.163.0/27
13.68.163.32/28
13.68.165.0/25
13.68.166.0/23
13.68.168.0/21
13.68.176.0/20
13.68.192.0/18
13.72.64.0/20
13.72.80.0/21
13.72.88.0/26
13.72.89.0/24
13.72.90.0/24
13.72.96.0/20
13.72.112.0/21
13.72.120.0/28
13.72.121.0/24
13.82.0.0/16
13.90.0.0/19
13.90.32.0/20
13.90.48.0/28
13.90.49.0/24
13.90.56.0/21
13.90.64.0/19
13.90.96.0/21
13.90.104.0/28
13.90.105.0/24
13.90.112.0/20
13.90.128.0/19
13.90.160.0/28
13.90.161.0/24
13.90.168.0/21
13.90.176.0/20
13.90.192.0/20
13.90.208.0/21
13.90.216.0/28
13.90.217.0/24
13.90.224.0/19
13.92.0.0/19
13.92.32.0/20
13.92.48.0/28
13.92.49.0/24
13.92.56.0/21
13.92.64.0/19
13.92.96.0/21
13.92.104.0/28
13.92.105.0/24
13.92.112.0/20
13.92.128.0/20
13.92.144.0/28
13.92.145.0/24
13.92.152.0/21
13.92.160.0/19
13.92.192.0/21
13.92.200.0/27
13.92.201.0/24
13.92.202.0/24
13.92.208.0/20
13.92.224.0/19
40.71.0.0/19
40.71.32.0/20
40.71.48.0/28
40.71.49.0/24
40.71.56.0/21
40.71.64.0/19
40.71.96.0/21
40.71.104.0/26
40.71.105.0/24
40.71.112.0/20
40.71.160.0/19
40.71.192.0/19
40.71.224.0/20
40.71.240.0/27
40.71.248.0/21
40.80.144.0/21
40.85.160.0/19
40.87.0.0/17
40.112.48.0/20
40.117.32.0/19
40.117.64.0/18
52.168.0.0/19
52.168.32.0/21
52.168.40.0/28
52.168.41.0/24
52.168.48.0/20
52.168.64.0/19
52.168.96.0/28
52.168.97.0/24
52.168.104.0/21
52.168.112.0/20
52.168.160.0/20
52.168.176.0/21
52.168.184.0/28
52.168.185.0/24
52.170.0.0/19
52.170.32.0/20
52.170.48.0/28
52.170.49.0/24
52.170.56.0/21
52.170.64.0/19
52.170.96.0/21
52.170.104.0/28
52.170.105.0/24
52.170.112.0/20
52.170.192.0/19
52.170.224.0/28
52.170.225.0/24
52.170.232.0/21
52.170.240.0/20
52.179.0.0/20
52.179.16.0/21
52.179.24.0/27
52.190.0.0/19
52.190.32.0/20
52.190.48.48/28
52.190.49.0/24
52.190.56.0/21
52.191.64.0/19
52.191.96.0/21
52.191.104.0/28
52.191.105.0/24
52.191.112.0/20
52.226.128.0/19
52.239.152.0/27
52.245.9.0/28
52.152.128.0/20
52.152.144.0/21
52.152.152.0/24
52.152.160.0/19
52.152.192.0/20
52.152.208.0/24
52.152.216.0/21
52.152.224.0/19
52.154.64.0/21
52.154.72.0/22
52.154.76.0/23
52.179.80.0/20
52.179.96.0/19
52.186.0.0/28
52.186.1.0/24
52.186.8.0/21
52.186.16.0/20
52.186.32.0/20
52.186.48.0/21
52.186.56.0/28
52.186.57.0/24
52.186.64.0/19
52.186.96.0/20
52.186.112.0/26
52.186.112.64/28
52.186.113.0/24
52.186.114.0/24
52.186.120.0/21
52.191.192.0/19
52.191.224.0/20
52.191.240.0/28
52.191.241.0/24
52.191.248.0/21
52.224.0.0/19
52.224.32.0/21
52.224.40.0/28
52.224.41.0/24
52.224.48.0/20
52.224.64.0/19
52.224.96.0/28
52.224.97.0/24
52.224.104.0/21
52.224.112.0/20
52.224.128.0/20
52.224.144.0/21
52.224.152.0/28
52.224.153.0/24
52.224.160.0/19
52.224.192.0/20
52.224.208.0/28
52.224.209.0/24
52.224.216.0/21
52.224.224.0/19
52.226.0.0/21
52.226.8.0/25
52.226.8.128/27
52.226.8.160/28
52.226.9.0/24
52.226.10.0/24
52.226.16.0/20
52.226.32.0/19
52.226.64.0/18
52.226.160.0/20
52.226.176.0/21
52.226.184.0/26
52.226.185.0/24
52.234.128.0/19
52.234.160.0/20
52.234.176.0/25
52.234.176.128/28
52.234.178.0/23
52.234.184.0/21
52.234.192.0/21
52.234.200.0/28
52.234.201.0/24
52.234.208.0/20
52.234.224.0/19
52.239.152.64/26
52.239.152.128/25
52.240.48.0/26
52.240.48.64/28
52.240.52.0/22
52.240.56.0/22
52.240.60.0/26
52.240.60.64/27
52.245.8.0/27
52.245.8.32/28
52.245.8.64/27
52.245.8.112/28
52.245.8.144/28
52.245.8.160/27
52.245.8.192/27
52.245.8.224/28
52.249.168.0/24
52.249.176.0/20
52.249.192.0/19
52.249.224.0/24
52.249.232.0/21
52.249.240.0/20
52.186.128.0/28
52.186.129.0/24
52.186.136.0/21
52.186.144.0/20
52.186.160.0/20
52.186.176.0/21
52.186.184.0/28
52.186.185.0/24
52.188.0.0/18
52.188.64.0/19
52.188.96.0/28
52.188.97.0/24
52.188.104.0/21
52.188.112.0/20
52.188.128.0/18
52.188.192.0/21
52.239.153.64/27
52.245.11.0/28
23.100.64.0/21
23.101.32.0/21
23.101.144.0/20
52.253.148.0/22
104.46.192.0/20
137.116.0.0/26
137.116.0.80/28
137.116.0.96/27
137.116.0.128/25
137.116.1.0/24
137.116.2.0/25
137.116.2.128/26
137.116.2.224/27
137.116.3.0/24
137.116.4.0/22
137.116.8.0/21
137.116.16.0/20
137.116.32.0/19
137.116.64.0/19
137.116.96.0/22
191.239.224.0/25
193.149.64.0/21
23.102.204.0/22
40.75.0.0/17
40.84.0.0/17
104.46.0.0/21
104.46.96.0/19
104.47.200.0/21
104.209.128.0/17
104.210.0.0/20
191.236.192.0/18
191.237.128.0/19
191.237.160.0/22
191.237.164.0/23
191.237.168.0/21
191.237.176.0/20
104.44.88.32/27
104.44.88.96/27
104.44.91.96/27
104.44.94.48/28
40.90.144.64/26
13.68.0.0/18
13.68.64.16/28
13.68.64.32/27
13.68.64.64/26
13.68.64.128/25
13.68.66.0/23
13.68.68.0/22
13.68.120.96/27
13.68.120.128/25
13.68.122.0/23
13.68.124.0/22
40.70.0.0/19
40.70.32.0/28
40.70.33.0/24
40.70.40.0/21
40.70.48.0/20
40.70.64.0/20
40.70.80.0/21
40.79.0.0/21
40.79.8.0/27
40.79.8.32/28
40.79.8.64/27
40.79.8.96/28
40.79.9.0/24
40.79.16.0/20
40.79.32.0/20
40.79.48.0/27
40.79.48.32/28
40.79.49.0/24
40.79.56.0/21
40.79.64.0/20
40.79.80.0/21
40.79.90.0/24
40.79.91.0/28
40.79.92.0/24
40.79.93.0/28
40.79.94.0/24
40.79.95.0/28
40.81.0.0/17
40.123.16.0/27
40.123.16.32/28
40.123.17.0/24
40.123.24.0/21
40.123.32.0/20
40.123.48.0/21
40.123.120.0/21
104.208.128.0/27
104.208.128.32/28
104.208.129.0/24
104.208.136.0/21
104.208.144.0/20
104.208.160.0/21
104.208.192.0/20
104.208.208.0/24
104.208.209.0/28
104.208.216.0/21
104.208.224.0/20
104.208.240.0/21
104.208.248.0/27
13.77.64.0/19
13.77.112.192/26
13.77.112.176/28
13.77.117.0/24
13.77.118.0/23
13.77.115.64/26
13.77.115.128/25
40.90.138.160/27
104.44.93.160/27
13.68.64.0/28
13.68.65.0/24
13.68.72.0/21
13.68.80.0/20
13.68.96.0/20
13.68.112.0/21
13.68.120.0/26
13.68.120.64/27
13.68.121.0/24
13.77.96.0/20
13.77.112.0/25
13.77.112.128/28
40.70.128.0/19
40.70.160.0/20
40.70.176.0/28
40.70.177.0/24
40.70.184.0/21
40.70.192.0/19
40.70.224.0/21
40.70.232.240/28
40.70.233.0/24
40.70.240.0/20
52.167.0.0/19
52.167.32.0/28
52.167.33.0/24
52.167.40.0/21
52.167.48.0/20
52.167.64.0/20
52.167.80.0/21
52.167.88.16/28
52.167.88.32/27
52.167.88.64/26
52.167.144.0/20
52.167.160.0/19
52.167.240.0/27
52.167.248.0/21
52.177.0.0/19
52.177.32.0/21
52.177.48.0/20
52.177.64.0/19
52.177.104.0/21
52.177.112.0/20
52.177.128.0/20
52.177.144.0/21
52.177.160.0/21
52.177.208.0/28
52.177.208.64/27
52.177.209.0/24
52.177.216.0/21
52.177.224.0/19
52.179.144.80/28
52.179.146.0/24
52.179.192.0/19
52.179.224.0/20
52.179.240.32/27
52.179.240.64/26
52.179.240.128/26
52.179.240.192/27
52.184.168.0/28
52.184.168.128/28
52.184.169.0/24
52.184.170.0/24
52.184.176.0/20
52.184.192.0/18
52.225.136.0/27
52.225.136.32/28
52.239.156.224/27
52.239.157.0/27
52.239.172.0/22
52.239.184.64/27
52.239.184.160/28
52.242.112.0/24
52.242.120.0/21
52.245.44.32/28
52.245.44.96/28
52.245.44.160/28
52.245.45.0/27
52.245.45.208/28
52.245.46.64/28
52.247.0.0/19
52.247.32.0/21
52.247.96.0/24
52.247.104.0/21
52.247.112.0/20
52.251.0.0/20
52.251.16.0/21
52.254.64.0/19
52.254.96.0/20
13.77.112.144/28
13.77.112.160/28
13.77.113.0/24
13.77.114.0/24
13.77.115.0/26
13.77.116.0/24
13.77.120.0/21
52.167.96.0/19
52.167.128.0/20
52.167.192.0/19
52.167.224.0/20
52.177.168.0/21
52.177.176.0/20
52.177.192.0/20
52.179.128.0/20
52.179.144.16/28
52.179.144.32/27
52.179.144.64/28
52.179.152.0/21
52.179.160.0/19
52.179.240.0/27
52.179.240.224/27
52.179.241.0/26
52.179.241.64/28
52.179.242.0/24
52.179.248.0/21
52.184.128.0/19
52.184.160.0/21
52.184.168.80/28
52.184.168.96/27
52.225.128.0/21
52.225.136.64/28
52.225.137.0/24
52.225.192.0/19
52.225.224.0/20
52.225.240.0/28
52.225.248.0/21
52.232.160.0/19
52.232.192.0/19
52.232.224.0/21
52.232.232.0/25
52.232.232.128/26
52.232.232.192/28
52.232.233.0/24
52.232.240.0/20
52.239.156.64/26
52.239.156.128/26
52.239.157.32/27
52.239.157.64/26
52.239.157.128/26
52.239.157.192/27
52.239.184.0/26
52.239.184.96/27
52.242.64.0/24
52.242.72.0/21
52.242.80.0/20
52.242.96.0/20
52.245.44.0/28
52.245.44.48/28
52.245.44.80/28
52.245.44.112/28
52.245.44.128/28
52.245.44.176/28
52.245.44.192/26
52.245.45.32/27
52.245.45.64/26
52.245.45.128/28
52.245.45.160/27
52.245.45.192/28
52.245.45.224/27
52.247.41.0/24
52.247.48.0/20
52.247.64.0/19
52.251.24.0/24
52.251.32.0/19
52.251.64.0/20
52.251.80.0/24
52.251.88.0/21
52.251.96.0/21
52.251.104.0/24
52.251.112.0/20
52.252.0.0/19
52.252.32.0/24
52.252.40.0/21
52.252.48.0/20
52.252.64.0/20
52.252.80.0/21
52.252.88.0/24
52.252.96.0/19
52.253.64.0/20
52.254.0.0/18
52.254.112.0/21
13.83.152.0/28
13.83.153.0/24
13.83.160.0/19
13.83.192.0/20
13.83.208.0/26
13.83.208.80/28
13.83.208.128/27
13.83.208.160/28
13.83.208.192/27
13.83.209.0/24
13.83.216.0/21
13.83.224.0/19
23.100.32.0/20
23.101.192.0/20
52.160.136.0/21
52.160.209.0/24
52.239.49.0/24
52.239.105.0/24
52.241.89.0/24
52.248.184.0/24
52.254.136.0/23
52.254.240.0/24
104.45.208.0/20
104.45.224.0/19
137.116.184.0/21
137.117.0.48/28
137.117.0.64/26
137.117.0.128/25
137.117.1.0/24
137.117.2.0/23
137.117.4.0/22
137.117.8.0/21
137.117.16.0/20
137.135.0.0/18
138.91.64.0/19
157.56.160.0/21
168.61.0.0/19
168.61.64.0/20
168.62.0.0/26
168.62.0.96/27
168.62.0.128/25
168.62.1.0/28
168.62.1.32/27
168.62.1.64/26
168.62.1.128/25
168.62.2.0/23
168.62.4.0/22
168.62.8.0/22
168.62.12.0/23
168.62.14.0/24
168.62.15.0/27
168.62.15.32/28
168.62.15.96/27
168.62.15.128/25
168.62.16.0/20
168.62.192.0/19
168.63.88.0/24
13.83.208.64/28
13.83.208.96/27
13.83.208.224/28
13.83.210.0/24
23.99.64.0/19
52.180.64.0/19
52.180.96.0/20
52.239.160.32/27
52.245.13.0/28
138.91.128.48/28
138.91.128.64/26
138.91.128.128/25
138.91.129.0/26
138.91.129.64/28
138.91.136.0/21
138.91.144.0/20
138.91.160.0/19
138.91.192.0/21
138.91.224.0/19
191.238.70.0/23
13.83.32.0/24
13.83.33.0/28
13.83.40.0/21
13.83.48.0/20
13.83.64.0/21
13.83.72.0/27
13.83.72.32/28
13.83.73.0/24
13.83.80.0/20
13.83.96.0/20
13.83.112.0/24
13.83.113.0/28
13.83.120.0/21
13.83.128.0/20
13.83.144.0/21
23.99.0.0/19
23.99.32.0/25
23.99.32.128/28
23.99.33.0/28
23.99.34.0/26
23.99.34.64/27
23.99.34.96/28
23.99.34.160/27
23.99.34.192/26
23.99.35.0/24
23.99.36.0/24
23.99.37.48/28
23.99.37.80/28
23.99.37.96/27
23.99.37.128/27
23.99.37.176/28
23.99.37.192/26
23.99.38.0/24
23.99.40.0/23
23.99.42.0/24
23.99.44.0/23
23.99.46.0/24
23.99.47.0/26
23.99.47.64/28
23.99.48.0/20
40.75.128.0/17
40.83.152.0/24
40.83.153.0/28
40.83.160.0/19
40.83.227.0/27
40.112.224.0/26
65.52.112.0/20
104.40.0.0/18
104.40.64.0/19
104.42.0.0/18
104.42.64.0/20
104.42.96.0/19
104.209.16.0/23
104.209.32.0/19
104.210.32.0/19
168.63.89.0/25
168.63.89.128/26
191.236.64.0/18
191.239.0.0/18
13.64.0.0/16
13.73.32.0/19
13.83.0.0/19
13.83.33.16/28
13.83.33.32/27
13.83.33.64/26
13.83.33.128/25
13.83.34.0/23
13.83.36.0/22
13.83.72.48/28
13.83.72.64/26
13.83.72.128/25
13.83.74.0/23
13.83.76.0/22
13.83.113.16/28
13.83.113.32/27
13.83.113.64/26
13.83.113.128/25
13.83.114.0/23
13.83.116.0/22
13.83.152.16/28
13.83.152.32/27
13.83.152.64/26
13.83.152.128/25
13.83.154.0/23
13.83.156.0/22
13.83.208.176/28
13.83.208.240/28
13.83.211.0/24
13.83.212.0/22
13.86.128.0/20
13.86.144.0/28
13.86.145.0/24
13.86.152.0/21
13.86.160.0/19
13.86.192.0/21
13.86.200.0/27
13.86.201.0/24
13.86.202.0/24
13.86.208.0/20
13.86.224.0/19
13.87.128.0/19
13.87.160.0/20
13.87.176.0/28
13.87.177.0/24
13.87.184.0/21
13.87.192.0/19
13.87.224.0/21
13.87.232.0/28
13.87.233.0/24
13.87.240.0/20
13.88.0.0/19
13.88.32.0/28
13.88.33.0/24
13.88.40.0/21
13.88.48.0/20
13.88.64.0/20
13.88.80.0/21
13.88.88.0/28
13.88.89.0/24
13.88.96.0/19
13.88.128.0/20
13.88.144.0/24
13.88.145.0/25
13.88.145.128/27
13.88.146.0/24
13.88.152.0/21
13.88.160.0/19
13.91.0.0/21
13.91.8.0/27
13.91.9.0/24
13.91.10.0/24
13.91.16.0/20
13.91.32.0/19
13.91.64.0/19
13.91.96.0/20
13.91.112.0/24
13.91.113.0/28
13.91.120.0/21
13.91.128.0/20
13.91.144.0/21
13.91.152.0/28
13.91.153.0/24
13.91.160.0/19
13.91.192.0/20
13.91.208.0/28
13.91.209.0/24
13.91.216.0/21
13.91.224.0/19
13.93.128.0/19
13.93.160.0/21
13.93.168.0/25
13.93.168.128/27
13.93.168.160/28
13.93.169.0/24
13.93.170.0/24
13.93.176.0/20
13.93.192.0/19
13.93.224.0/20
40.78.0.0/17
40.80.152.0/21
40.81.128.0/17
40.83.128.0/20
40.83.144.0/21
40.83.153.16/28
40.83.153.32/27
40.83.153.64/26
40.83.153.128/25
40.83.154.0/23
40.83.156.0/22
40.83.192.0/19
40.83.224.0/23
40.83.226.0/24
40.83.227.32/27
40.83.227.64/26
40.83.227.128/25
40.83.228.0/22
40.83.232.0/21
40.83.240.0/20
40.85.144.0/20
40.86.160.0/19
40.112.128.0/18
40.112.192.0/19
40.112.224.64/26
40.112.224.128/25
40.112.225.0/24
40.112.226.0/23
40.112.228.0/22
40.112.232.0/21
40.112.240.0/20
40.118.128.0/17
52.160.25.16/28
52.160.26.0/24
52.160.32.0/20
52.160.48.0/21
52.160.56.32/28
52.160.56.64/27
52.160.56.96/28
52.160.57.0/24
52.160.64.0/19
52.160.96.0/20
52.160.112.0/28
52.160.113.0/24
52.160.114.0/24
52.160.115.0/28
52.160.120.0/21
52.160.128.0/21
52.160.144.0/20
52.160.160.0/19
52.160.192.0/20
52.160.208.0/28
52.160.208.32/27
52.160.224.0/20
52.160.240.0/24
52.160.241.0/28
52.160.248.0/21
52.180.40.0/27
52.180.40.32/28
104.42.128.0/17
52.153.32.0/19
52.155.32.0/19
52.157.0.0/19
52.157.32.0/21
52.190.128.0/28
52.190.129.0/24
52.190.136.0/21
52.190.144.0/20
52.190.160.0/21
52.190.168.0/27
52.190.169.0/24
52.190.170.0/24
52.190.176.0/20
52.190.192.0/19
52.190.224.0/20
52.190.240.0/25
52.190.240.128/27
52.190.241.0/24
52.190.248.0/21
52.225.0.0/19
52.225.32.0/21
52.225.40.0/25
52.225.41.0/24
52.225.42.0/24
52.225.48.0/20
52.225.64.0/19
52.234.0.0/19
52.234.32.0/20
52.234.48.0/28
52.234.56.0/21
52.234.64.0/19
52.234.96.0/20
52.234.112.0/28
52.234.113.0/24
52.234.120.0/21
52.238.0.0/19
52.238.32.0/21
52.238.40.0/28
52.238.48.0/21
52.238.56.0/25
52.238.56.128/26
52.239.0.0/19
52.239.32.0/20
52.239.104.0/27
52.239.104.32/28
52.239.106.0/24
52.239.107.0/28
52.239.160.64/26
52.239.160.128/25
52.239.161.0/26
52.239.161.64/27
52.241.0.0/19
52.241.33.0/24
52.241.40.0/24
52.241.48.0/20
52.241.64.0/20
52.241.80.0/21
52.241.88.0/26
52.241.88.64/27
52.241.96.0/19
52.241.128.0/20
52.241.152.0/21
52.241.160.0/19
52.241.240.0/24
52.241.248.0/21
52.245.12.16/28
52.245.12.32/27
52.245.12.64/26
52.245.12.160/27
52.245.12.192/26
52.245.14.16/28
52.245.14.32/27
52.245.14.80/28
52.245.14.96/28
52.246.0.0/19
52.246.32.0/21
52.246.40.0/24
52.246.48.0/20
52.246.64.0/19
52.246.96.0/24
52.246.104.0/21
52.246.112.0/20
52.248.128.0/20
52.248.144.0/24
52.248.152.0/21
52.248.160.0/20
52.248.176.0/21
52.248.232.0/24
52.248.240.0/20
52.250.192.0/20
52.253.132.0/22
52.254.128.0/21
52.254.248.0/21
52.159.128.0/24
52.159.136.0/21
52.159.144.0/20
52.159.160.0/20
52.159.176.0/21
52.245.15.0/28
23.98.54.0/24
23.100.72.0/21
23.100.224.0/20
40.116.0.0/28
40.116.0.32/27
40.116.1.0/24
40.116.24.0/21
40.116.32.0/21
40.116.40.0/28
40.116.40.32/27
40.116.41.0/24
40.116.64.0/20
40.116.120.0/27
40.116.120.32/28
40.116.120.64/27
40.116.120.96/28
40.116.120.128/27
40.116.120.160/28
40.116.120.192/27
40.116.121.0/24
40.116.177.0/24
40.116.232.0/26
40.116.232.80/28
40.116.232.96/27
40.116.232.128/27
40.116.233.0/24
40.116.234.0/24
40.116.236.0/24
40.116.237.0/28
40.116.238.0/24
52.162.64.0/19
65.52.0.0/19
65.52.48.0/20
65.52.106.16/28
65.52.192.0/19
65.52.232.0/21
65.52.240.0/21
157.55.24.0/21
157.55.60.224/27
157.55.73.32/28
157.55.136.0/21
157.55.160.0/20
157.55.208.0/21
157.55.252.0/22
157.56.8.0/21
157.56.24.160/27
157.56.24.192/28
157.56.28.0/22
168.62.96.0/27
168.62.96.32/28
168.62.96.64/26
168.62.96.128/25
168.62.97.0/25
168.62.97.128/27
168.62.97.176/28
168.62.98.0/23
168.62.100.0/22
168.62.104.0/21
168.62.112.0/20
168.62.224.0/20
168.62.240.0/21
168.62.248.0/22
191.233.144.0/24
207.46.192.0/24
207.46.193.0/25
207.46.193.144/28
207.46.193.160/27
207.46.193.192/26
207.46.196.0/23
207.46.198.0/24
207.46.199.0/26
207.46.199.64/27
207.46.199.128/25
207.46.200.32/27
207.46.200.64/28
207.46.200.96/27
207.46.200.128/25
207.46.201.0/24
207.46.202.0/24
207.46.203.0/26
207.46.203.128/26
207.46.203.192/27
207.46.204.0/22
209.240.220.0/23
23.96.176.0/20
23.96.192.0/18
23.98.48.0/28
23.98.48.80/28
23.98.48.96/27
23.98.48.160/28
23.98.48.192/26
23.98.49.0/26
23.98.49.96/28
23.98.49.160/28
23.98.49.192/26
23.98.50.0/23
23.98.52.0/23
23.98.55.0/24
23.101.160.0/20
191.233.168.0/21
191.233.176.0/21
191.236.128.0/18
52.162.16.0/28
52.162.32.0/20
52.162.48.0/21
52.162.56.0/25
52.162.56.128/27
52.162.57.0/24
52.162.96.0/19
52.162.128.0/24
52.162.136.0/21
52.162.144.0/20
52.162.160.0/21
52.162.168.0/28
52.162.169.0/24
52.162.176.0/20
52.162.192.0/19
52.162.224.0/28
52.162.225.0/24
52.162.232.0/21
52.162.240.0/20
52.237.128.0/20
52.237.144.0/27
52.237.144.32/28
52.237.146.0/23
52.237.152.0/21
52.237.160.0/21
52.237.168.0/26
52.237.168.64/28
52.237.169.0/24
52.237.172.0/22
52.237.176.0/20
52.239.149.64/26
52.239.149.128/26
52.240.128.0/19
52.245.74.0/26
52.252.128.0/18
52.252.192.0/19
52.253.144.0/22
65.55.32.0/25
65.55.32.128/26
65.55.32.192/27
65.55.32.240/28
65.55.33.0/25
65.55.33.128/27
65.55.33.160/28
65.55.33.208/28
65.55.33.224/27
65.55.34.0/23
65.55.36.0/23
65.55.38.0/24
65.55.39.0/25
65.55.39.128/28
65.55.39.160/27
65.55.39.192/26
65.55.83.160/27
70.37.0.0/22
70.37.8.0/21
70.37.16.0/20
70.37.40.0/21
209.240.212.0/23
209.240.218.0/23
209.240.222.0/23
13.66.128.0/19
13.66.160.0/20
13.66.176.0/26
13.66.176.64/28
13.66.177.0/24
13.66.184.0/21
13.66.192.0/19
13.66.224.0/21
13.66.232.0/26
13.66.232.64/28
13.66.232.128/28
13.66.232.192/26
13.66.233.0/24
13.66.234.0/27
13.66.234.32/28
13.66.235.0/24
13.66.240.0/20
13.77.128.0/28
13.77.129.0/24
13.77.136.0/21
13.77.144.0/20
13.77.160.0/20
13.77.176.0/21
13.77.184.0/26
13.77.184.64/27
13.77.185.0/24
51.141.160.0/21
51.141.168.0/23
51.141.172.0/22
51.141.176.0/22
51.141.184.0/22
51.141.188.0/23
51.143.0.0/20
51.143.16.0/21
51.143.24.0/24
51.143.32.0/19
51.143.80.0/24
51.143.88.0/21
51.143.96.0/19
52.137.64.0/18
52.143.64.0/19
52.156.64.0/18
52.156.128.0/19
52.158.224.0/21
52.175.192.0/18
52.183.0.0/19
52.183.32.0/20
52.183.48.0/27
52.183.56.0/21
52.183.64.0/19
52.183.96.0/21
52.183.104.0/27
52.183.104.32/28
52.183.112.0/20
52.191.128.0/19
52.191.160.0/20
52.191.176.0/26
52.191.177.0/24
52.191.184.0/21
52.229.0.0/19
52.229.32.0/21
52.229.40.0/28
52.229.41.0/24
52.229.48.0/20
52.233.64.0/19
52.235.88.0/21
52.235.96.0/19
52.239.148.128/26
52.239.148.192/27
52.245.52.32/27
52.245.54.0/26
52.245.54.64/27
52.245.54.96/28
52.245.54.128/26
52.245.54.192/28
52.246.240.0/24
52.246.248.0/21
52.247.192.0/19
52.247.224.0/20
52.250.0.0/18
52.250.64.0/19
52.250.96.0/24
52.250.104.0/21
52.250.112.0/20
52.253.128.0/22
13.70.209.0/24
40.90.141.128/27
40.113.24.0/24
52.155.64.0/19
52.155.240.0/24
52.155.248.0/21
52.156.192.0/21
52.164.233.0/24
52.169.170.0/24
52.178.224.0/24
52.239.136.32/27
52.245.43.16/28
52.245.43.48/28
65.52.64.0/20
65.52.224.0/21
94.245.88.0/21
94.245.104.0/21
94.245.112.32/27
94.245.112.64/26
94.245.112.128/25
94.245.113.0/24
94.245.116.0/27
94.245.116.32/28
94.245.116.64/26
94.245.116.128/25
94.245.120.0/25
94.245.120.128/28
94.245.120.160/27
94.245.120.192/26
94.245.121.0/24
94.245.122.0/24
94.245.123.0/25
94.245.123.128/27
94.245.123.176/28
94.245.123.192/26
94.245.124.0/22
104.41.233.0/24
104.44.88.64/27
104.44.91.64/27
104.44.94.32/28
137.116.224.0/19
168.61.80.0/20
168.61.96.0/19
168.63.32.0/26
168.63.32.96/27
168.63.32.128/25
168.63.33.0/27
168.63.33.32/28
168.63.33.64/26
168.63.33.128/25
168.63.34.0/23
168.63.36.0/22
168.63.40.0/21
168.63.48.0/20
168.63.64.0/20
168.63.80.0/21
168.63.92.0/22
193.149.88.0/21
213.199.160.0/20
213.199.184.0/21
23.100.48.0/20
23.101.48.0/20
23.102.0.0/18
40.127.128.0/18
104.45.80.0/20
104.45.96.0/19
137.135.128.0/20
137.135.160.0/19
137.135.192.48/28
137.135.192.64/26
137.135.192.128/28
137.135.192.160/27
137.135.192.192/26
137.135.193.0/24
137.135.194.0/23
137.135.196.0/22
137.135.200.0/21
137.135.208.0/20
137.135.224.0/19
138.91.48.0/20
191.235.128.0/18
191.235.192.0/27
191.235.192.64/26
191.235.192.128/25
191.235.193.0/26
191.235.193.64/27
191.235.193.96/28
191.235.193.128/25
191.235.194.0/23
191.235.208.0/20
191.235.255.0/28
191.235.255.32/27
191.235.255.128/27
191.235.255.192/26
191.237.192.0/23
191.237.194.0/24
191.237.196.0/28
191.237.208.0/20
191.238.96.0/19
191.239.208.0/20
13.69.128.0/17
13.70.192.0/20
13.70.208.0/25
13.70.208.128/27
13.70.208.176/28
13.70.208.192/26
13.70.210.0/23
13.70.212.0/22
13.70.232.0/21
13.70.240.0/20
13.74.0.16/28
13.74.0.32/27
13.74.0.64/26
13.74.0.128/25
13.74.3.0/24
13.74.4.0/22
13.74.72.160/27
13.74.72.192/26
13.74.75.64/26
13.74.75.128/25
13.74.76.0/24
13.74.77.16/28
13.74.77.32/27
13.74.77.64/26
13.74.77.128/25
13.74.79.16/28
13.74.79.32/27
13.74.79.64/26
13.74.79.128/25
13.74.192.0/18
13.79.0.0/17
13.79.176.128/25
13.79.178.0/23
13.79.180.0/22
13.79.249.32/27
13.79.249.64/26
13.79.249.128/25
13.79.251.0/24
13.79.252.0/22
40.74.144.0/20
40.79.128.0/17
40.85.0.0/17
40.85.128.0/20
40.87.128.0/19
40.112.36.0/26
40.112.64.0/19
40.113.0.0/20
40.113.16.0/21
40.113.25.0/24
40.113.26.0/23
40.113.28.0/22
40.113.32.0/19
40.113.64.0/19
40.115.96.0/19
40.127.96.0/20
40.127.192.0/18
104.41.192.0/19
104.41.224.0/21
104.41.232.0/24
104.41.234.0/23
104.41.236.0/22
104.41.240.0/20
104.46.8.0/21
104.46.64.0/19
13.79.176.112/28
13.74.152.0/21
13.74.0.0/28
13.74.1.0/24
13.74.2.0/24
13.74.8.0/21
13.74.16.0/20
13.74.32.0/19
13.74.64.0/21
13.74.72.0/25
13.74.72.128/27
13.74.73.0/24
13.74.74.0/24
13.74.75.0/26
13.74.77.0/28
13.74.78.0/24
13.74.79.0/28
13.74.80.0/20
13.74.96.0/19
13.74.128.0/20
13.74.144.0/21
13.74.160.0/19
13.79.128.0/19
13.79.160.0/20
13.79.176.0/26
13.79.176.64/27
13.79.176.96/28
13.79.177.0/24
13.79.184.0/21
13.79.192.0/19
13.79.224.0/20
13.79.240.0/21
13.79.248.0/24
13.79.249.0/27
13.79.250.0/24
13.94.64.0/18
40.69.0.0/19
40.69.32.0/20
40.69.48.0/28
40.69.49.0/24
40.69.56.0/21
40.69.64.0/19
40.69.192.0/19
52.164.112.0/27
52.164.112.32/28
52.164.113.0/24
52.164.120.0/21
52.164.176.0/28
52.164.177.0/24
52.164.184.0/21
52.164.192.0/19
52.164.224.0/21
52.164.232.0/26
52.164.232.64/28
52.164.240.0/20
52.169.0.0/19
52.169.32.0/20
52.169.48.0/21
52.169.56.16/28
52.169.57.0/24
52.169.64.0/19
52.169.96.0/28
52.169.97.0/24
52.169.104.0/21
52.169.112.0/20
52.169.128.0/19
52.169.160.0/21
52.169.168.0/26
52.169.169.0/24
52.169.176.0/20
52.169.192.0/19
52.169.224.0/20
52.169.240.0/26
52.169.240.64/27
52.169.241.0/24
52.169.248.0/21
52.178.128.0/19
52.178.160.0/21
52.178.168.0/27
52.178.168.64/26
52.178.168.128/27
52.178.168.160/28
52.178.168.192/27
52.178.168.224/28
52.178.169.0/24
52.178.170.0/23
52.178.172.0/22
52.178.176.0/20
52.178.192.0/19
52.236.32.0/21
52.236.40.0/27
52.236.40.32/28
52.236.41.0/24
52.236.42.0/23
52.236.44.0/22
52.236.48.0/20
52.236.64.0/19
52.239.136.0/27
52.245.40.0/26
52.245.40.64/27
52.245.41.0/28
52.245.42.0/26
52.253.184.0/22
52.138.128.0/24
52.138.136.0/21
52.138.144.0/20
52.138.160.0/20
52.138.176.0/21
52.245.89.0/28
23.100.80.0/21
23.100.240.0/20
23.101.112.0/20
168.61.128.0/28
168.61.128.32/27
168.61.128.64/26
168.61.128.128/27
168.61.128.192/26
168.61.129.0/24
168.61.130.0/23
168.61.132.0/22
168.61.136.0/21
168.61.144.0/20
168.61.160.0/19
168.61.192.0/18
193.149.72.0/21
23.99.128.0/19
23.99.160.0/22
23.99.164.0/23
23.99.166.0/24
23.99.167.0/27
23.99.168.0/23
23.99.176.0/20
23.99.192.0/18
40.78.128.0/19
40.113.192.0/20
40.113.208.0/24
40.113.209.0/28
40.113.216.0/21
40.113.224.0/20
40.113.240.0/21
40.113.248.0/24
40.113.249.0/28
104.43.128.0/17
23.99.167.32/27
23.99.167.64/26
23.99.167.128/25
23.99.170.0/23
23.99.172.0/22
40.78.160.0/19
40.113.209.16/28
40.113.209.32/27
40.113.209.64/26
40.113.209.128/25
40.113.210.0/23
40.113.212.0/22
40.113.249.16/28
40.113.249.32/27
40.113.249.64/26
40.113.249.128/25
40.113.250.0/23
40.113.252.0/22
40.90.140.96/27
104.44.88.160/27
40.90.144.0/27
104.44.91.160/27
104.44.94.80/28
13.86.0.0/17
13.89.0.0/18
13.89.64.0/28
13.89.65.0/24
13.89.72.0/21
13.89.80.0/20
13.89.96.0/19
13.89.128.0/20
13.89.144.0/21
13.89.152.0/28
13.89.153.0/24
40.77.0.0/17
40.86.0.0/17
52.165.0.0/19
52.165.32.0/20
52.165.48.0/28
52.165.49.0/24
52.165.56.0/21
52.165.64.0/19
52.165.96.0/21
52.165.104.0/25
52.253.156.0/22
13.67.128.0/20
13.67.144.0/21
13.67.152.0/24
13.67.153.0/28
13.67.153.32/27
13.67.153.64/26
13.67.153.128/25
13.67.155.0/24
13.67.156.0/22
13.67.160.0/19
13.67.192.0/18
40.122.16.0/20
40.122.32.0/19
40.122.64.0/18
40.122.128.0/17
104.208.0.0/19
104.208.32.0/20
40.83.0.0/20
40.83.16.0/21
40.83.24.0/26
40.83.24.64/27
40.83.24.128/25
40.83.25.0/24
40.83.26.0/23
40.83.28.0/22
40.83.32.0/19
40.90.137.224/27
104.44.92.224/27
13.89.160.0/19
13.89.192.0/28
13.89.193.0/24
13.89.200.0/21
13.89.208.0/20
13.89.224.0/20
13.89.240.0/21
13.89.248.0/28
13.89.249.0/24
40.69.128.0/19
40.69.160.0/20
40.69.176.0/27
40.69.176.32/28
40.69.177.0/24
40.69.184.0/21
52.165.128.0/21
52.165.136.0/27
52.165.136.32/28
52.165.136.96/28
52.165.137.0/24
52.165.138.0/24
52.165.144.0/20
52.165.160.0/19
52.165.192.0/19
52.165.224.0/20
52.165.240.0/26
52.165.240.64/27
52.165.241.0/24
52.165.248.0/21
52.173.0.0/19
52.173.32.0/21
52.173.40.0/28
52.173.41.0/24
52.173.48.0/20
52.173.64.0/19
52.173.96.0/28
52.173.97.0/24
52.173.104.0/21
52.173.112.0/20
52.173.128.0/20
52.173.144.0/21
52.173.152.0/25
52.173.153.0/24
52.173.160.0/19
52.173.192.0/20
52.173.208.0/28
52.173.209.0/24
52.173.216.0/21
52.173.224.0/19
52.176.0.0/21
52.176.8.0/27
52.176.9.0/24
52.176.10.0/24
52.176.16.0/20
52.176.32.0/19
52.176.64.0/19
52.176.96.0/20
52.176.112.0/28
52.176.113.0/24
52.176.120.0/21
52.176.128.0/19
52.176.160.0/21
52.176.176.0/20
52.176.192.0/19
52.176.224.16/28
52.176.224.64/28
52.182.176.0/26
52.182.176.64/27
52.185.56.16/28
52.230.160.0/19
52.230.240.192/28
52.230.241.0/24
52.230.248.0/21
52.238.192.0/21
52.238.200.16/28
52.238.200.32/27
52.238.202.0/24
52.239.150.64/27
52.239.150.128/27
52.239.150.192/27
52.239.151.0/26
52.239.151.128/27
52.242.128.0/19
52.242.160.0/20
52.242.176.0/27
52.242.177.0/24
52.242.184.0/21
52.242.192.0/19
52.242.224.0/21
52.245.68.0/28
52.245.68.32/27
52.245.68.64/27
52.245.68.112/28
52.245.68.128/28
52.245.68.160/28
52.245.68.224/28
52.154.0.0/18
52.154.128.0/17
52.176.224.0/28
52.176.224.32/27
52.176.224.80/28
52.176.224.96/28
52.180.184.0/27
52.180.184.32/28
52.180.185.0/24
52.182.128.0/19
52.182.160.0/20
52.182.176.96/28
52.182.177.0/24
52.182.184.0/21
52.182.192.0/19
52.182.224.0/21
52.182.240.0/20
52.185.0.0/19
52.185.32.0/20
52.185.48.0/21
52.185.56.0/28
52.185.56.32/27
52.185.56.64/27
52.185.56.96/28
52.185.56.128/27
52.185.56.160/28
52.185.64.0/20
52.185.80.0/26
52.185.81.0/24
52.185.88.0/21
52.185.96.0/20
52.185.112.0/26
52.185.112.96/27
52.185.120.0/21
52.189.0.0/18
52.189.64.0/20
52.189.80.0/21
52.189.88.0/28
52.189.89.0/24
52.189.96.0/19
52.228.128.0/19
52.228.160.0/20
52.228.176.0/28
52.228.177.0/24
52.228.184.0/21
52.228.192.0/19
52.228.224.0/21
52.228.232.0/28
52.228.240.0/20
52.230.128.0/19
52.230.192.0/19
52.230.224.0/20
52.230.240.0/25
52.230.240.128/26
52.238.200.0/28
52.238.201.0/24
52.238.208.0/20
52.238.224.0/19
52.239.150.160/27
52.239.150.224/27
52.239.151.64/26
52.239.151.160/27
52.242.232.0/23
52.242.240.0/20
52.245.68.16/28
52.245.68.96/28
52.245.68.144/28
52.245.68.176/28
52.245.68.192/27
52.245.68.240/28
52.255.0.0/19
23.98.32.0/21
23.98.40.0/22
23.100.88.0/21
23.101.0.0/20
65.52.160.0/19
104.46.24.0/24
104.46.26.0/24
104.46.160.0/19
111.221.64.0/22
111.221.69.0/25
134.170.192.0/21
137.116.160.0/20
168.63.128.0/26
168.63.128.96/27
168.63.128.128/25
168.63.129.0/26
168.63.129.80/28
168.63.129.96/27
168.63.129.128/25
168.63.130.0/23
168.63.132.0/22
168.63.136.0/21
168.63.144.0/20
168.63.192.0/19
207.46.87.0/24
207.46.89.16/28
207.46.95.48/28
207.46.128.0/19
13.70.0.0/18
13.72.192.0/19
13.75.0.0/17
13.88.208.0/20
13.94.0.0/19
13.94.32.0/20
13.94.48.0/28
13.94.49.0/24
13.94.56.0/21
23.97.64.0/20
23.97.80.0/28
23.98.44.0/24
23.99.96.0/19
23.102.224.0/19
40.83.64.0/18
52.175.0.0/19
52.175.32.0/21
52.175.40.0/28
52.175.40.64/26
52.175.40.128/28
52.175.41.0/24
52.175.42.0/24
52.175.43.0/28
52.175.43.64/28
52.175.44.0/24
52.175.48.0/20
52.175.64.0/19
52.175.96.0/20
52.175.112.0/27
52.175.112.32/28
52.175.113.0/24
52.175.120.0/21
52.184.0.0/19
52.184.32.0/21
52.184.40.0/26
52.184.40.64/28
52.184.41.0/24
52.184.42.0/24
52.184.48.0/20
52.184.64.0/19
52.184.96.0/20
52.229.128.0/19
52.229.160.0/20
52.229.176.0/28
52.229.177.0/24
52.229.184.0/21
52.229.192.0/19
52.229.224.0/21
52.229.232.0/24
52.229.240.0/20
52.245.56.0/28
52.253.216.0/22
104.46.25.0/24
104.46.27.0/24
104.208.80.0/20
104.208.96.0/19
191.234.2.16/28
191.234.2.64/27
191.234.2.128/26
191.234.3.0/24
191.234.16.0/20
191.237.238.0/28
191.237.238.32/27
191.237.238.64/27
191.237.238.112/28
13.76.234.0/24
13.76.236.0/24
23.97.48.0/20
23.100.112.0/21
23.101.16.0/20
104.43.41.0/24
104.46.128.0/19
104.215.201.0/24
111.221.80.0/20
111.221.96.0/20
137.116.128.0/19
138.91.32.0/20
168.63.160.0/26
168.63.160.96/27
168.63.160.128/27
168.63.160.192/26
168.63.161.0/27
168.63.161.32/28
168.63.161.64/26
168.63.161.128/25
168.63.162.0/25
168.63.162.128/27
168.63.162.176/28
168.63.162.192/26
168.63.163.0/25
168.63.163.128/26
168.63.163.224/27
168.63.164.0/22
168.63.168.0/21
168.63.176.0/22
168.63.180.0/24
168.63.181.48/28
168.63.181.64/26
168.63.181.128/25
168.63.182.0/23
168.63.184.0/21
168.63.224.0/19
207.46.48.0/26
207.46.48.128/27
207.46.48.160/30
207.46.48.176/28
207.46.48.192/27
207.46.48.224/28
207.46.48.244/30
207.46.48.248/30
207.46.49.0/25
207.46.50.0/24
207.46.51.0/30
207.46.51.12/30
207.46.51.16/28
207.46.51.32/27
207.46.51.64/27
207.46.51.128/26
207.46.51.192/27
207.46.51.224/28
207.46.51.240/29
207.46.51.252/30
207.46.52.0/24
207.46.53.0/25
207.46.53.128/26
207.46.53.200/32
207.46.53.208/28
207.46.53.232/29
207.46.53.240/28
207.46.54.0/28
207.46.54.16/30
207.46.54.32/27
207.46.54.64/28
207.46.54.96/27
207.46.54.128/26
207.46.54.192/27
207.46.55.0/24
207.46.56.0/24
207.46.58.0/24
207.46.59.0/26
207.46.59.128/25
207.46.60.0/23
207.46.62.0/24
207.46.63.0/26
207.46.63.80/28
207.46.63.96/27
207.46.63.128/25
23.98.64.0/20
168.63.90.0/27
191.238.64.32/28
191.238.64.48/28
191.238.64.64/26
191.238.64.128/25
207.46.224.0/20
13.67.0.0/17
13.76.0.0/17
13.76.128.0/18
13.76.192.0/19
13.76.224.0/21
13.76.232.0/26
13.76.232.80/28
13.76.232.112/28
13.76.232.128/25
13.76.233.0/24
13.76.235.0/24
13.76.237.0/24
13.76.238.0/23
13.76.240.0/20
52.163.48.0/20
52.163.64.0/18
52.163.176.0/27
52.163.176.32/28
52.163.177.0/24
52.163.184.0/21
52.163.192.0/19
52.163.224.0/21
52.163.232.0/27
52.163.240.0/20
52.187.0.0/18
52.187.64.0/20
52.187.80.0/28
52.187.81.0/24
52.187.88.0/21
52.187.96.0/19
52.187.128.0/21
52.187.136.0/28
52.187.137.0/24
52.187.138.0/24
52.187.139.0/28
52.187.140.0/24
52.187.141.0/26
52.187.141.64/28
52.187.142.0/24
52.187.144.0/20
52.187.160.0/19
52.230.0.0/18
52.230.64.0/19
52.230.96.0/20
52.230.112.0/26
52.230.113.0/24
52.230.120.0/21
52.237.64.0/19
52.237.96.0/21
52.237.104.0/26
52.237.105.0/24
52.237.106.0/23
52.237.108.0/23
52.237.112.0/20
52.239.129.32/27
52.239.129.128/27
52.245.80.0/27
52.245.80.32/28
52.245.80.80/28
52.253.80.0/20
52.253.212.0/22
104.43.0.0/28
104.43.1.0/24
104.43.8.0/21
104.43.16.0/20
104.43.32.0/21
104.43.64.0/20
104.43.80.0/27
104.43.120.0/28
104.43.121.0/24
104.215.128.0/19
104.215.160.0/28
104.215.161.0/24
104.215.168.0/21
104.215.176.0/20
104.215.192.0/21
104.215.224.0/20
104.215.240.0/25
104.215.240.128/27
104.215.240.160/28
104.215.240.192/27
104.215.248.0/21
13.85.89.0/24
13.85.202.0/24
23.98.174.0/24
23.98.208.0/23
40.84.240.0/24
65.52.32.0/21
65.54.48.0/22
65.54.52.0/26
65.54.52.64/27
65.54.52.128/25
65.54.53.0/24
65.55.82.0/24
65.55.83.0/25
65.55.84.0/24
65.55.85.0/28
65.55.86.0/24
65.55.87.0/24
65.55.91.0/24
65.55.92.0/23
65.55.94.0/24
65.55.95.0/26
65.55.95.64/27
65.55.95.128/25
70.37.48.0/20
70.37.64.0/19
70.37.96.0/20
70.37.112.0/22
70.37.116.0/23
70.37.118.0/24
70.37.119.128/26
70.37.119.224/27
70.37.120.0/22
70.37.124.0/23
70.37.126.0/26
70.37.126.64/27
70.37.126.128/27
70.37.126.192/26
70.37.127.0/26
70.37.127.240/28
70.37.160.0/21
104.47.208.0/23
157.55.80.0/21
157.55.103.32/27
157.55.153.224/28
157.55.176.0/20
157.55.192.0/21
157.55.200.0/22
168.62.128.0/28
168.62.128.32/27
168.62.128.64/26
168.62.128.128/26
168.62.128.224/27
168.62.129.0/24
168.62.130.0/23
168.62.132.0/22
168.62.136.0/21
168.62.144.0/20
13.65.48.16/28
13.65.48.32/27
13.65.48.64/26
13.65.48.128/25
13.65.50.0/23
13.65.52.0/22
13.65.104.112/28
13.65.104.176/28
13.65.104.240/28
13.65.105.48/28
13.65.105.96/27
13.65.105.128/25
13.65.107.48/28
13.65.107.64/26
13.65.107.128/25
13.65.109.16/28
13.65.109.32/27
13.65.109.64/26
13.65.109.128/25
13.65.110.0/23
13.65.128.0/17
13.66.32.0/21
13.66.64.0/19
23.98.128.0/19
23.98.160.16/28
23.98.160.32/27
23.98.160.64/26
23.98.160.160/28
23.98.160.208/28
23.98.161.0/24
23.98.162.32/28
23.98.162.64/26
23.98.162.128/27
23.98.162.176/28
23.98.162.192/26
23.98.164.0/23
23.98.167.0/24
23.98.169.0/24
23.98.170.0/28
23.98.170.32/27
23.98.170.64/26
23.98.170.128/25
23.98.171.0/24
23.98.173.0/24
23.98.175.0/24
23.98.176.0/20
23.98.192.0/28
23.98.192.64/26
23.98.210.0/23
23.98.212.0/22
23.98.216.0/21
23.98.255.0/27
23.98.255.32/28
23.98.255.64/26
23.100.120.0/21
23.100.192.0/19
23.101.176.0/20
23.102.128.0/18
40.74.160.0/20
40.74.192.0/18
52.171.192.0/19
52.171.224.0/20
104.44.128.0/19
104.210.128.0/19
104.210.184.0/21
104.210.192.0/19
104.214.0.0/17
191.238.136.0/21
191.238.144.0/20
191.238.160.0/19
191.238.224.0/19
13.66.0.0/19
13.84.0.16/28
13.84.0.32/27
13.84.0.64/26
13.84.0.128/25
13.84.2.0/23
13.84.4.0/22
13.84.56.48/28
13.84.56.64/26
13.84.56.128/25
13.84.58.0/23
13.84.60.0/22
13.84.193.16/28
13.84.193.32/27
13.84.193.64/26
13.84.193.128/25
13.84.194.0/23
13.84.196.0/22
13.84.232.16/28
13.84.232.32/27
13.84.232.64/26
13.84.232.128/25
13.84.234.0/23
13.84.236.0/22
13.85.32.16/28
13.85.32.32/27
13.85.32.64/26
13.85.32.128/25
13.85.34.0/23
13.85.36.0/22
13.85.88.48/28
13.85.88.64/26
13.85.88.128/25
13.85.90.0/23
13.85.92.0/22
13.85.144.16/28
13.85.144.32/27
13.85.144.64/26
13.85.144.128/25
13.85.146.0/23
13.85.148.0/22
13.85.200.48/28
13.85.200.160/27
13.85.200.192/26
13.85.201.0/24
13.85.203.0/24
13.85.204.0/22
13.85.208.0/20
13.85.224.0/19
40.74.176.0/20
40.80.160.0/19
40.80.192.0/18
40.84.128.0/18
40.84.192.0/19
40.84.224.0/20
40.84.241.16/28
40.84.241.32/27
40.84.241.64/26
40.84.241.128/25
40.84.242.0/23
40.84.244.0/22
40.86.136.0/21
40.86.144.0/20
40.124.0.0/18
104.215.64.0/18
13.65.0.0/19
13.65.32.0/20
13.65.48.0/28
13.65.49.0/24
13.65.56.0/21
13.65.64.0/19
13.65.96.0/21
13.65.104.16/28
13.65.104.64/27
13.65.104.96/28
13.65.104.128/27
13.65.104.160/28
13.65.104.192/27
13.65.104.224/28
13.65.105.0/27
13.65.105.32/28
13.65.105.64/27
13.65.106.0/24
13.65.107.0/27
13.65.107.32/28
13.65.108.0/24
13.65.109.0/28
13.65.112.0/20
13.66.48.0/20
13.66.96.0/19
13.84.0.0/28
13.84.1.0/24
13.84.8.0/21
13.84.16.0/20
13.84.32.0/20
13.84.48.0/21
13.84.56.0/27
13.84.56.32/28
13.84.57.0/24
13.84.104.0/21
13.84.112.0/20
13.84.128.0/18
13.84.192.0/24
13.84.193.0/28
13.84.200.0/21
13.84.208.0/20
13.84.224.0/21
13.84.232.0/28
13.84.233.0/24
13.84.240.0/20
13.85.0.0/19
13.85.32.0/28
13.85.33.0/24
13.85.40.0/21
13.85.48.0/20
13.85.64.0/20
13.85.80.0/21
13.85.88.0/27
13.85.144.0/28
13.85.145.0/24
13.85.152.0/21
13.85.160.0/19
13.85.192.0/21
13.85.200.64/26
13.85.200.128/28
52.152.0.0/18
52.152.64.0/19
52.152.96.0/20
52.153.88.0/21
52.153.96.0/19
52.153.192.0/18
52.171.0.0/20
52.171.16.0/21
52.171.24.16/28
52.171.25.0/24
52.171.32.0/19
52.171.80.0/20
52.171.96.0/19
52.171.128.0/20
52.171.144.16/28
52.171.144.32/27
52.171.144.64/26
52.171.144.128/27
52.171.146.0/24
52.183.192.0/19
52.183.224.0/20
52.183.240.0/28
52.183.241.0/24
52.183.248.0/21
52.185.192.0/19
52.185.224.0/21
52.185.232.0/28
52.185.233.0/24
52.185.240.0/20
52.189.128.0/19
52.189.176.0/26
52.189.176.64/28
52.189.177.0/24
52.189.178.0/23
52.189.180.0/22
52.189.184.0/21
52.239.158.0/27
52.239.158.64/27
52.239.158.128/25
52.239.159.0/27
52.239.178.0/23
52.239.180.0/22
52.245.24.0/28
52.245.25.0/28
52.245.25.32/27
52.245.25.64/26
52.245.25.128/25
52.245.26.0/28
52.245.26.32/27
52.245.26.64/27
52.245.26.128/28
52.248.0.0/24
52.248.8.0/21
52.248.16.0/20
52.248.32.0/20
52.248.48.0/21
52.248.56.0/24
52.248.64.0/18
52.249.0.0/19
52.249.32.0/21
52.249.40.0/23
52.249.48.0/20
52.253.0.0/19
52.253.32.0/20
52.253.48.0/24
52.253.56.0/21
52.253.140.0/22
52.255.64.0/19
52.255.96.0/21
52.255.104.0/23
52.255.112.0/20
23.98.56.0/26
23.98.56.96/28
23.98.56.128/26
23.100.104.0/21
40.74.64.0/19
52.239.146.0/27
52.245.92.0/28
104.46.224.0/20
138.91.16.0/20
191.233.32.0/19
191.237.236.0/24
191.238.80.0/21
191.238.88.0/22
191.238.92.0/23
13.73.232.0/21
40.74.96.0/19
40.74.128.0/20
40.80.64.0/18
40.80.128.0/20
52.175.128.0/19
52.253.172.0/22
104.214.128.0/19
104.215.0.0/18
191.238.68.0/26
191.239.96.0/20
23.98.57.0/27
23.98.57.64/26
23.98.57.128/27
23.100.96.0/21
104.46.208.0/20
138.91.0.0/20
191.234.138.0/24
13.71.128.0/19
13.73.0.0/19
13.78.0.0/17
23.102.64.0/20
23.102.80.0/24
40.115.128.0/17
52.155.96.0/19
52.156.32.0/20
52.156.48.0/21
52.156.56.0/23
52.185.128.0/18
52.239.144.0/26
52.243.32.0/20
52.243.48.0/28
52.243.49.0/24
52.243.50.0/23
52.243.52.0/24
52.243.56.0/21
52.245.36.0/25
52.246.160.0/19
52.253.176.0/22
104.41.160.0/19
191.237.240.0/26
191.237.240.64/28
191.237.241.0/24
23.97.96.0/20
23.97.112.0/27
23.97.112.64/26
23.97.112.128/28
104.41.0.0/18
191.232.32.0/19
191.232.192.0/20
191.237.248.0/21
191.239.240.0/20
191.232.160.0/19
191.232.208.0/21
191.232.216.0/26
191.232.216.64/28
191.232.217.0/24
191.232.218.0/24
191.232.219.0/26
191.232.220.0/24
191.232.221.0/27
191.232.221.32/28
191.232.222.0/24
191.232.224.0/28
191.232.225.0/24
191.232.232.0/21
191.232.240.0/20
191.233.128.0/26
191.233.132.0/27
191.233.132.32/28
191.233.132.64/28
191.233.136.0/21
191.233.192.0/19
191.233.224.0/24
191.233.232.0/21
191.233.240.0/20
191.234.160.0/19
191.235.64.0/18
13.70.64.0/18
13.72.224.0/19
13.73.192.0/20
13.75.128.0/17
23.101.208.0/20
40.78.192.0/19
40.126.224.0/19
52.187.192.0/20
52.187.208.0/21
52.187.216.0/28
52.187.217.0/24
52.187.224.0/19
52.232.136.0/21
52.237.192.0/19
52.237.224.0/24
52.237.232.0/21
52.237.240.0/20
52.239.130.0/25
52.245.16.0/26
52.245.16.64/28
52.253.208.0/22
104.46.29.0/24
104.46.30.0/23
104.46.240.0/20
104.209.80.0/20
104.210.64.0/18
191.238.66.0/25
191.238.66.128/27
191.238.66.160/28
191.238.67.0/24
191.239.64.0/19
13.70.128.0/18
13.73.96.0/19
13.77.0.0/18
23.101.224.0/19
40.78.224.0/19
40.115.64.0/19
40.127.64.0/19
52.189.192.0/21
52.189.200.0/24
52.189.201.0/28
52.189.208.0/20
52.189.224.0/20
52.189.240.0/24
52.189.248.0/21
52.239.132.0/26
52.239.132.64/27
52.243.64.0/19
52.243.96.0/20
52.243.112.0/21
52.243.120.0/24
52.245.20.0/26
52.253.204.0/22
104.46.28.0/24
104.209.64.0/20
191.239.160.0/19
191.239.192.0/25
191.239.192.128/27
191.239.192.160/28
191.239.192.192/27
191.239.193.0/24
191.239.194.0/24
191.239.195.0/28
13.71.0.0/18
52.140.64.0/19
52.172.128.0/18
52.172.192.0/19
52.245.96.0/28
52.253.168.0/22
104.47.210.0/23
104.211.64.0/18
52.183.128.0/20
52.183.144.0/28
52.183.145.0/24
52.183.152.0/21
52.183.160.0/20
52.183.176.0/21
52.183.184.0/24
52.239.135.192/26
52.245.76.0/27
52.245.76.32/28
52.249.64.0/19
52.253.160.0/22
104.47.212.0/23
104.211.128.0/18
13.71.64.0/18
52.172.0.0/20
52.172.16.64/26
52.172.16.128/27
52.172.16.160/28
52.172.17.0/24
52.172.24.0/21
52.172.32.0/19
52.172.64.0/21
52.239.135.128/27
52.245.84.0/28
52.253.164.0/22
104.47.214.0/23
104.211.192.0/18
40.69.96.0/19
40.86.192.0/18
52.155.0.0/19
52.229.64.0/20
52.229.80.0/25
52.229.81.0/24
52.229.82.0/24
52.229.88.0/21
52.229.96.0/19
52.232.128.0/21
52.235.0.0/19
52.235.32.0/20
52.235.48.0/28
52.235.49.0/24
52.235.56.0/21
52.239.164.128/26
52.242.0.0/19
52.242.32.0/21
52.242.48.0/20
52.245.32.0/27
52.253.196.0/22
13.71.160.0/19
13.88.224.0/19
40.85.192.0/18
52.138.0.0/19
52.138.32.0/20
52.156.0.0/19
52.228.0.0/19
52.228.32.0/20
52.228.48.0/26
52.228.48.64/28
52.228.49.0/24
52.228.50.0/24
52.228.56.0/21
52.228.64.0/21
52.233.0.0/19
52.233.32.0/20
52.233.48.0/28
52.233.49.0/24
52.233.56.0/21
52.237.0.0/19
52.237.32.0/21
52.237.41.0/24
52.237.42.0/24
52.237.48.0/20
52.239.148.64/26
52.245.28.0/26
52.253.200.0/22
13.71.192.0/19
13.77.192.0/28
13.77.193.0/24
13.77.200.0/21
13.77.208.0/20
13.78.128.0/17
52.153.128.0/19
52.153.160.0/24
52.153.168.0/21
52.153.176.0/20
52.159.0.0/20
52.159.16.0/21
52.161.0.0/18
52.161.64.0/19
52.161.96.0/20
52.161.112.0/27
52.161.112.32/28
52.161.120.0/21
52.161.128.0/19
52.161.160.0/21
52.161.168.0/27
52.161.168.32/28
52.161.176.0/20
52.161.192.0/18
52.239.167.32/27
52.245.60.16/28
52.245.60.32/28
52.253.136.0/22
51.140.192.0/28
51.140.193.0/24
51.140.200.0/21
51.140.208.0/20
51.140.224.0/21
51.140.232.0/25
51.140.232.128/26
51.140.232.192/28
51.140.233.0/24
51.140.240.0/20
51.141.0.0/20
51.141.16.0/24
51.141.24.0/21
51.141.32.0/20
51.141.48.0/21
51.141.56.0/24
51.141.64.0/19
51.141.134.0/27
51.141.148.0/22
51.140.0.0/20
51.140.16.0/27
51.140.16.32/28
51.140.17.0/24
51.140.24.0/21
51.140.32.0/19
51.140.64.0/20
51.140.80.0/21
51.140.88.0/24
51.140.96.0/19
51.140.128.0/28
51.140.129.0/24
51.140.136.0/21
51.140.144.0/20
51.140.160.0/21
51.140.168.0/25
51.140.168.128/27
51.140.169.0/24
51.140.176.0/20
51.141.144.0/22
52.151.64.0/19
52.239.187.0/27
52.245.64.0/27
52.245.64.48/28
52.245.64.176/28
52.245.64.192/28
13.67.153.16/28
13.67.154.0/24
40.83.24.96/27
40.122.0.0/20
52.165.104.128/26
104.208.48.0/20
52.176.225.0/24
52.176.232.0/21
52.176.240.0/20
52.180.160.0/20
52.180.176.0/21
52.185.56.112/28
52.185.112.64/27
40.70.88.0/28
40.79.88.0/27
40.79.88.32/28
40.79.89.0/24
40.79.96.0/19
52.184.168.16/28
52.184.168.32/28
52.225.136.48/28
52.225.144.0/20
52.225.160.0/19
52.231.128.0/28
52.231.129.0/24
52.231.136.0/21
52.231.144.0/20
52.231.160.0/21
52.231.168.0/25
52.231.168.128/27
52.231.169.0/24
52.231.176.0/20
52.231.192.0/20
52.231.208.0/27
52.231.208.32/28
52.231.216.0/21
52.231.224.0/20
52.231.240.0/21
52.253.188.0/22
52.231.0.0/28
52.231.1.0/24
52.231.8.0/21
52.231.16.0/20
52.231.32.0/21
52.231.40.0/28
52.231.41.0/24
52.231.48.0/20
52.231.64.0/20
52.231.80.0/25
52.231.80.128/26
52.231.88.0/21
52.231.96.0/20
52.231.112.0/21
52.253.192.0/22

Linux kernel – check the kernel options enabled during kernel compilation.

You might want to know whether a certain kernel option was enabled or not when your kernel was built, say if Symmetric multiprocessing (SMP) was enabled, or if KVM was compiled directly into the kernel or just as a loadable module. To answer this, you can look at the /boot/config-$(uname -r) file.

To find out if SMP is enabled in your system for instance, search for all SMP keywords in the kernel configuration –

daniel@linubuvma:~$ grep SMP /boot/config-$(uname -r)
CONFIG_X86_64_SMP=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_SMP=y
# CONFIG_X86_VSMP is not set
# CONFIG_MAXSMP is not set
CONFIG_PM_SLEEP_SMP=y
CONFIG_SCSI_SAS_HOST_SMP=y
CONFIG_VIDEO_VP27SMPX=m

The ‘CONFIG_SMP=y’ setting indicates that the SMP module was compiled directly in the kernel, it is part of the monolithic kernel.

If your kernel was built with ‘CONFIG_IKCONFIG_PROC’, then the /proc/config.gz will contain the .config file the Linux kernel was compiled with.

daniel@linubuvma:~$ grep CONFIG_IKCONFIG_PROC  /boot/config-$(uname -r)
daniel@linubuvma:~$
daniel@linubuvma:~$ ls /proc/config.gz
ls: cannot access /proc/config.gz: No such file or directory

In my case, the kernel was not built with ‘CONFIG_IKCONFIG_PROC’.

curl – get only numeric HTTP response code

Most browsers have developer plugins where you can see the HTTP status code response and other request/response headers. For automation purposes though, you are most likely to use tools such as curl, httpie or python requests modules. In this post, we will see how to use curl for parsing HTTP response to get only the response code.

1. First attempt – use ‘-I’ option to fetch HTTP-header only.

The first line will show the response code.


daniel@linubuvma:~$ curl -I http://www.google.com
HTTP/1.1 200 OK
Date: Sun, 09 Apr 2017 06:45:00 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
domain=.google.com; Htty
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding

But does this work all the time? No, some web services have problem with the HEAD HTTP request. Let us try amazon.com for instance –


daniel@linubuvma:~$ curl -I https://www.amazon.com
HTTP/1.1 503 Service Unavailable
Content-Type: text/html
Content-Length: 6450
Connection: keep-alive
Server: Server
Date: Sun, 09 Apr 2017 06:50:02 GMT
Set-Cookie: skin=noskin; path=/; domain=.amazon.com
Vary: Content-Type,Host,Cookie,Accept-Encoding,User-Agent
X-Cache: Error from cloudfront
Via: 1.1 a8dc63f9c2d878908bcd53ddc78da27f.cloudfront.net (CloudFront)


daniel@linubuvma:~$ curl -I -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" https://www.amazon.com
HTTP/1.1 405 MethodNotAllowed
Content-Type: text/html; charset=ISO-8859-1
Connection: keep-alive
Server: Server
Date: Sun, 09 Apr 2017 06:49:47 GMT
Set-Cookie: skin=noskin; path=/; domain=.amazon.com
Strict-Transport-Security: max-age=47474747; includeSubDomains; preload
x-amz-id-1: N2RDV79SBB791BTYG2K8
allow: POST, GET
Vary: Accept-Encoding,User-Agent
X-Frame-Options: SAMEORIGIN
X-Cache: Error from cloudfront
Via: 1.1 f3459bfce7b7b7b8e8bfb19301f39bef.cloudfront.net (CloudFront)

In the first attempt, amazon.com was actually blocking automated checks by looking at the user-agent in the header, so i had to trick it by changing the user-agent header. The response code was 503. Once I changed the user-agent, I am getting 405 – the web server does not like our HEAD HTTP (‘-I’) option.

2. Second attempt – use ‘-w’ option to write-out specific parameter.

curl has ‘-w’ option for defining specific parameter to write out to the screen or stdout. Some of the variables are content_type, size_header, http_code. In our case, we are interested in http_code, which will dump the numerical response code from the last HTTP transfer. Let us try it –

daniel@linubuvma:~$ curl -I -s -w "%{http_code}\n" -o /dev/null http://www.google.com
200

We use ‘-I’ to get only the header and redirect the header to /dev/null and only print http_code to stdout. This is by far the most efficient way of doing it, as we are not transferring the whole page. If the ‘-I’ option does not work though, for sites such as amazon.com, we can drop ‘-I’ as follows –

daniel@linubuvma:~$ curl -s -w "%{http_code}\n" -o /dev/null -A "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" https://www.amazon.com
200

This is very useful when are writing scripts to get only the HTTP status code.

References –

https://curl.haxx.se/docs/manpage.html
https://superuser.com/questions/272265/getting-curl-to-output-http-status-code

How to share your terminal session with another user in real time.

Linux has a script command which is mainly used for ‘typescripting’ all output printed on terminal. Commands typed on a terminal and the resulting output can be written to a file for later retrieval.

One little known use of the script command is for sharing your terminal session with another user, this would particularly be useful for telecooperation say between a user and instructor. The instructor can lead the session by executing commands on the shell while the student would observe. Here is one way of doing this –

1. Instructor creates a named pipe using mkfifo

instructor@linubuvma:/$ mkfifo /tmp/shared-screen

instructor@linubuvma:/$ ls -al /tmp/shared-screen 
prw-rw-r-- 1 instructor instructor 0 Mar 31 00:08 /tmp/shared-screen

instructor@linubuvma:/$ script -f /tmp/shared-screen 

2. Student views the session in real time by reading the shared-screen file –

student@linubuvma:/tmp$ cat shared-screen
Script started on Fri 31 Mar 2017 12:09:42 AM EDT

As soon as the student runs the

cat shared-screen

command, the script command also gets started on the instructor’s session.

Whatever is typed on the instructor’s terminal will show up on the student’s screen and the student’s terminal will be restored as soon as the instructor exits or terminates the script session –

instructor@linubuvma:/$ free -m
             total       used       free     shared    buffers     cached
Mem:          3946       3572        374         40        288        996
-/+ buffers/cache:       2288       1658
Swap:         4092        195       3897
instructor@linubuvma:/$ exit
exit

Script done on Fri 31 Mar 2017 12:12:02 AM EDT
student@linubuvma:/tmp$

Note – the student’s screen will show the user id of the instructor at the bash prompt, as it is a replica of the instructors session. Once the instructor terminates the session, the student will get back to their original bash prompt.

References

http://man7.org/linux/man-pages/man1/script.1.html

User administration: restricting access

1. With the chage command, an account expiration can be set. Once that date is reached, the user cannot log into the system interactively.
Let us run ‘chage’ interactively to set user’s account expiry –

[root@kauai /]# chage sshtest
Changing the aging information for sshtest
Enter the new value, or press ENTER for the default

	Minimum Password Age [0]: 
	Maximum Password Age [99999]: 
	Last Password Change (YYYY-MM-DD) [2015-11-04]: 
	Password Expiration Warning [7]: 
	Password Inactive [-1]: 
	Account Expiration Date (YYYY-MM-DD) [-1]: 2017-03-30

[root@kauai /]# chage -l sshtest
Last password change					: Nov 04, 2015
Password expires					: never
Password inactive					: never
Account expires						: Mar 30, 2017
Minimum number of days between password change		: 0
Maximum number of days between password change		: 99999
Number of days of warning before password expires	: 7

2. In addition to this, the usermod command can “lock” an account with the -L option. Say when a user is no longer with a company, the administrator may lock and expire an account with a single usermod command. The date must be given as the number of days since January 1, 1970. Setting the expiredate to 1 will immediately lock the account –

[student@serverX ~]$ sudo usermod -L -e 1 elvis

[student@serverX ~]$ sudo usermod -L elvis
[student@serverX ~]$ su - elvis
Password: elvis
su: Authentication failure

Locking the account prevents the user from authenticating with a password to the system. It is the recommended method of preventing access to an account by an employee who has left the company. If the employee returns, the account can later be unlocked with

usermod -U USERNAME

. If the account was also expired, be sure to also change the expiration date.

3. The nologin shell. Sometimes a user needs an account with a password to authenticate to a system, but does not need an interactive shell on the system.
For example, a mail server may require an account to store mail and a password for the user to authenticate with a mail client used to retrieve mail.
That user does not need to log directly into the system.

A common solution to this situation is to set the user’s login shell to /sbin/nologin. If the user attempts to log into the system directly,
the nologin “shell” will simply close the connection.

[root@serverX ~]# usermod -s /sbin/nologin student
[root@serverX ~]# su - student
Last login: Tue Feb  4 18:40:30 EST 2014 on pts/0
This account is currently not available.

References –

https://linux.die.net/man/1/chage
https://linux.die.net/man/1/chmod

Linux – Sort IPv4 addresses numerically

A novice user’s first attempt to sort a list of IP addresses would be to use ‘sort -n’, that is a numeric-sort option for sort command. Unfortunately, this will sort only the first quadrant of the IP address preceding the initial dot(‘.’). Definitely the GNU sort command does support sorting IPv4 addresses in numeric order, we just have to specify the right options.

Question to answer –

1. What is our delimiter for IPv4? dot.
2. What type of sorting? numeric.
3. How many fields? four.

Reading the man page for sort provides an option for each – 1) -t. 2) -n 3)-k
The third part might need clarification – since we have dot as a separator, the IP address will have four fields. We need to give sort a key specification (-k), with start and stop positions i.e to story by first quadrant(-k1,1), followed by second(-k2,2), followed by third(-k3,3) and finally by fourth(-k4,4).

The full command looks like this –

sort -t. -n -k1 -k2 -k3 -k4 /tmp/ipv4_file.txt

Let us use ForgeryPy to generate random Ipv4 addresses, we will write a simple python script to generate these random IPs to a file.

First install ForgeryPY –

pip install ForgeryPY

Script to generate IPv4 addresses –

$cat ipv4_generator.py

#!/usr/bin/env python

import forgery_py

uniq_ipv4=set()
for i in range(50):
    uniq_ipv4.add(forgery_py.internet.ip_v4())

with open('/tmp/ipv4_addresses.txt', 'w') as fp:
     for line in uniq_ipv4:
         fp.writelines(line+'\n')

Output –

daniel@linubuvma:/tmp$ cat /tmp/ipv4_addresses.txt
cat: /tmp/ipv4_addresses.txt: No such file or directory
daniel@linubuvma:/tmp$ python ipv4_generator.py
daniel@linubuvma:/tmp$ cat /tmp/ipv4_addresses.txt
222.21.147.97
187.234.9.45
144.101.36.131
31.192.196.59
24.16.131.84
8.52.22.181
17.40.228.224
58.164.169.156
234.78.147.45
254.150.145.225
167.111.243.3
168.168.248.227
68.104.225.196
55.138.152.3
223.30.151.183
235.245.57.76
226.122.222.107
176.199.0.130
13.68.133.125
14.157.155.254
11.155.170.92
249.0.112.141
228.209.60.62
246.130.20.235
113.17.65.20
120.76.166.133
81.191.49.37
17.226.209.151
81.184.136.140
9.172.35.65
129.205.96.54
181.130.8.142
21.78.73.162
5.216.102.88
91.140.115.96
134.140.243.193
177.148.152.60
175.37.63.212
60.175.123.112
176.250.114.170
54.62.22.255
182.78.64.216
238.92.143.140
181.206.65.80
11.139.192.62
38.158.146.36
241.236.161.184
30.223.32.242
233.107.53.70
36.222.68.164
daniel@linubuvma:/tmp$

Let us sort it –

daniel@linubuvma:/tmp$ sort -n -t. -k1,1 -k2,2 -k3,3 -k4,4 /tmp/ipv4_addresses.txt
5.216.102.88
8.52.22.181
9.172.35.65
11.139.192.62
11.155.170.92
13.68.133.125
14.157.155.254
17.40.228.224
17.226.209.151
21.78.73.162
24.16.131.84
30.223.32.242
31.192.196.59
36.222.68.164
38.158.146.36
54.62.22.255
55.138.152.3
58.164.169.156
60.175.123.112
68.104.225.196
81.184.136.140
81.191.49.37
91.140.115.96
113.17.65.20
120.76.166.133
129.205.96.54
134.140.243.193
144.101.36.131
167.111.243.3
168.168.248.227
175.37.63.212
176.199.0.130
176.250.114.170
177.148.152.60
181.130.8.142
181.206.65.80
182.78.64.216
187.234.9.45
222.21.147.97
223.30.151.183
226.122.222.107
228.209.60.62
233.107.53.70
234.78.147.45
235.245.57.76
238.92.143.140
241.236.161.184
246.130.20.235
249.0.112.141
254.150.145.225

Hope this help.

http://man7.org/linux/man-pages/man1/sort.1.html
https://pypi.python.org/pypi/ForgeryPy

How to be your own Certificate Authority(CA) with self signed certificates

This is a hands on tutorial on how you can setup your own Certificate Authority(CA) for internal network use. Once the CA certs are setup, you will generate certificate request(CSR) for your clients and sign them with your CA certs to create SSL certs for your internal network use. If you import your CA certs to your browser, you will be able to visit all internal sites using https without any browser warning, as long as the certs the your internal services are using are signed by your internal CA.

*Demo – Own CA for the home.net internal domain

1. Prepare certificate environment
and default parameters to use when creating CSR –

# mkdir /etc/ssl/CA
# mkdir /etc/ssl/newcerts
# sh -c "echo '100000' > /etc/ssl/CA/serial"
# touch /etc/ssl/CA/index.txt

# cat /etc/ssl/openssl.cnf
 dir		= /etc/ssl		# Where everything is kept
 database	= $dir/CA/index.txt	# database index file.
 certificate	= $dir/certs/home_cacert.pem 	# The CA certificate
 serial		= $dir/CA/serial 		# The current serial number
 private_key	= $dir/private/home_cakey.pem  # The private key
 default_days	= 1825			# how long to certify for
 default_bits		= 2048
 countryName_default		= US
 stateOrProvinceName_default	= California
 0.organizationName_default	= Home Ltd

2. Create self signed root certificate and install the root certificate and key

# openssl req -new -x509 -extensions v3_ca -keyout home_cakey.pem -out home_cacert.pem -days 3650
# mv home_cakey.pem /etc/ssl/private/
# mv home_cacert.pem /etc/ssl/certs/

3. Generate a CSR for the domain you want to issue a certificate –

# openssl genrsa -des3 -out home_server.key 2048
# openssl rsa -in home_server.key -out server.key.insecure
# mv server.key server.key.secure
# mv server.key.insecure server.key

4. Create the CSR now and generate a CA signed certificate

# openssl req -new -key server.key -out server.csr
# openssl ca -in server.csr -config /etc/ssl/openssl.cnf

Directory structure after signing and issuing certificates –

# ls -l /etc/ssl/CA/
total 24
-rw-r--r-- 1 root root 444 Aug 29 18:20 index.txt
-rw-r--r-- 1 root root  21 Aug 29 18:20 index.txt.attr
-rw-r--r-- 1 root root  21 Aug 29 18:16 index.txt.attr.old
-rw-r--r-- 1 root root 328 Aug 29 18:18 index.txt.old
-rw-r--r-- 1 root root   7 Aug 29 18:20 serial
-rw-r--r-- 1 root root   7 Aug 29 18:19 serial.old

# ls -l /etc/ssl/newcerts/
total 32
-rw-r--r-- 1 root root 4612 Aug 29 16:24 100000.pem
-rw-r--r-- 1 root root 4613 Aug 29 16:51 100001.pem
-rw-r--r-- 1 root root 4574 Aug 29 17:50 100002.pem
-rw-r--r-- 1 root root 4619 Aug 29 18:20 100003.pem

# cat /etc/ssl/CA/index.txt
V	190828202443Z		100000	unknown	/C=US/ST=California/O=Home Ltd/OU=Home/CN=www.home.net/emailAddress=daniel@home.net
V	190828205127Z		100001	unknown	/C=US/ST=California/O=Home Ltd/OU=Home/CN=wiki.home.net/emailAddress=daniel@home.net
V	190828215006Z		100002	unknown	/C=US/ST=California/O=Home Ltd/CN=home.net/emailAddress=daniel@home.net
V	190828222038Z		100003	unknown	/C=US/ST=California/O=Home Ltd/OU=Home/CN=homevm.home.net/emailAddress=daniel@home.net

# cat /etc/ssl/CA/serial
10411A

Now that you have your certificate, in this example /etc/ssl/certs/home_cacert.pem, you can import it to your web client such as a web browser, LDAP client etc.

References –

https://help.ubuntu.com/12.04/serverguide/certificates-and-security.html

Server refused to allocate pty : pseudoterminal in use reached maximum allowed limit.

You are unlikely to encounter this error in most cases, as the default maximum number of pseudoterminal(pty) in a Linux environment is large enough for typical use cases. The error might occur though under either an admin lowering the pty limit or unusual high number of connections to the system, using ssh or GUI terminal. Under those circumstances, you will see the below error during ssh interaction –

$ssh daniel@192.168.10.103
daniel@192.168.10.103's password:
Server refused to allocate pty

GUI terminal error –

There was an error creating the child process for this terminal
getpt failed: No such file or directory

Per the man page –

” The Linux kernel imposes a limit on the number of available UNIX 98
pseudoterminals. In kernels up to and including 2.6.3, this limit is
configured at kernel compilation time (CONFIG_UNIX98_PTYS), and the
permitted number of pseudoterminals can be up to 2048, with a default
setting of 256. Since kernel 2.6.4, the limit is dynamically
adjustable via /proc/sys/kernel/pty/max, and a corresponding file,
/proc/sys/kernel/pty/nr, indicates how many pseudoterminals are
currently in use.

To resolve this, get a count of pty currently allocated using either of the below commands –


[root@kauai tmp]# sysctl kernel.pty.nr
kernel.pty.nr = 10

[root@kauai tmp]# cat /proc/sys/kernel/pty/nr 
10

You can list the allocated pts names –

# ps aux |grep -o -P '\s+pts/\d+\s+' |sort -u
 pts/0    
 pts/1    
 pts/2    
 pts/3    
 pts/4    
 pts/5    
 pts/6    
 pts/8    
 pts/9    

If the currently allocated count is closer or less than to the limit, which you can find using

/proc/sys/kernel/pty/max

, go ahead increase the max limit as follows, say to 4096 in this example –

sysctl -w kernel.pty.max=4096

References –

http://man7.org/linux/man-pages/man7/pty.7.html