作者 主題: ipfw setting  (閱讀 3325 次)

0 會員 與 1 訪客 正在閱讀本文。

ahlek

  • 懷疑的國中生
  • **
  • 文章數: 53
    • 檢視個人資料
ipfw setting
« 於: 2002-12-24 11:40 »
i have a freebsd box
inside got running Web,Smtp,Pop,ssh,Dns

just asking.. in the firewall rule is it i have to open
allow any ppl query port 53 tcp and udp ? is it necessary ??


what else i have to care in setting ipfw ??
tks again..
) ^-^ ^_^

ahlek

  • 懷疑的國中生
  • **
  • 文章數: 53
    • 檢視個人資料
ipfw setting
« 回覆 #1 於: 2002-12-24 11:46 »
and if i wan only open port 1024-4000
how i going to set ??
) ^-^ ^_^

小穎

  • 俺是博士!
  • *****
  • 文章數: 1005
    • 檢視個人資料
ipfw setting
« 回覆 #2 於: 2002-12-25 10:14 »
引述: "ahlek"
and if i wan only open port 1024-4000
how i going to set ??


pass in/out proto tcp/udp from xxx to xxx port 1024 >< 4000
if u use tcp , please add flags S keep state
if u use udp , please add keep state
if u use tcp/udp , add keep state
ex.
pass in proto tcp from 192.168.0.0/24 to any port 1024 >< 4000 flags S keep state
if u have any questions,please look ipfilter's documents.^^
http://coombs.anu.edu.au/~avalon/