randybai / autoddvpn

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

20675版本下 openvpn启动故障 #181

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
請描述一下您進行怎樣的操作之後碰到了問題
1.openvpn.conf配置列表如若删除 
UP;DWON两条参数可正常运行,否则将提示一下错误

Options error: --up script fails with 'iptables': No such file or directory
Options error: --down script fails with 'iptables': No such file or directory 
Options error: Please correct these errors.

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

請提供以下資訊:

1. 您的路由器型號:Buffalo WZR-HP-G300NH2
2. DD-WRT版本:DD-WRT v24-sp2 (02/11/13) std;SVN revision 20675
3. 您的作業系統:Mac OS X
4. 您的瀏覽器版本:Safari 版本 6.0.2 (8536.26.17)
5. autoddvpn的連線模式 openvpn+jffs
6. autoddvpn的運行模式,graceMode
7. DD-WRT WAN口連線模式是 dhcp 

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

Options error: --up script fails with 'iptables': No such file or directory
Options error: --down script fails with 'iptables': No such file or directory 
Options error: Please correct these errors.

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

最后附上 openvpn设置

Original issue reported on code.google.com by wpae...@gmail.com on 22 Feb 2013 at 11:12

Attachments:

GoogleCodeExporter commented 9 years ago
我也遇到同样的问题

路由器名称 DD-WRT
路由器型号 Netgear WNDR4300
固件版本 DD-WRT v24-sp2 (07/24/13) std - build 22118
Kernel Version Linux 3.10.2 #252 Wed Jul 24 09:45:56 CEST 2013 mips

Original comment by crosstim...@gmail.com on 3 Sep 2013 at 10:23

GoogleCodeExporter commented 9 years ago
降固件版本,我最后用的r19342解决得问题

Original comment by wpae...@gmail.com on 3 Sep 2013 at 11:42

GoogleCodeExporter commented 9 years ago
iptables错误,去掉所有config中的iptables的语句

将下列防火墙命令 save firewall: 
iptables -A POSTROUTING -t nat -o tun0 -j MASQUERADE
一切正常了

Original comment by hugha...@gmail.com on 30 Mar 2014 at 1:25

GoogleCodeExporter commented 9 years ago
你可以另外写一个脚本 myvpnup.sh 在里面写
iptables -A POSTROUTING -t nat -o tun0 -j MASQUERADE
/jffs/openvpn/vpnup.sh

然后在openvpn的config里面写
up '/jffs/openvpn/myvpnup.sh'

Original comment by zhubenwu...@gmail.com on 18 Dec 2014 at 3:28