請問 tomatovpn port forwarding 的問題 - PCZONE 討論區

返回   PCZONE 討論區 > ▲ ADSL_CABLE_FTTH 寬 頻 上 網 討 論 > -- 網 路 硬 體 版


PCZONE 討論區



通知

-- 網 路 硬 體 版 "網路卡" , "HUB" ,"Switch","無線網路產品","頻寬分享器" 等網路硬體產品

會員
請問 tomatovpn port forwarding 的問題
我把兩台 AP 都裝了 tomatovpn (SgtPepperKSU 版),現在 vpn 算是測通了,可是不知如何設定 port forwarding,目前 Bittorrent 及 emule 的 port checker 都沒過。

我的網路配置如下:

Laptop -> AP2 -> Public AP -> Internet -> AP1 -> Internet
其中的 Public AP 有擋 ports。

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: UDP
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: 10.8.0.2

AP2(Openvpn client)
Start with router: v
Interface Type: TUN
Protocol: UDP
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 有設錯嗎?

在網路上查到如果是在 linux 下架 openvpn server, 執行下列指令就可以把 port forward 到 openvpn client,

iptables -t nat -A PREROUTING -p tcp --dport 1234 -j DNAT --to-destination 10.66.66.6
iptables -A FORWARD -s 10.66.66.6 -p tcp --dport 1234 -j ACCEPT

請問是不是直接 copy 到 tomato 內的 script 就可以了?

回覆


類似的主題
主題 主題作者 討論版 回覆 最後發表
請問 2 * WAN Port 產品?? mis2000 -- 網 路 硬 體 版 3 2002-11-06 05:21 PM
【求助】Game Port 的問題 pcsony -- 電 腦 硬 體 討 論 版 1 2002-10-09 03:09 PM
請教 TCP port 的問題 simontel -- 網 路 技 術 版 6 2002-07-30 09:27 AM
adsl 頻寬分配及firewall 擋 port 的問題? chengmou -- 網 路 技 術 版 5 2002-01-08 11:09 PM
請問 win2000 server 支配 port 的問題!! metcc -- Windows 討 論 版 2 2001-07-09 12:10 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。