7kbird / autoddvpn

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

wget pptp 模式成功了一次再也没成功过 #125

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1. pptp + wget
2. 成功过一次
3. 再也没成功过

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

請提供以下資訊:

1. 您的路由器型號: Linksys 54gs
2. DD-WRT版本:Firmware: DD-WRT v24-sp2 (08/07/10) mega
3. 您的作業系統:Linux
4. 您的瀏覽器版本:Chrome
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, openvpn+jffs等):pptp+wget
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):Classic
7. DD-WRT WAN口連線模式是 pptp or dhcp or static : pppoe
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 :
(以上1-8點必填,否則可能沒辦法即時協助你解決問題)
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.28.1.1      0.0.0.0         255.255.255.255 UH    0      0        0 ppp1
218.1.60.200    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
218.1.60.200    0.0.0.0         255.255.255.255 UH    0      0        0 ppp0
135.251.214.0   0.0.0.0         255.255.255.0   U     0      0        0 br0
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         218.1.60.200    0.0.0.0         UG    0      0        0 ppp0

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)
我常识手动 运行脚本 这样显示
root@BETERWORK:/tmp# chmod a+x run.sh
root@BETERWORK:/tmp# ./run.sh
+ VPNUP=vpnup.sh
+ VPNDOWN=vpndown.sh
+ VPNLOG=/tmp/autoddvpn.log
+ DLDIR=http://autoddvpn.googlecode.com/svn/trunk/
+ NCCMD=nc -w 10 autoddvpn.googlecode.com 80
+ PID=4296
+ INFO=[INFO#4296]
+ DEBUG=[DEBUG#4296]
+ IPUP=/tmp/pptpd_client/ip-up
+ IPDOWN=/tmp/pptpd_client/ip-down
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:12 log starts
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:12 pptp+wget mode
+ cd /tmp
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:12 getting vpnup.sh
+ which nc
+ [ /usr/bin/nc ]
+ wget http://autoddvpn.googlecode.com/svn/trunk/vpnup.sh
Connecting to autoddvpn.googlecode.com (74.125.128.82:80)
+ echo [INFO#4296] failed, trying again
[INFO#4296] failed, trying again
+ wc -l vpnup.sh
+ awk {print $1}
+ [ 3634 -ne 0 ]
+ break
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:13 getting vpndown.sh
+ which nc
+ [ /usr/bin/nc ]
+ wget http://autoddvpn.googlecode.com/svn/trunk/vpndown.sh
Connecting to autoddvpn.googlecode.com (74.125.128.82:80)
+ echo [INFO#4296] failed, trying again
[INFO#4296] failed, trying again
+ wc -l vpndown.sh
+ awk {print $1}
+ [ 3546 -ne 0 ]
+ break
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:13 modifying /tmp/pptpd_client/ip-up
+ [ -e /tmp/pptpd_client/ip-up ]
+ sed -ie s#exit 0#/tmp/vpnup.sh pptp\nexit 0#g /tmp/pptpd_client/ip-up
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:14 /tmp/pptpd_client/ip-up modified
+ break
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:14 modifying /tmp/pptpd_client/ip-down
+ [ -e /tmp/pptpd_client/ip-down ]
+ sed -ie s#exit 0#/tmp/vpndown.sh pptp\nexit 0#g /tmp/pptpd_client/ip-down
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:14 /tmp/pptpd_client/ip-down modified
+ date +%d/%b/%Y:%H:%M:%S
+ echo [INFO#4296] 13/Mar/2012:00:30:14 ALL DONE. Let's wait for VPN being 
connected.

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

Original issue reported on code.google.com by beterh...@gmail.com on 12 Mar 2012 at 4:36

GoogleCodeExporter commented 9 years ago
ifconfig 内容

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:58.37.32.151  P-t-P:218.1.60.200  Mask:255.255.255.255
          UP POINTOPOINT RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:106185 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66719 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:111235318 (106.0 MiB)  TX bytes:6624031 (6.3 MiB)

ppp1      Link encap:Point-to-Point Protocol  
          inet addr:172.28.1.18  P-t-P:172.28.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1446  Metric:1
          RX packets:71 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:55328 (54.0 KiB)  TX bytes:112 (112.0 B)

ppp1 是 VPN 链接 其实已经连上

Original comment by beterh...@gmail.com on 12 Mar 2012 at 4:37