randybai / autoddvpn

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

制作手动启动VPN脚本时,UP,DOWN命令出错 #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.我新买一台路由,准备按教程中的手动启动脚本启动VPN,但
其中的UP,DOWN命令出错,导致脚本运行不成功
2.如去除UP,DOWN命令,则可以拨通
3.用客端VPN可以拨通,用的是STRONGVPN,附件里有会报错的设置
,去除后UP,DOWN句能拨通

你期待是怎樣的結果,然而卻出現了什麼情形?期待OPENVPN手�
��启动,但出现脚本错误

請提供以下資訊:

1. 您的路由器型號:linksys3000
2. DD-WRT版本:dd-wrt.v24-18777_NEWD-2_K2.6_openvpn-nv60k
3. 您的作業系統:win7
4. 您的瀏覽器版本:chrome
5. autoddvpn的連線模式(pptp+wget, pptp+jffs, 
openvpn+jffs等):计划用openvpn+jffs
6. autoddvpn的運行模式,傳統模式(classicMode)還是優雅模式(g
raceMode):计划用graceMode
7. DD-WRT WAN口連線模式是 pptp or dhcp or static :static
8. 運行autoddvpn之後DD-WRT 的命令輸出 # route -n  | tail -n 20 
:Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
172.18.35.254   0.0.0.0         255.255.255.255 UH    0      0        0 vlan2
172.18.35.0     0.0.0.0         255.255.255.0   U     0      0        0 vlan2
192.168.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         172.18.35.254   0.0.0.0         UG    0      0        0 vlan2

(以上1-8點必填,否則可能沒辦法即時協助你解決問題)

如果方便的話,請參考這裡的說明,貼上autoddvpn.log內容
(說明:http://code.google.com/p/autoddvpn/wiki/DEBUG)
[INFO#6233] 12/Apr/2012:03:43:11 vpndown.sh started
[INFO#6241] 12/Apr/2012:03:43:53 vpnup.sh started
[INFO#6241] 12/Apr/2012:03:43:53 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#6241] 12/Apr/2012:03:44:04 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#6241] 12/Apr/2012:03:44:14 got /tmp/autoddvpn.lock , sleep 10 secs. #3/6
[INFO#6241] 12/Apr/2012:03:44:24 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[INFO#6241] 12/Apr/2012:03:44:34 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#6241] 12/Apr/2012:03:44:44 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[ERROR#6241] 12/Apr/2012:03:44:54 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.
[INFO#6698] 12/Apr/2012:04:10:29 vpndown.sh started
[INFO#6698] 12/Apr/2012:04:10:29 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#6698] 12/Apr/2012:04:10:39 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#6781] 12/Apr/2012:04:14:06 log starts
[INFO#6781] 12/Apr/2012:04:14:06 openvpn+jffs mode
[INFO#6781] 12/Apr/2012:04:14:06 temporarily set date to 20100729 to fix 
openvpn SSL/TLS issue. see http://goo.gl/bb6a
[INFO#6781] 29/Jul/2010:12:00:00 modifying /tmp/openvpncl/route-up.sh
[INFO#6781] 29/Jul/2010:12:00:00 /tmp/openvpncl/route-up.sh modified
[INFO#6781] 29/Jul/2010:12:00:00 modifying /tmp/openvpncl/route-down.sh
[INFO#6781] 29/Jul/2010:12:00:00 /tmp/openvpncl/route-down.sh modified
[INFO#6781] 29/Jul/2010:12:00:00 ALL DONE. Let's wait for VPN being connected.
[INFO#6895] 12/Apr/2012:04:21:51 vpnup.sh started
[INFO#6895] 12/Apr/2012:04:21:51 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#6895] 12/Apr/2012:04:22:01 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#6895] 12/Apr/2012:04:22:11 got /tmp/autoddvpn.lock , sleep 10 secs. #3/6
[INFO#6895] 12/Apr/2012:04:22:21 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[INFO#6895] 12/Apr/2012:04:22:31 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#6895] 12/Apr/2012:04:22:41 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[ERROR#6895] 12/Apr/2012:04:22:52 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.
[INFO#6934] 12/Apr/2012:04:23:13 vpndown.sh started
[INFO#6934] 12/Apr/2012:04:23:13 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#6934] 12/Apr/2012:04:23:23 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6
[INFO#6934] 12/Apr/2012:04:23:33 got /tmp/autoddvpn.lock , sleep 10 secs. #3/6
[INFO#6934] 12/Apr/2012:04:23:43 got /tmp/autoddvpn.lock , sleep 10 secs. #4/6
[INFO#6934] 12/Apr/2012:04:23:53 got /tmp/autoddvpn.lock , sleep 10 secs. #5/6
[INFO#6934] 12/Apr/2012:04:24:03 got /tmp/autoddvpn.lock , sleep 10 secs. #6/6
[ERROR#6934] 12/Apr/2012:04:24:13 still got /tmp/autoddvpn.lock , I'm aborted. 
Fix me.
[INFO#7255] 12/Apr/2012:04:42:36 vpnup.sh started
[INFO#7255] 12/Apr/2012:04:42:36 got /tmp/autoddvpn.lock , sleep 10 secs. #1/6
[INFO#7255] 12/Apr/2012:04:42:46 got /tmp/autoddvpn.lock , sleep 10 secs. #2/6

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

Original issue reported on code.google.com by demilic...@gmail.com on 12 Apr 2012 at 3:47

Attachments:

GoogleCodeExporter commented 9 years ago
自问自答..
加句“openvpn.conf 加上 script-security 3 system”
就OK了,原来是脚本权限不足跑不了命令

Original comment by demilic...@gmail.com on 12 Apr 2012 at 7:19