作者uftea (可爱茶)
看板FreeBSD
标题Re: [问题] NAT Port Forwarding有错误
时间Fri Mar 14 01:34:19 2008
※ 引述《bestwishes (觅知音 寻知己...)》之铭言:
: 可是我现在想要从外网远端到XP那台
: 查了一下资料 XP的远端桌面连线是用port 3389
: 所以我想用IP FORWARDING把140.115.208.168:3389转到192.168.112.168:3389
: 照着一些网上教学文件 却不得其果
: 爬了版上的文寻求解答 却看不太懂
题外话.. 我建议使用 pf .. 可以作的事更多..
如果是使用 pf 的话.. config 如下..
# 原本的 NAT
nat on de0 from 192.168.112.0/24 to any -> 140.115.208.168/32
# Portmapping
rdr on de0 proto tcp from any to 140.115.208.168/32 port 3389 -> (接下面)
192.168.112.168 port 3389
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 122.116.86.46