liuxuan30 / autoddvpn

DD-WRT VPN, imported from autoddvpn on code.google.com
1 stars 0 forks source link

国外的网站完全不能访问了 #89

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
vpn连上去了,在路由器里面ping了下vpn的gateway,完全ok,无掉�
��
ping twitter.com ok的,无掉包
traceroute了一下走的vpn

ping了一下baidu.com ok的
走的是正常的路线,不是vpn

但是在电脑上ping twitter.com
就不行了 traceroute了一下,到路由器就没了
然后国内的是正常的,可以ping通上网的
twitter 
ping的是路由器里面显示的ip,还是一样不行,跟dns没关系

http://whatismyip.org/无法访问,
http://www.myip.cn/就打的开,现在就是国外的反而上不了了

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

請提供以下資訊:

1. 您的路由器型號:TP-wr741n
2. DD-WRT版本:11/21/10 (SVN revision: 15778)
3. 您的作業系統:ubuntu
4. 您的瀏覽器版本:firefox
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, openvpn+jffs等):pptp+wget
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
(以上1-8點必填,否則可能沒辦法即時協助你解決問題)

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)
[INFO#1038] 07/Aug/2011:00:46:11 log starts
[INFO#1038] 07/Aug/2011:00:46:11 pptp+wget mode
[INFO#1038] 07/Aug/2011:00:46:11 getting vpnup.sh
[INFO#1038] 07/Aug/2011:00:46:13 getting vpndown.sh
[INFO#1038] 07/Aug/2011:00:46:14 modifying /tmp/pptpd_client/ip-up
[INFO#1038] 07/Aug/2011:00:46:14 /tmp/pptpd_client/ip-up not exists, sleep 
10sec.
[INFO#1038] 07/Aug/2011:00:46:24 /tmp/pptpd_client/ip-up not exists, sleep 
10sec.
[INFO#1038] 07/Aug/2011:00:46:34 /tmp/pptpd_client/ip-up not exists, sleep 
10sec.
[INFO#1038] 07/Aug/2011:00:46:44 /tmp/pptpd_client/ip-up modified
[INFO#1038] 07/Aug/2011:00:46:44 modifying /tmp/pptpd_client/ip-down
[INFO#1038] 07/Aug/2011:00:46:44 /tmp/pptpd_client/ip-down modified
[INFO#1038] 07/Aug/2011:00:46:44 ALL DONE. Let's wait for VPN being connected.
[INFO#1489] 07/Aug/2011:00:46:57 vpnup.sh started
[INFO#1489] 07/Aug/2011:00:46:57 router type: DD-WRT
[INFO#1489] 07/Aug/2011:00:46:57 make ******* gw 192.168.1.1
[INFO#1489] 07/Aug/2011:00:46:57 delete default gw 192.168.1.1
[INFO#1489] 07/Aug/2011:00:46:57 add default gw 172.16.1.1
[INFO#1489] 07/Aug/2011:00:46:57 adding the static routes, this may take a 
while.
[INFO#1489] 07/Aug/2011:00:47:01 preparing the exceptional routes
[INFO#1489] 07/Aug/2011:00:47:01 exceptional routes disabled.
[INFO#1489] 07/Aug/2011:00:47:01 exceptional routes features detail:  
http://goo.gl/fYfJ
[INFO#1489] 07/Aug/2011:00:47:01 vpnup.sh ended

root@FuckGFW:~# route | tail -n 10
59.192.0.0      192.168.1.1     255.192.0.0     UG    0      0        0 eth0
117.128.0.0     192.168.1.1     255.192.0.0     UG    0      0        0 eth0
183.192.0.0     192.168.1.1     255.192.0.0     UG    0      0        0 eth0
183.0.0.0       192.168.1.1     255.192.0.0     UG    0      0        0 eth0
113.64.0.0      192.168.1.1     255.192.0.0     UG    0      0        0 eth0
120.192.0.0     192.168.1.1     255.192.0.0     UG    0      0        0 eth0
116.128.0.0     192.168.1.1     255.192.0.0     UG    0      0        0 eth0
112.0.0.0       192.168.1.1     255.192.0.0     UG    0      0        0 eth0
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         172.16.1.1      0.0.0.0         UG    0      0        0 ppp0

这个跟我以前为了解决同时上内外网的时候出现的现象一样��
�通过route add命令加的地址 
在路由器里面可以上,外面就不行了
但是之前用autoddvpn的时候,成功过的,完全OK,不知道现在为
什么不行了
另我这连vpn要加脚本
sleep 90
OLDGW=$(nvram get wan_gateway)
VPNSRV=$(nvram get pptpd_client_srvip)
VPNSRVSUB=$(nvram get pptpd_client_srvsub)
PPTPDEV=$(route -n | grep ^${VPNSRVSUB%.[0-9]*} | awk '{print $NF}' | head -n 1)
VPNGW=$(ifconfig $PPTPDEV | grep -Eo "P-t-P:([0-9.]+)" | cut -d: -f2)
route add -host $VPNSRV gw $OLDGW
route del default gw $OLDGW
route add default gw $VPNGW

不然不行 参照http://bbs.a9vg.com/forum.php?mod=viewthread&tid=1717505

在附上dnsmasq附加选项的内容
address=/.youtube.com/203.208.46.38
address=/.ytimg.com/203.208.46.38
address=/.googlevideo.com/203.208.46.38
address=/.2mdn.net/203.208.46.38
address=/.operachina.com/59.151.106.253
no-resolv
no-poll
server=8.8.8.8

是在加了
no-resolv
no-poll
server=8.8.8.8之后出现的问题

Original issue reported on code.google.com by lyq.0...@gmail.com on 6 Aug 2011 at 6:25

GoogleCodeExporter commented 9 years ago
有些没写,pptp+wget模式 wan口是dhcp连的上层路由192.168.1.1 
本路由是192.168.2.1

Original comment by lyq.0...@gmail.com on 6 Aug 2011 at 6:30

GoogleCodeExporter commented 9 years ago
wan口是dhcp连的上层路由192.168.1.1 
本路由是192.168.2.1,这可能是关键,我也是同样的情况,到现
在还没有解决,在ddwrt中到哪里都是通的,从PC就不行

Original comment by andy.fu...@gmail.com on 16 Aug 2011 at 6:02

GoogleCodeExporter commented 9 years ago
I'm going to install fail2ban IPs on CentOS, to protect attacks on 
http://crickethighlights1.com/ any advise ?

Original comment by pkfu...@gmail.com on 29 Aug 2012 at 1:58