ytzong / autoddvpn

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

ip-up/down不正常 #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.设置jffs模式,检查autoddvpn.log时提示不正确,ip-up/ip-down始终��
�示not exists

你期待是怎樣的結果,然而卻出現了什麼情形?
root@DD-WRT:~# tail -f /tmp/autoddvpn.log
[INFO#274] 12/Mar/2011:12:06:21 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:31 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:41 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:51 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:01 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:11 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:21 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:32 modifying /tmp/pptpd_client/ip-down
/tmp/pptpd_client/ip-down not exists
[INFO#274] 12/Mar/2011:12:07:32 ALL DONE. Let's wait for VPN being connected.

請提供以下資訊:

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

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)

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

Original issue reported on code.google.com by syx8...@gmail.com on 12 Mar 2011 at 4:28

GoogleCodeExporter commented 9 years ago
這倒是滿奇怪的,ifconfig ppp1 可以看到VPN的IP嗎? 

ls -al /tmp/pptpd_client/ 下面有哪些內容?

Original comment by pahud...@gmail.com on 12 Mar 2011 at 7:57

GoogleCodeExporter commented 9 years ago
root@DD-WRT:~# ifconfig ppp1
ppp1      Link encap:Point-to-Point Protocol
          inet addr:172.16.36.2  P-t-P:172.16.36.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1450  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)
==============
root@DD-WRT:~# ls -al /tmp/pptpd_client/
drwxr-xr-x    1 root     root            0 Mar 12 12:08 .
drwxrwxrwx    1 root     root            0 Jan  1  2000 ..
-rwxr-xr-x    1 root     root          991 Mar 12 16:02 ip-down
-rwxr-xr-x    1 root     root         1025 Mar 12 16:02 ip-up
-rwxr-xr-x    1 root     root          287 Mar 12 16:02 options.vpn
-rwxr-xr-x    1 root     root         2627 Mar 12 16:02 vpn
===============
thanks~

Original comment by syx8...@gmail.com on 12 Mar 2011 at 8:03

GoogleCodeExporter commented 9 years ago
你要不要再多試幾次看看?我現在沒辦法判斷原因,這情況��
�該不會發生才對。
基本上DDWRT開機之後會動態在 tmp/ppptpd_client/下產生 ip-up 
ip-down files, 
autoddvpn腳本會等待這兩個files產生之後進行修改,如果不存在
就再等待10秒再檢查。

請再試試看是否總是這個狀況?

Original comment by pahud...@gmail.com on 12 Mar 2011 at 8:42

GoogleCodeExporter commented 9 years ago
[INFO#274] 12/Mar/2011:12:06:21 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:31 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:41 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:06:51 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:01 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:11 /tmp/pptpd_client/ip-up not exists, sleep 10sec.
[INFO#274] 12/Mar/2011:12:07:21 /tmp/pptpd_client/ip-up not exists, sleep 10sec.

這個看起來等了70sec沒有產生/tmp/pptpd_client/ip-up
另外你確定一下你的run.sh是否抓取最新的版本?

Original comment by pahud...@gmail.com on 12 Mar 2011 at 8:44

GoogleCodeExporter commented 9 years ago
已经重新刷过路由的固件了试了,我再试试看吧

Original comment by syx8...@gmail.com on 12 Mar 2011 at 8:45

GoogleCodeExporter commented 9 years ago
run.sh 用的是 http://autoddvpn.googlecode.com/svn/trunk/pptp/jffs/run.sh
应该没错

Original comment by syx8...@gmail.com on 12 Mar 2011 at 9:00

GoogleCodeExporter commented 9 years ago
我跟你的路由器一样,也是这个问题。不知道什么原因

Original comment by nikeja...@gmail.com on 11 Dec 2011 at 6:34