-
-
Save bitraft/2a683878ebbedbd53e58dae578931694 to your computer and use it in GitHub Desktop.
Get Netflix IP ranges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2017-10-01T14:14:44+00:00 | |
108.175.32.0/20 | |
108.175.34.0/24 | |
108.175.35.0/24 | |
192.173.64.0/18 | |
198.38.100.0/24 | |
198.38.101.0/24 | |
198.38.108.0/24 | |
198.38.109.0/24 | |
198.38.110.0/24 | |
198.38.111.0/24 | |
198.38.112.0/24 | |
198.38.113.0/24 | |
198.38.114.0/24 | |
198.38.115.0/24 | |
198.38.116.0/24 | |
198.38.117.0/24 | |
198.38.118.0/24 | |
198.38.119.0/24 | |
198.38.120.0/24 | |
198.38.121.0/24 | |
198.38.124.0/24 | |
198.38.125.0/24 | |
198.38.96.0/19 | |
198.38.96.0/24 | |
198.38.97.0/24 | |
198.38.98.0/24 | |
198.38.99.0/24 | |
198.45.48.0/20 | |
198.45.48.0/24 | |
198.45.49.0/24 | |
198.45.56.0/24 | |
198.45.57.0/24 | |
23.246.0.0/18 | |
23.246.14.0/24 | |
23.246.15.0/24 | |
23.246.16.0/24 | |
23.246.17.0/24 | |
23.246.20.0/24 | |
23.246.2.0/24 | |
23.246.22.0/24 | |
23.246.23.0/24 | |
23.246.24.0/24 | |
23.246.25.0/24 | |
23.246.26.0/24 | |
23.246.27.0/24 | |
23.246.28.0/24 | |
23.246.29.0/24 | |
23.246.30.0/24 | |
23.246.3.0/24 | |
23.246.31.0/24 | |
23.246.36.0/24 | |
23.246.4.0/24 | |
23.246.42.0/24 | |
23.246.46.0/24 | |
23.246.47.0/24 | |
23.246.48.0/24 | |
23.246.49.0/24 | |
23.246.50.0/24 | |
23.246.5.0/24 | |
23.246.51.0/24 | |
23.246.52.0/24 | |
23.246.54.0/24 | |
23.246.55.0/24 | |
23.246.56.0/24 | |
23.246.57.0/24 | |
23.246.58.0/24 | |
23.246.6.0/24 | |
23.246.7.0/24 | |
37.77.184.0/21 | |
37.77.186.0/24 | |
37.77.187.0/24 | |
37.77.188.0/24 | |
37.77.189.0/24 | |
37.77.190.0/24 | |
37.77.191.0/24 | |
45.57.0.0/17 | |
45.57.1.0/24 | |
45.57.11.0/24 | |
45.57.14.0/24 | |
45.57.15.0/24 | |
45.57.16.0/24 | |
45.57.17.0/24 | |
45.57.18.0/24 | |
45.57.19.0/24 | |
45.57.20.0/24 | |
45.57.2.0/24 | |
45.57.21.0/24 | |
45.57.22.0/24 | |
45.57.23.0/24 | |
45.57.3.0/24 | |
45.57.36.0/24 | |
45.57.37.0/24 | |
45.57.4.0/24 | |
45.57.42.0/24 | |
45.57.44.0/24 | |
45.57.45.0/24 | |
45.57.48.0/24 | |
45.57.49.0/24 | |
45.57.5.0/24 | |
45.57.54.0/24 | |
45.57.55.0/24 | |
45.57.58.0/24 | |
45.57.59.0/24 | |
45.57.60.0/24 | |
69.53.225.0/24 | |
207.45.72.0/22 | |
207.45.73.0/24 | |
45.57.40.0/24 | |
45.57.8.0/23 | |
45.57.8.0/24 | |
45.57.9.0/24 | |
192.173.64.0/24 | |
192.173.65.0/24 | |
192.173.66.0/24 | |
192.173.67.0/24 | |
192.173.68.0/24 | |
208.75.76.0/24 | |
69.53.230.0/24 | |
69.53.231.0/24 | |
69.53.233.0/24 | |
69.53.235.0/24 | |
69.53.240.0/24 | |
69.53.241.0/24 | |
69.53.242.0/24 | |
69.53.245.0/24 | |
69.53.246.0/24 | |
69.53.254.0/24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2017-10-01T14:14:44+00:00 | |
2607:fb10:7071::/48 | |
2620:10c:7000::/44 | |
2620:10c:7002::/48 | |
2620:10c:7008::/48 | |
2a00:86c0:1002::/48 | |
2a00:86c0:1003::/48 | |
2a00:86c0:100::/48 | |
2a00:86c0:1008::/48 | |
2a00:86c0:1009::/48 | |
2a00:86c0:1010::/48 | |
2a00:86c0:1011::/48 | |
2a00:86c0:1012::/48 | |
2a00:86c0:1013::/48 | |
2a00:86c0:1016::/48 | |
2a00:86c0:1017::/48 | |
2a00:86c0:1018::/48 | |
2a00:86c0:1021::/48 | |
2a00:86c0:1022::/48 | |
2a00:86c0:1023::/48 | |
2a00:86c0:1024::/48 | |
2a00:86c0:1025::/48 | |
2a00:86c0:1026::/48 | |
2a00:86c0:1027::/48 | |
2a00:86c0:1034::/48 | |
2a00:86c0:1046::/48 | |
2a00:86c0:1047::/48 | |
2a00:86c0:1048::/48 | |
2a00:86c0:1049::/48 | |
2a00:86c0:1050::/48 | |
2a00:86c0:1051::/48 | |
2a00:86c0:1052::/48 | |
2a00:86c0:1054::/48 | |
2a00:86c0:1055::/48 | |
2a00:86c0:1056::/48 | |
2a00:86c0:1057::/48 | |
2a00:86c0:108::/48 | |
2a00:86c0:109::/48 | |
2a00:86c0:110::/48 | |
2a00:86c0:111::/48 | |
2a00:86c0:112::/48 | |
2a00:86c0:113::/48 | |
2a00:86c0:114::/48 | |
2a00:86c0:115::/48 | |
2a00:86c0:116::/48 | |
2a00:86c0:117::/48 | |
2a00:86c0:118::/48 | |
2a00:86c0:119::/48 | |
2a00:86c0:120::/48 | |
2a00:86c0:121::/48 | |
2a00:86c0:124::/48 | |
2a00:86c0:125::/48 | |
2a00:86c0:126::/48 | |
2a00:86c0:127::/48 | |
2a00:86c0:2002::/48 | |
2a00:86c0:2003::/48 | |
2a00:86c0:2004::/48 | |
2a00:86c0:2005::/48 | |
2a00:86c0:2011::/48 | |
2a00:86c0:2014::/48 | |
2a00:86c0:2015::/48 | |
2a00:86c0:2016::/48 | |
2a00:86c0:2017::/48 | |
2a00:86c0:2018::/48 | |
2a00:86c0:2019::/48 | |
2a00:86c0:2020::/48 | |
2a00:86c0:2021::/48 | |
2a00:86c0:2036::/48 | |
2a00:86c0:2037::/48 | |
2a00:86c0:2042::/48 | |
2a00:86c0:2044::/48 | |
2a00:86c0:2045::/48 | |
2a00:86c0:2048::/48 | |
2a00:86c0:2049::/48 | |
2a00:86c0:2051::/48 | |
2a00:86c0:2054::/48 | |
2a00:86c0:2055::/48 | |
2a00:86c0:2058::/48 | |
2a00:86c0:2059::/48 | |
2a00:86c0:2060::/48 | |
2a00:86c0:2677::/48 | |
2a00:86c0::/32 | |
2a00:86c0:39bc::/48 | |
2a00:86c0:39bd::/48 | |
2a00:86c0:4::/48 | |
2a00:86c0:5::/48 | |
2a00:86c0:600::/48 | |
2a00:86c0:601::/48 | |
2a00:86c0:7002::/48 | |
2a00:86c0:98::/48 | |
2a00:86c0:99::/48 | |
2a00:86c0:a2a6::/48 | |
2a00:86c0:a2a7::/48 | |
2a00:86c0:ff0a::/48 | |
2a00:86c0:ff0b::/48 | |
2a00:86c0:2008::/47 | |
2a00:86c0:2008::/48 | |
2a00:86c0:2009::/48 | |
2a00:86c0:2040::/48 | |
2607:fb10:16::/48 | |
2607:fb10:31::/48 | |
2607:fb10:45::/48 | |
2607:fb10:46::/48 | |
2607:fb10:5011::/48 | |
2607:fb10:7011::/48 | |
2607:fb10:7020::/44 | |
2607:fb10:7035::/48 | |
2607:fb10:7038::/48 | |
2607:fb10:7040::/44 | |
2607:fb10:7060::/44 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
# This command finds the ASNUMs owned by netflix | |
curl -s http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum2.zip | gunzip | cut -d"," -f3 | sed 's/"//g' | sort -u | grep -i netflix | |
# For the four ASNUMs currently in possession of netflix that would be: | |
whois -h whois.radb.net -- '-i origin AS2906' | grep -Eo "([0-9.]+){4}/[0-9]+" | tee netflix_ranges.txt \ | |
&& whois -h whois.radb.net -- '-i origin AS394406' | grep -Eo "([0-9.]+){4}/[0-9]+" | tee netflix_ranges.txt \ | |
&& whois -h whois.radb.net -- '-i origin AS40027' | grep -Eo "([0-9.]+){4}/[0-9]+" | tee netflix_ranges.txt \ | |
&& whois -h whois.radb.net -- '-i origin AS55095' | grep -Eo "([0-9.]+){4}/[0-9]+" | tee netflix_ranges.txt | |
# Done! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment