作者oversky0 (oversky0)
看板P2PSoftWare
标题[问题] openvpn 与防火墙 port forward 的问题
时间Sun Dec 20 11:51:42 2009
※ [本文转录自 Linux 看板]
作者: oversky0 (oversky0) 看板: Linux
标题: [问题] openvpn 与防火墙 port forward 的问题
时间: Sun Dec 20 00:44:19 2009
公司宿舍的无线 AP 没有任何的安全设定
(WEP/WPA/WPA2),用来 check email 密码
似乎有被拦截的危险。
加上 ports forwarding 没有设定,
bittorrent 和 emule 速度都非常慢。
我在家里架了 OpenVPN server,
目前上网连 google, skype, MSN 都没问题。
用查上网 IP 的网站查,
也是显示 vpn server 的 IP,
所以我想基本的 vpn 连线是 OK 的。
请问这样是不是就解决没有 WEP/WPA/WPA2
的问题?
目前 utorrent port check 还是不通,
我想是 AP 的 port forwarding 没设好,
我是利用修改过的 AP fireware,
openvpn server 和 client 都是
直接架在 AP 里。这 firmware 是 Linux
kernal 的,所以在这边问这种问题还不算
太偏离本版吧。大家觉得不适合的话我会自
行删文的。
我的网路配置如下:
Laptop -> AP2 -> Public AP -> Internet -> AP1 -> Internet
AP1(openvpn server)
Public IP: 111.222.333.444
Private IP: 192.168.0.1
Public AP
Public IP: 555.666.777.888
Private IP: 192.168.1.254
AP2(openvpn client):loggin Public AP in wireless client mode
WAN IP: 192.168.1.10
Private IP: 192.168.2.1
Laptop:
Private IP: 192.168.2.2
OpenVPN 的设定如下
AP1(openvpn server)
Start with router: v
Interface Type: TUN
Protocal: TCP
Port: 1194
Firewall: Automatic
Authorization Mode: Static Key
Local/remote endpoint: 10.8.0.1 10.8.0.2
Respond to DNS: v
Paste Static Key and save
Port Forwarding:
DMZ: 192.168.0.1
AP2(Openvpn client)
Start with router: v
Interface Type: TUN
Protocol: TCP
Server Address/Port 111.222.333.444 1194
Firewall: Automatic
Authorization Mode: Static Key
Create NAT on tunnel: v
Local/remote endpoint: 10.8.0.2 10.8.0.1
Redirect Internet traffic: v
Paste Static Key and save
Port Forwarding:
DMZ: 192.168.2.2
请问我 firewall 的 port forwarding 有设错吗?
还是 openvpn 并不适用於这种用途?
改用 tap 是不是就可以了?(tap 我设定有问题连不上)
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.42.140.77
1F:推 iso9660:改试PPTPD 许多前人用openVPN都还没有良善的解决方案 12/20 10:31
2F:→ oversky0:之前也有考虑 PPTP,不过查一下网路好像安全性不如 vpn 12/20 11:45
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.132.166.6