davideuler / autoddvpn

Automatically exported from code.google.com/p/autoddvpn
0 stars 0 forks source link

请教classicmode下添加例外网站的方法。 #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
我不想使用gracemode。上次用了一天的gracemode,只为了添加googl
eusercontent.com就弄了半天。一些网站IP比较多,要经常自己添��
�需要代理的网站非常麻烦。
使用classicmode就简单多了,我基本不用P2P。现在想让apple不走v
pn。因为登陆app store下载苹果的软件需要很多流量。

Original issue reported on code.google.com by tianchao...@gmail.com on 4 Feb 2011 at 2:34

GoogleCodeExporter commented 9 years ago
在防火墙里面看来一下,苹果商店的软件下载地址是IP,204.2.
160.59和204.2.160.240 .  不知道还有多少不同的IP.  
好像同时下载两个软件就用了两个不同的IP.

收集IP真是非常困难的工作. 我用just-ping.com 
ping到webcache.googleusercontent.com的几十个IP地址,然后再电脑上nslo
okup又查到一个IP,居然不包括在just-ping搜到的那些里面.  
不知道有没有更好的方法收集IP.

Original comment by tianchao...@gmail.com on 4 Feb 2011 at 3:17

GoogleCodeExporter commented 9 years ago
你的問題分兩個來回答:

1.  classicMode增加例外IP的方法是用exroute_custom
http://code.google.com/p/autoddvpn/wiki/ExRoute
但你必須自己找出所有需要特例處理的IP網段。

2. 關於 webcache.googleusercontent.com 
請確定你透過8.8.8.8查出是否這個IP 72.14.213.132

$ nslookup webcache.googleusercontent.com 8.8.8.8
Server:     8.8.8.8
Address:    8.8.8.8#53

Non-authoritative answer:
webcache.googleusercontent.com  canonical name = 
googlehosted.l.googleusercontent.com.
Name:   googlehosted.l.googleusercontent.com
Address: 72.14.213.132

如果是的話, 72.14.213.0/24已經定義在vpnup.sh裡面了

route add -net 72.14.213.0/24 gw $VPNGW

如果不是的話,請把你查到的IP加到vpnup_custom裡面即可。

Original comment by pahud...@gmail.com on 4 Feb 2011 at 4:06