zephyrer / autoddvpn

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

请问可以根据域名来选择是不是走vpn吗? #144

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1. openvpn gracemode,大部分网站可以上,唯独hulu.com上不了。
2. nslookup hulu.com, 结果是Segmentation 
fault,不知道为什么,好像是dd wrt的问题。
3. 路由器和client机都可以ping 
hulu.com,traceroute结果给大家看一下(已经用星号代替了我自��
�的ip地址)

traceroute hulu.com
traceroute to hulu.com (173.223.232.9), 30 hops max, 38 byte packets
 1  10.0.1.1 (10.0.1.1)  0.217 ms  0.176 ms  0.198 ms
 2  180.169.**.** (180.169.**.**)  0.886 ms  1.825 ms  0.643 ms
 3  4ge2-ip-gl-016.online.sh.cn (218.1.3.133)  1.191 ms  1.135 ms  1.839 ms
 4  124.74.215.153 (124.74.215.153)  0.901 ms  0.750 ms  0.869 ms
 5  61.152.86.58 (61.152.86.58)  1.711 ms  2.841 ms  1.325 ms
 6  202.97.33.22 (202.97.33.22)  2.165 ms  3.848 ms  2.876 ms
 7  202.97.35.98 (202.97.35.98)  1.985 ms  2.222 ms  3.229 ms
 8  202.97.50.10 (202.97.50.10)  235.500 ms  236.083 ms  272.929 ms
 9  202.97.49.158 (202.97.49.158)  319.576 ms  323.902 ms  326.398 ms
10  218.30.54.98 (218.30.54.98)  314.283 ms  298.214 ms  309.622 ms
11  ae0-90g.cr1.lax1.us.nlayer.net (69.31.127.137)  256.090 ms  
ae0-90g.cr1.lax1.us.nlayer.net (69.31.127.141)  282.771 ms  
ae0-90g.cr1.lax1.us.nlayer.net (69.31.127.137)  331.850 ms
12  xe-2-0-0.cr1.sjc1.us.nlayer.net (69.22.142.125)  176.031 ms  175.346 ms  
xe-4-2-0.cr1.sjc1.us.nlayer.net (69.22.142.9)  174.553 ms
13  ae1-70g.cr1.pao1.us.nlayer.net (69.22.143.166)  182.913 ms  184.231 ms  
184.152 ms
14  ae1-50g.ar1.pao1.us.nlayer.net (69.22.153.17)  169.260 ms  170.349 ms  
171.435 ms
15  as20940.xe-1-0-5.ar1.pao1.us.nlayer.net (69.22.130.82)  170.909 ms  170.629 
ms  170.416 ms
16  a173-223-232-9.deploy.akamaitechnologies.com (173.223.232.9)  168.216 ms  
167.200 ms  221.718 ms

你期待是怎樣的結果,然而卻出現了什麼情形?

請提供以下資訊:

1. 您的路由器型號:baffalo ag300h
2. DD-WRT版本:Firmware: DD-WRT v24SP2-MULTI (11/20/11) std
3. 您的作業系統:mac osx
4. 您的瀏覽器版本:chrome v18
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, 
openvpn+jffs等):openvpn+jffs
6. 
autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(graceMode
):grace mode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static : static
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :

root@DD-WRT:/jffs/openvpn#  route -n  | tail -n 20
78.129.203.0    10.13.0.4       255.255.255.0   UG    0      0        0 tun0
209.133.27.0    10.13.0.4       255.255.255.0   UG    0      0        0 tun0
122.147.51.0    10.13.0.4       255.255.255.0   UG    0      0        0 tun0
10.13.0.0       0.0.0.0         255.255.255.0   U     0      0        0 tun0
66.102.0.0      10.13.0.4       255.255.240.0   UG    0      0        0 tun0
64.233.160.0    10.13.0.4       255.255.224.0   UG    0      0        0 tun0
208.117.224.0   10.13.0.4       255.255.224.0   UG    0      0        0 tun0
72.14.192.0     10.13.0.4       255.255.192.0   UG    0      0        0 tun0
184.72.0.0      10.13.0.4       255.255.0.0     UG    0      0        0 tun0
173.194.0.0     10.13.0.4       255.255.0.0     UG    0      0        0 tun0
69.171.0.0      10.13.0.4       255.255.0.0     UG    0      0        0 tun0
69.63.0.0       10.13.0.4       255.255.0.0     UG    0      0        0 tun0
66.220.0.0      10.13.0.4       255.255.0.0     UG    0      0        0 tun0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
74.125.0.0      10.13.0.4       255.255.0.0     UG    0      0        0 tun0
116.214.0.0     10.13.0.4       255.255.0.0     UG    0      0        0 tun0
203.84.0.0      10.13.0.4       255.255.0.0     UG    0      0        0 tun0
239.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 br0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.0.1.1        0.0.0.0         UG    0      0        0 eth1

有没有可能,用域名来选择是不是走vpn?非常感谢大家的支��
�!

Original issue reported on code.google.com by simsi...@gmail.com on 15 May 2012 at 10:16

GoogleCodeExporter commented 8 years ago
autoddvpn是IP-based的翻牆,不是URL/domain-based的,所以不能根據��
�名,

hulu.com看起來是被GFW了

curl -v -I http://hulu.com
* About to connect() to hulu.com port 80 (#0)
*   Trying 62.41.70.155... connected
* Connected to hulu.com (62.41.70.155) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.20.0 (x86_64-pc-linux-gnu) libcurl/7.20.0 OpenSSL/0.9.8d 
zlib/1.2.3
> Host: hulu.com
> Accept: */*
> 
* Closing connection #0
* Failure when receiving data from the peer
curl: (56) Failure when receiving data from the peer

graceMode目前無法100%覆蓋所有GFW網站, 
,但會定期從autoproxy那邊做相應的更新,如果還是無法翻牆,�
��需要找出具體IP, 
手動設置在vpnup_custom裡面,詳見這裡的說明

http://code.google.com/p/autoddvpn/wiki/graceMode

Original comment by pahud...@gmail.com on 15 May 2012 at 10:32

GoogleCodeExporter commented 8 years ago
是啊,我也遇到这类的情况
太多站被墙了,如果是用域名维护 相对简单很多的.

Original comment by linjimmyiphone@gmail.com on 26 May 2012 at 9:14