wuantony0701 / autoddvpn

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

建立好的VPN自动断掉 #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
不好意思。。又是我。。不过这次换了路由器是H618B
請描述一下您進行怎樣的操作之後碰到了問題
1.按照HOWTO配好之后不能翻

你期待是怎樣的結果,然而卻出現了什麼情形?
期待能正常自动翻,结果不能翻,并且由于没有到国外的路��
�变成自动撞墙猫了。。。呵呵

請提供以下資訊:

1. 您的路由器型號:H618B
2. DD-WRT版本:DD-WRT v24-sp2 (06/03/10) mega
(SVN revision 14537)
3. 您的作業系統:WINDOWS
4. 您的瀏覽器版本:FF 3
5. autoddvpn的運行模式(pptp+wget, pptp+jffs, openvpn+jffs等):pptp+jffs
6. DD-WRT WAN口連線模式是 pptp or dhcp or static :dhcp
7. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
59.192.0.0      192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
183.192.0.0     192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
183.0.0.0       192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
113.64.0.0      192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
116.128.0.0     192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
120.192.0.0     192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
112.0.0.0       192.168.0.1     255.192.0.0     UG    0      0        0 vlan1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
(注意啊...没有default...)

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)
[INFO#355] 01/Jan/1970:00:00:14 log starts
[INFO#355] 01/Jan/1970:00:00:14 pptp+jffs mode
[INFO#355] 01/Jan/1970:00:00:14 modifying /tmp/pptpd_client/ip-up
[INFO#355] 01/Jan/1970:00:00:15 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#355] 01/Nov/2010:18:31:06 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#355] 01/Nov/2010:18:31:16 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#355] 01/Nov/2010:18:31:26 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#355] 01/Nov/2010:18:31:36 /tmp/pptpd_client/ip-up modified
[INFO#355] 01/Nov/2010:18:31:36 modifying /tmp/pptpd_client/ip-down
[INFO#355] 01/Nov/2010:18:31:36 /tmp/pptpd_client/ip-down modified
[INFO#355] 01/Nov/2010:18:31:36 ALL DONE. Let's wait for VPN being connected.
[INFO#1029] 01/Nov/2010:18:31:55 vpnup.sh started
[INFO#1029] 01/Nov/2010:18:31:55 router type: DD-WRT
[INFO#1029] 01/Nov/2010:18:31:55 delete default gw 192.168.0.1
[INFO#1029] 01/Nov/2010:18:31:56 add default gw 172.16.1.1
[INFO#1029] 01/Nov/2010:18:31:56 adding the static routes, this may take a 
while.
[INFO#1029] 01/Nov/2010:18:32:15 preparing the exceptional routes
[INFO#1029] 01/Nov/2010:18:32:15 exceptional routes disabled.
[INFO#1029] 01/Nov/2010:18:32:15 exceptional routes features detail:  
http://goo.gl/fYfJ
[INFO#1029] 01/Nov/2010:18:32:16 vpnup.sh ended

最後如果可能的話,請附上截屏或任何可能有幫助的夾檔
需要说明的是,确实开机PPTP自动拨上去了(log里可以看到,并��
�ifconfig里也确实有)..但是貌似就是在vpnup.sh 
ended的时候它自己就断了..而且default 
route也没有..所有非国内的网站都不能访问了...

ppp0      Link encap:Point-to-Point Protocol
          inet addr:172.16.1.3  P-t-P:172.16.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1442  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1785 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:104 (104.0 B)  TX bytes:752552 (734.9 KiB)

Original issue reported on code.google.com by masiqi on 1 Nov 2010 at 5:39

GoogleCodeExporter commented 8 years ago
一点补充
PPTP应该是比较稳定的...不启动autoddvpn的话可以看到
ppp0      Link encap:Point-to-Point Protocol
          inet addr:172.16.1.15  P-t-P:172.16.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1446  Metric:1
          RX packets:7 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:94 (94.0 B)  TX bytes:112 (112.0 B)

172.16.1.1      *               255.255.255.255 UH    0      0        0 ppp0
172.16.1.0      *               255.255.255.255 UH    0      0        0 ppp0

至少不会连上就断

Original comment by masiqi on 1 Nov 2010 at 6:05

GoogleCodeExporter commented 8 years ago
root@DD-WRT:/tmp# ping 172.16.1.1
PING 172.16.1.1 (172.16.1.1): 56 data bytes
64 bytes from 172.16.1.1: seq=0 ttl=64 time=297.566 ms
64 bytes from 172.16.1.1: seq=1 ttl=64 time=297.710 ms
64 bytes from 172.16.1.1: seq=2 ttl=64 time=298.656 ms
64 bytes from 172.16.1.1: seq=3 ttl=64 time=298.531 ms
64 bytes from 172.16.1.1: seq=4 ttl=64 time=298.417 ms
64 bytes from 172.16.1.1: seq=5 ttl=64 time=299.618 ms
64 bytes from 172.16.1.1: seq=6 ttl=64 time=298.615 ms
64 bytes from 172.16.1.1: seq=7 ttl=64 time=329.782 ms
64 bytes from 172.16.1.1: seq=8 ttl=64 time=294.510 ms
64 bytes from 172.16.1.1: seq=9 ttl=64 time=301.481 ms
64 bytes from 172.16.1.1: seq=10 ttl=64 time=293.663 ms
64 bytes from 172.16.1.1: seq=11 ttl=64 time=1297.350 ms
64 bytes from 172.16.1.1: seq=12 ttl=64 time=297.540 ms
64 bytes from 172.16.1.1: seq=13 ttl=64 time=295.843 ms
64 bytes from 172.16.1.1: seq=14 ttl=64 time=298.754 ms
64 bytes from 172.16.1.1: seq=15 ttl=64 time=294.638 ms
64 bytes from 172.16.1.1: seq=16 ttl=64 time=297.597 ms
64 bytes from 172.16.1.1: seq=17 ttl=64 time=298.657 ms
64 bytes from 172.16.1.1: seq=18 ttl=64 time=298.750 ms
64 bytes from 172.16.1.1: seq=19 ttl=64 time=297.802 ms
64 bytes from 172.16.1.1: seq=20 ttl=64 time=298.544 ms

--- 172.16.1.1 ping statistics ---
21 packets transmitted, 21 packets received, 0% packet loss
round-trip min/avg/max = 293.663/346.858/1297.350 ms

vpn ping在300左右基本上不丢包

Original comment by masiqi on 1 Nov 2010 at 6:06

GoogleCodeExporter commented 8 years ago
127.0.0.0       *               255.0.0.0       U     0      0        0 lo
default         localhost       0.0.0.0         UG    0      0        0 ppp0
vpnup 
pptp的时候确实在路由表里添加过正确的设置,但是紧接着VPN�
��断了
这个VPN服务器和上次G300NH配的是同一个VPN,目前G300NH比较稳��
�应该不是VPN服务器的问题

Original comment by masiqi on 1 Nov 2010 at 6:12

GoogleCodeExporter commented 8 years ago
所以你的意思是同樣的VPN服務器同樣的autoddvpn設置,在G300NH��
�問題,在H618B會斷線是吧?

Original comment by pahud...@gmail.com on 2 Nov 2010 at 3:20

GoogleCodeExporter commented 8 years ago
問一下,你的PPTP 
server的設置,是用hostname還是用IP?必須使用IP哦!

Original comment by pahud...@gmail.com on 2 Nov 2010 at 3:23

GoogleCodeExporter commented 8 years ago
我更新了vpnup.sh, 做了一更多的logging方便debug, 
你更新一下vpnup.sh之後再試一次,然後把/tmp/autoddvpn.log貼上來
看看。

Original comment by pahud...@gmail.com on 2 Nov 2010 at 3:25

GoogleCodeExporter commented 8 years ago
对,G300NH没问题,H618B短线,不过我用的是hostname不是IP,回家改成I
P的试试,多谢!!

Original comment by masiqi on 2 Nov 2010 at 3:56

GoogleCodeExporter commented 8 years ago
OK那就是需要設定成IP的問題了,之後我想辦法做這部分的檢�
��並且在log提供warning。

Original comment by pahud...@gmail.com on 2 Nov 2010 at 3:59

GoogleCodeExporter commented 8 years ago

Original comment by pahud...@gmail.com on 2 Nov 2010 at 4:00

GoogleCodeExporter commented 8 years ago
可以了..确实是没有写IP地址...多谢!

Original comment by masiqi on 2 Nov 2010 at 3:16

GoogleCodeExporter commented 8 years ago

Original comment by pahud...@gmail.com on 2 Nov 2010 at 3:39