国内外路由表可以自己提取,
然后在获得的 cn.lst 再添加这些地址,包括 vpsip 。这样就根据国内 /外 路由段为依据分流,因为目前看起来访问国外网站都一样的慢。还有一个好处不必维护不在 g f w list 上的一些屏蔽 ip 的域名。
# Ignore LANs and some other reserved addresses.
# See
http://en.wikipedia.org/wiki/Reserved_IP_addresses#Reserved_IPv4_addresses# and
http://tools.ietf.org/html/rfc5735 for full list of reserved networks.
vpsip1/32
vpsip2/32
0.0.0.0/8
10.0.0.0/8
127.0.0.0/8
169.254.0.0/16
172.16.0.0/12
192.168.0.0/16
224.0.0.0/4
240.0.0.0/4
#!/bin/sh
rm -rf /tmp/ip;mkdir /tmp/ip;cd /tmp/ip
wget
http://www.ipdeny.com/ipblocks/data/countries/all-zones.tar.gztar zvfx all-zones.tar.gz
sort -V -u cn.zone>cn.lst
rm -rf cn.zone
find -name "*.zone" -exec 'cat' {} \; > uncn.tmp
sort -V -u uncn.tmp>uncn.lst
rm -rf *.zone