pf請教
---pf.conf----
extdev='em0'
intranet1='192.168.1.0/24'
intranet2='192.168.2.0/24'
set limit frags 30000
set limit states 25000
set block-policy return
set require-order yes
set optimization aggressive
set loginterface $extdev
scrub in all
nat on $extdev from $intranet1 to any -> $extdev
nat on $extdev from $intranet2 to any -> $extdev
rdr on $intranet1 proto tcp from any to any port 21 -> 127.0.0.1 port 8021
antispoof log quick for $extdev
pass in all
pass out all
-----------------------------------------------
如果rdr那一行註解起來是沒問題的,但是nat下面的主機無法使用外部的ftp
如果打開了,重讀設定時會出現
syntax error
pfctl: Syntax error in config file: pf rules not loaded
請教這一行哪裡有錯呢?謝謝!!
--
Ξ Origin: 中興大學天樞資訊網 <bbs.nchu.edu.tw>
Ξ From : 220-134-247-35.HINET-IP.hinet.net
討論串 (同標題文章)
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章