Commit 15f1096e authored by Tommy Lau's avatar Tommy Lau

Update route.txt with more ip routes

parent 9eaa42ea
...@@ -41,7 +41,10 @@ static.xx.fbcdn.net ...@@ -41,7 +41,10 @@ static.xx.fbcdn.net
scontent-a-sin.xx.fbcdn.net scontent-a-sin.xx.fbcdn.net
scontent-b-sin.xx.fbcdn.net scontent-b-sin.xx.fbcdn.net
fbcdn-profile-a.akamaihd.net fbcdn-profile-a.akamaihd.net
1.9.56.194
80.239.178.49
fbexternal-a.akamaihd.net fbexternal-a.akamaihd.net
23.62.109.81
fbcdn-sphotos-d-a.akamaihd.net fbcdn-sphotos-d-a.akamaihd.net
bit.ly bit.ly
...@@ -71,8 +74,10 @@ instagram.com ...@@ -71,8 +74,10 @@ instagram.com
54.236.116.18 54.236.116.18
107.23.173.176 107.23.173.176
i.instagram.com i.instagram.com
54.236.180.84 54.84.23.82
54.84.62.9
54.84.154.64 54.84.154.64
54.236.180.84
telegraph-ec2proxy.instagram.com telegraph-ec2proxy.instagram.com
54.152.147.196 54.152.147.196
help.instagram.com help.instagram.com
......
...@@ -28,8 +28,7 @@ def get_decimal_ip(ip): ...@@ -28,8 +28,7 @@ def get_decimal_ip(ip):
def query_cidr(ip): def query_cidr(ip):
url = "http://whois.arin.net/rest/nets;q=%s?showDetails=true&showARIN=false&ext=netref2" % ip url = "http://whois.arin.net/rest/nets;q=%s?showDetails=true&showARIN=false&ext=netref2" % ip
f = urllib2.urlopen(url) f = urllib2.urlopen(url)
ss = f.read() root = xml.etree.ElementTree.fromstring(f.read())
root = xml.etree.ElementTree.fromstring(ss)
net_block = root.find("{http://www.arin.net/whoisrws/core/v1}net").find( net_block = root.find("{http://www.arin.net/whoisrws/core/v1}net").find(
"{http://www.arin.net/whoisrws/core/v1}netBlocks").find("{http://www.arin.net/whoisrws/core/v1}netBlock") "{http://www.arin.net/whoisrws/core/v1}netBlocks").find("{http://www.arin.net/whoisrws/core/v1}netBlock")
start_address = net_block.find("{http://www.arin.net/whoisrws/core/v1}startAddress").text start_address = net_block.find("{http://www.arin.net/whoisrws/core/v1}startAddress").text
......
route = 1.0.0.0/255.0.0.0
route = 4.0.0.0/255.0.0.0 route = 4.0.0.0/255.0.0.0
route = 8.0.0.0/255.0.0.0 route = 8.0.0.0/255.0.0.0
route = 23.32.0.0/255.224.0.0 route = 23.32.0.0/255.224.0.0
...@@ -9,7 +10,6 @@ route = 54.80.0.0/255.240.0.0 ...@@ -9,7 +10,6 @@ route = 54.80.0.0/255.240.0.0
route = 54.144.0.0/255.240.0.0 route = 54.144.0.0/255.240.0.0
route = 54.160.0.0/255.240.0.0 route = 54.160.0.0/255.240.0.0
route = 54.208.0.0/255.248.0.0 route = 54.208.0.0/255.248.0.0
route = 54.216.0.0/255.252.0.0
route = 54.224.0.0/255.240.0.0 route = 54.224.0.0/255.240.0.0
route = 54.236.0.0/255.254.0.0 route = 54.236.0.0/255.254.0.0
route = 62.0.0.0/255.0.0.0 route = 62.0.0.0/255.0.0.0
...@@ -28,10 +28,14 @@ route = 141.0.0.0/255.0.0.0 ...@@ -28,10 +28,14 @@ route = 141.0.0.0/255.0.0.0
route = 173.194.0.0/255.255.0.0 route = 173.194.0.0/255.255.0.0
route = 173.252.64.0/255.255.192.0 route = 173.252.64.0/255.255.192.0
route = 184.154.0.0/255.255.0.0 route = 184.154.0.0/255.255.0.0
route = 185.0.0.0/255.0.0.0
route = 192.0.64.0/255.255.192.0 route = 192.0.64.0/255.255.192.0
route = 199.16.156.0/255.255.252.0 route = 199.16.156.0/255.255.252.0
route = 199.92.0.0/255.252.0.0 route = 199.92.0.0/255.252.0.0
route = 199.96.56.0/255.255.248.0 route = 199.96.56.0/255.255.248.0
route = 203.0.0.0/255.0.0.0 route = 203.0.0.0/255.0.0.0
route = 204.69.221.0/255.255.255.0 route = 204.69.221.0/255.255.255.0
route = 204.160.0.0/255.252.0.0
route = 206.32.0.0/255.252.0.0
route = 207.108.0.0/255.254.0.0
route = 210.0.0.0/255.0.0.0 route = 210.0.0.0/255.0.0.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment