返回列表 發帖
请问有否需要在 ddwrt 的 command shell 或 firewall 下 设置 iptables ?

TOP

因我的PPTP 最近在珠三角连接不到我在hk 的老家, 尝试改用openVPN的 static key 方式。在网上找到几个方法, 用我的Android手机测试, 但不成功, 现附上我的设定, 望师兄帮忙指正。谢谢!

dd-wrt server side:

command shell 的 start up:

openvpn --mktun --dev tap0
brctl addif br0 tap0
ifconfig tap0 0.0.0.0 promisc up
echo "
-----BEGIN OpenVPN Static key V1-----

...INSERT YOUR OWN CONTENT HERE...

-----END OpenVPN Static key V1-----
" > /tmp/static.key
ln -s /usr/sbin/openvpn /tmp/myvpn
/tmp/myvpn --dev tap0 --secret /tmp/static.key --comp-lzo --port 443 --proto tcp-server --verb 3 --daemon


在我的client side :

remote xxx.dyndns.com
port 443
dev tap
secret static.key
proto tcp-client
comp-lzo
route-gateway 192.168.1.1(根據AP所使用的LAN 位址而定)
redirect-gateway

在我的dd-wrt command shell 输入 的 Firewall 设定:

在command shell 下輸入

iptables -I INPUT 1 -p tcp --dport 443 -j ACCEPT

TOP

返回列表