ijumps / autoddvpn

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

设置autoddvpn后域名无法解析 #74

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.在dd-wrt中设置了autoddvpn,然后重启
2.登录dd-wrt中ping任何网址,均返回 bad address
3.局域网中某些客户端自动获取ip后,dns为路由器,这种情况�
��,任何域名都无法解析

你期待是怎樣的結果,然而卻出現了什麼情形?
被墙网站走VPN,否则直接访问,但是dd-wrt中dns解析有问题

請提供以下資訊:

1. 您的路由器型號:buffalo g300nh
2. DD-WRT版本:DD-WRT v24-sp2 (05/08/11) std (SVN revision 16994)
3. 您的作業系統:WIN7 Ultimate 32bit
4. 您的瀏覽器版本:IE9
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, openvpn+jffs等):pptp+jffs
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):graceMode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :pppoe
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
root@DD-WRT:~# route -n  | tail -n 20
74.201.154.0    172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
69.175.106.0    172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
64.237.33.0     172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
205.178.152.0   172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
64.237.47.0     172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
75.101.159.0    172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
209.133.27.0    172.16.36.1     255.255.255.0   UG    0      0        0 ppp1
66.102.0.0      172.16.36.1     255.255.240.0   UG    0      0        0 ppp1
64.233.160.0    172.16.36.1     255.255.224.0   UG    0      0        0 ppp1
208.117.224.0   172.16.36.1     255.255.224.0   UG    0      0        0 ppp1
72.14.192.0     172.16.36.1     255.255.192.0   UG    0      0        0 ppp1
184.72.0.0      172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
173.194.0.0     172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
69.63.0.0       172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
66.220.0.0      172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 br0
74.125.0.0      172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
116.214.0.0     172.16.36.1     255.255.0.0     UG    0      0        0 ppp1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         124.64.104.1    0.0.0.0         UG    0      0        0 ppp0

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)
root@DD-WRT:~# tail -f /tmp/autoddvpn.log
[INFO#914] 11/May/2011:19:46:28 /tmp/pptpd_client/ip-down modified
[INFO#914] 11/May/2011:19:46:28 ALL DONE. Let's wait for VPN being connected.
[INFO#1797] 11/May/2011:19:46:37 vpnup.sh started
[INFO#1797] 11/May/2011:19:46:37 router type: DD-WRT
[INFO#1797] 11/May/2011:19:46:37 adding the static routes, this may take a 
while.
[INFO#1797] 11/May/2011:19:46:41 loading vpnup_custom if available
[INFO#1797] 11/May/2011:19:46:41 preparing the exceptional routes
[INFO#1797] 11/May/2011:19:46:41 exceptional routes disabled.
[INFO#1797] 11/May/2011:19:46:41 exceptional routes features detail:  
http://goo.gl/fYfJ
[INFO#1797] 11/May/2011:19:46:41 vpnup.sh ended

最後如果可能的話,請附上截屏或任何可能有幫助的夾檔

Original issue reported on code.google.com by sha...@gmail.com on 11 May 2011 at 1:56

GoogleCodeExporter commented 9 years ago
ping 返回结果如下
root@DD-WRT:~# ping www.google.com
ping: bad address 'www.google.com'
root@DD-WRT:~# ping www.yahoo.com
ping: bad address 'www.yahoo.com'

Original comment by sha...@gmail.com on 11 May 2011 at 1:58

GoogleCodeExporter commented 9 years ago
你DDWRT的web UI裡面DNS如何設置的貼上來看一下

還有dnsmasq的設置部分也貼上來看看

Original comment by pahud...@gmail.com on 11 May 2011 at 2:02

GoogleCodeExporter commented 9 years ago
addition dnsmasq option 如下
address=/www.facebook.com/66.220.149.25
address=/www.youtube.com/72.14.213.190
address=/twitter.com/199.59.148.83
address=/www.twitter.com/199.59.148.83 address=/api.twitter.com/199.59.148.87 
address=/encrypted.google.com/72.14.213.100 server=/google.com/8.8.8.8 
server=/facebook.com/8.8.8.8 
server=/fbcdn.net/8.8.8.8 
server=/twitter.com/8.8.8.8 
server=/youtube.com/8.8.8.8 
server=/ytimg.com/8.8.8.8 
server=/imageshack.us/8.8.8.8 server=/books.com.tw/8.8.8.8 
server=/book.com.tw/8.8.8.8

Original comment by sha...@gmail.com on 11 May 2011 at 2:42

Attachments:

GoogleCodeExporter commented 9 years ago
注意一下dnsmasq 
options需要適當的折行,格式不能出問題,否則dnsmasq會無法正
確運作,從這裡檢查看看,必要的話清空dnsmasq 
options測試看看。

Original comment by pahud...@gmail.com on 11 May 2011 at 3:10

GoogleCodeExporter commented 9 years ago
重排了一下dnsmasq果然就正常了
多谢
但是还有一个问题就是vpn掉了不会自动重连
root@DD-WRT:~# route -n | tail -n 20
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
124.64.104.1    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
124.64.104.1    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
172.16.36.1     0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 br0
172.16.36.0     0.0.0.0         255.255.255.0   U     0      0        0 ppp1
169.254.0.0     0.0.0.0         255.255.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         124.64.104.1    0.0.0.0         UG    0      0        0 ppp0

Original comment by sha...@gmail.com on 12 May 2011 at 5:10

GoogleCodeExporter commented 9 years ago
你是用pptp vpn的,vpn掉了的話ppp1 
這個device會消失,如果沒有消失表示DDWRT不認為是掉了,很可
能只是掉包或網路不穩,但已經無法使用。

這只能選擇線路穩定的pptp 
vpn來解決了,或者用openvpn也會有ping-restart之類的機制可以強�
��重連。

Original comment by pahud...@gmail.com on 12 May 2011 at 5:14

GoogleCodeExporter commented 9 years ago
目前autoddvpn使用了openvpn的ping-restart这种重连机制吗?
在现在的网络环境下,线路稳定的vpn不好找啊

Original comment by sha...@gmail.com on 12 May 2011 at 5:25

GoogleCodeExporter commented 9 years ago
openvpn設置可以自己定義 ping-restart
看這份文件

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

Original comment by pahud...@gmail.com on 12 May 2011 at 5:41

GoogleCodeExporter commented 9 years ago
好,先去找找支持openvpn的vpn
顺便请教一下,如果vpn掉了,怎么手动重连?

Original comment by sha...@gmail.com on 13 May 2011 at 10:39

GoogleCodeExporter commented 9 years ago
詳細命令我不大記得了
可能是 stopservice|startservice pptp 或pptpclient

Original comment by pahud...@gmail.com on 13 May 2011 at 1:41