harleylg / autoddvpn

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

探讨一下:能不能加个custom_vpndown方案? #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
想更加方便维护自定义直连,能不能加个custom_vpndown方案,这
样定义直连网站/段就很方便了。或者您把custom_vpnup放在最后�
��载,就可以解决:route add -net 74.125.0.0/16 gw 
$OLDGW不被覆盖了。谢谢您的劳动。

Original issue reported on code.google.com by yinxiaoh...@gmail.com on 9 Feb 2011 at 11:45

GoogleCodeExporter commented 9 years ago
你是指 exroute_custom 這功能是嗎?

exroute_custom 是在vpnup.sh裡面一連串的route add最後才執行的。

Original comment by pahud...@gmail.com on 10 Feb 2011 at 12:32

GoogleCodeExporter commented 9 years ago
不是exroute_custom
是VPNUPCUSTOM='/jffs/openvpn/vpnup_custom',我发现这段代码是放在rout
e 
add之前加载的。从理论上来讲,放在后面的话全更合理,这��
�就可以加gw $OLDGW,是解决直连的也别一个好的途径。

Original comment by yinxiaoh...@gmail.com on 10 Feb 2011 at 8:06

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/autoddvpn/source/browse/trunk/vpnup.sh

這裡面並沒有VPNUPCUSTOM呀,你是說哪一個file?
classicMode裡面如果有自定義直連需求,是用exroute機制處理的 
http://code.google.com/p/autoddvpn/wiki/ExRoute

Original comment by pahud...@gmail.com on 10 Feb 2011 at 8:10

GoogleCodeExporter commented 9 years ago
哦看到了,你是說graceMode的部分,我同意你的看法,我來處��
�一下。

Original comment by pahud...@gmail.com on 10 Feb 2011 at 8:11

GoogleCodeExporter commented 9 years ago
http://autoddvpn.googlecode.com/svn/trunk/grace.d/vpnup-beta.sh

我放到後面去了,你試試看用這個取代原本的vpnup.sh,看是否
滿足你的需求?

Original comment by pahud...@gmail.com on 10 Feb 2011 at 8:16

GoogleCodeExporter commented 9 years ago
哈哈。您太敬业了。很专业。

Original comment by yinxiaoh...@gmail.com on 10 Feb 2011 at 8:28

GoogleCodeExporter commented 9 years ago
已经成功了。非常感谢您。
更新前:
root@DD-WRT:# traceroute www.msn.com
traceroute to us.co1.cb3.glbdns.microsoft.com (65.55.17.26), 30 hops max, 38 byt
e packets
 1  172.16.1.1 (172.16.1.1)  237.992 ms *  280.293 ms
更新后:
root@DD-WRT:~# traceroute www.msn.com
traceroute to us.co1.cb3.glbdns.microsoft.com (65.55.17.27), 30 hops max, 38 byt
e packets
 1  119.xxx.xx2.1 (119.xxx.xx2.1)  20.650 ms  27.608 ms  21.495 ms

Original comment by yinxiaoh...@gmail.com on 10 Feb 2011 at 8:46

GoogleCodeExporter commented 9 years ago
好的,過兩天我放到正式的位置去。

Original comment by pahud...@gmail.com on 10 Feb 2011 at 9:13

GoogleCodeExporter commented 9 years ago
http://autoddvpn.googlecode.com/svn/trunk/grace.d/vpnup-beta.sh
这个可以用!谢谢啦!

Original comment by xiab...@gmail.com on 16 Oct 2011 at 2:06