精英意识会让人走向孤独

忘记社区密码或者保密贴查看密码的,请给我留言,并留联系方式。

Avatar

2003.11.06.Thursday Advanced Research Of Proxy Script For Cernet

在搞定了肉鸡的代理之后,总加着代理访问不够稳定,来回切换又比较麻烦。上次写的那个脚本只是覆盖了很小一部分收费的公网IP,用那个经常出现站点没有在脚本中定义的问题。为此,我特别查了一下Cernet的地址表,根据这个来确定是否启用代理就可以了。

CERNET分担费用政策中定义的国内流量地址列表
[200310] 
IP Blocks routed inside China 
Source: CERNIC http://www.nic.edu.cn 
Versions of 200309, 
diff-u-200309-200310 
免费地址查询 免费地址表更新提醒服务 
[按网络号大小顺序] [按地址块大小顺序] 
--------------------------------------------------------------------------------
网络号 主机掩码 网络掩码
network-number host-bits netmask
-------------------- --------------- ---------------
[b][i]61.28.0.0 0.0.15.255 255.255.240.0 
61.48.0.0 0.7.255.255 255.248.0.0 
61.128.0.0 0.63.255.255 255.192.0.0 
61.232.0.0 0.3.255.255 255.252.0.0 
61.236.0.0 0.1.255.255 255.254.0.0 
61.240.0.0 0.3.255.255 255.252.0.0 
63.84.162.0 0.0.0.255 255.255.255.0 
63.86.118.0 0.0.1.255 255.255.254.0 
63.240.81.0 0.0.0.255 255.255.255.0 
63.240.90.0 0.0.0.255 255.255.255.0 
63.240.94.0 0.0.0.255 255.255.255.0 
63.240.105.0 0.0.0.255 255.255.255.0 
64.124.183.0 0.0.0.255 255.255.255.0 
65.246.184.0 0.0.1.255 255.255.254.0 
66.179.148.0 0.0.0.255 255.255.255.0 
128.84.158.0 0.0.0.255 255.255.255.0 
132.174.1.0 0.0.0.255 255.255.255.0 
132.174.11.0 0.0.0.255 255.255.255.0 
137.189.0.0 0.0.255.255 255.255.0.0 
140.98.193.0 0.0.0.255 255.255.255.0 
140.98.194.0 0.0.0.255 255.255.255.0 
140.113.0.0 0.0.255.255 255.255.0.0 
143.89.0.0 0.0.255.255 255.255.0.0 
144.214.0.0 0.0.255.255 255.255.0.0 
147.8.0.0 0.0.255.255 255.255.0.0 
149.28.1.0 0.0.0.255 255.255.255.0 
152.101.0.0 0.0.255.255 255.255.0.0 
152.104.0.0 0.0.255.255 255.255.0.0 
158.132.0.0 0.0.255.255 255.255.0.0 
158.182.0.0 0.0.255.255 255.255.0.0 
159.226.0.0 0.0.255.255 255.255.0.0 
161.207.0.0 0.0.255.255 255.255.0.0 
162.105.0.0 0.0.255.255 255.255.0.0 
165.193.0.0 0.0.255.255 255.255.0.0 
166.111.0.0 0.0.255.255 255.255.0.0 
167.139.0.0 0.0.255.255 255.255.0.0 
167.216.0.0 0.0.255.255 255.255.0.0 
168.160.0.0 0.0.255.255 255.255.0.0 
192.58.150.0 0.0.0.255 255.255.255.0 
192.80.71.0 0.0.0.255 255.255.255.0 
192.84.75.0 0.0.0.255 255.255.255.0 
192.86.104.0 0.0.0.255 255.255.255.0 
192.195.245.0 0.0.0.255 255.255.255.0 
193.123.78.0 0.0.0.255 255.255.255.0 
193.194.158.0 0.0.0.255 255.255.255.0 
194.130.252.0 0.0.0.255 255.255.255.0 
195.22.150.0 0.0.1.255 255.255.254.0 
198.112.160.0 0.0.31.255 255.255.224.0 
199.4.154.0 0.0.1.255 255.255.254.0 
199.98.88.0 0.0.0.255 255.255.255.0 
199.164.217.0 0.0.0.255 255.255.255.0 
202.4.128.0 0.0.31.255 255.255.224.0 
202.38.0.0 0.0.255.255 255.255.0.0 
202.40.192.0 0.0.31.255 255.255.224.0 
202.45.32.0 0.0.31.255 255.255.224.0 
202.75.64.0 0.0.31.255 255.255.224.0 
202.84.16.0 0.0.1.255 255.255.254.0 
202.95.0.0 0.0.31.255 255.255.224.0 
202.96.0.0 0.15.255.255 255.240.0.0 
202.112.0.0 0.7.255.255 255.248.0.0 
202.120.0.0 0.1.255.255 255.254.0.0 
202.122.32.0 0.0.15.255 255.255.240.0 
202.127.0.0 0.0.63.255 255.255.192.0 
202.127.128.0 0.0.127.255 255.255.128.0 
202.130.0.0 0.0.31.255 255.255.224.0 
202.130.224.0 0.0.31.255 255.255.224.0 
202.131.208.0 0.0.15.255 255.255.240.0 
202.189.96.0 0.0.31.255 255.255.224.0 
202.192.0.0 0.15.255.255 255.240.0.0 
203.81.16.0 0.0.15.255 255.255.240.0 
203.87.224.0 0.0.31.255 255.255.224.0 
203.93.0.0 0.0.255.255 255.255.0.0 
203.128.128.0 0.0.31.255 255.255.224.0 
203.192.0.0 0.0.31.255 255.255.224.0 
203.207.64.0 0.0.63.255 255.255.192.0 
203.207.128.0 0.0.127.255 255.255.128.0 
203.208.0.0 0.0.31.255 255.255.224.0 
203.212.0.0 0.0.15.255 255.255.240.0 
204.179.122.0 0.0.0.255 255.255.255.0 
205.240.244.0 0.0.3.255 255.255.252.0 
205.243.231.0 0.0.0.255 255.255.255.0 
207.189.64.0 0.0.31.255 255.255.224.0 
208.215.179.0 0.0.0.255 255.255.255.0 
210.5.0.0 0.0.31.255 255.255.224.0 
210.12.0.0 0.1.255.255 255.254.0.0 
210.14.160.0 0.0.31.255 255.255.224.0 
210.14.192.0 0.0.63.255 255.255.192.0 
210.15.0.0 0.0.127.255 255.255.128.0 
210.15.128.0 0.0.63.255 255.255.192.0 
210.21.0.0 0.0.255.255 255.255.0.0 
210.22.0.0 0.0.255.255 255.255.0.0 
210.25.0.0 0.0.127.255 255.255.128.0 
210.25.128.0 0.0.63.255 255.255.192.0 
210.26.0.0 0.1.255.255 255.254.0.0 
210.28.0.0 0.3.255.255 255.252.0.0 
210.32.0.0 0.15.255.255 255.240.0.0 
210.51.0.0 0.0.255.255 255.255.0.0 
210.52.0.0 0.1.255.255 255.254.0.0 
210.72.0.0 0.3.255.255 255.252.0.0 
210.76.0.0 0.1.255.255 255.254.0.0 
210.78.0.0 0.0.255.255 255.255.0.0 
210.79.224.0 0.0.31.255 255.255.224.0 
210.82.0.0 0.1.255.255 255.254.0.0 
210.192.96.0 0.0.31.255 255.255.224.0 
211.64.0.0 0.7.255.255 255.248.0.0 
211.80.0.0 0.15.255.255 255.240.0.0 
211.96.0.0 0.7.255.255 255.248.0.0 
211.136.0.0 0.7.255.255 255.248.0.0 
211.144.0.0 0.15.255.255 255.240.0.0 
211.160.0.0 0.7.255.255 255.248.0.0 
216.33.115.0 0.0.0.255 255.255.255.0 
216.39.32.0 0.0.0.255 255.255.255.0 
216.52.36.0 0.0.1.255 255.255.254.0 
216.143.112.0 0.0.0.255 255.255.255.0 
218.0.0.0 0.31.255.255 255.224.0.0 
218.56.0.0 0.7.255.255 255.248.0.0 
218.64.0.0 0.31.255.255 255.224.0.0 
218.96.0.0 0.3.255.255 255.252.0.0 
218.104.0.0 0.3.255.255 255.252.0.0 
218.108.0.0 0.0.255.255 255.255.0.0 
218.192.0.0 0.7.255.255 255.248.0.0 
218.200.0.0 0.3.255.255 255.252.0.0 
218.204.0.0 0.1.255.255 255.254.0.0 
218.240.0.0 0.7.255.255 255.248.0.0 
219.72.0.0 0.0.255.255 255.255.0.0 
219.128.0.0 0.31.255.255 255.224.0.0 
219.216.0.0 0.7.255.255 255.248.0.0 
219.224.0.0 0.15.255.255 255.240.0.0 
219.242.0.0 0.1.255.255 255.254.0.0 
219.244.0.0 0.3.255.255 255.252.0.0 
220.173.0.0 0.0.255.255 255.255.0.0 
220.192.0.0 0.15.255.255 255.240.0.0 
221.4.0.0 0.1.255.255 255.254.0.0 
221.137.0.0 0.0.255.255 255.255.0.0 
221.196.0.0 0.3.255.255 255.252.0.0 
221.224.0.0 0.7.255.255 255.248.0.0 
222.16.0.0 0.7.255.255 255.248.0.0 
222.24.0.0 0.1.255.255 255.254.0.0 
[/i][/b]

根据这个地址表来修改脚本就可以了。凡是在免费段内的就直接连接,其余全部启用代理。当然为了避免过于巨大的国际流量,需要适当限制一下访问的网段了,这个就是后话了,先把脚本改出来再说。

未完……

不是很懂这个:)

BT人……

看2F的,感觉吐就一个字。。。。

居然不给评论的连接,后来一看,厂商稿。。。。

评论已关闭