看板FreeBSD
标 题Re: pf请教
发信站海大计中 BBS (Thu Mar 23 11:04:59 2006)
转信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!news.ntou!ntoucc
※ 引述《[email protected] (yufun)》之铭言:
> ---pf.conf----
> extdev='em0'
> intranet1='192.168.1.0/24'
> intranet2='192.168.2.0/24'
> nat on $extdev from $intranet1 to any -> $extdev
> nat on $extdev from $intranet2 to any -> $extdev
这部份的话.. intranet1 与 intranet2 是否要互通??
若要互通可以用 Routing 或 NAT 的方式..
这部份再看看..
> rdr on $intranet1 proto tcp from any to any port 21 -> 127.0.0.1 port 8021
^^^^^^^^^^
这应该要是一个 device 吧..
假设您的 intdev='em1'
rdr on $intdev proto tcp from $intranet1 to any port 21 -> 127.0.0.1 port 8021
--
┌┼ Or
igin:
国立台湾海洋大学˙海大计中 bbs.ntou.edu.tw
└┘ A
uthor:
uftea 从 EE7-028.EE.NTOU.edu.tw 发表