酷!學園

技術討論區 => BSD 討論版 => 主題作者是: ahlek 於 2002-12-24 11:40

主題: ipfw setting
作者: ahlek2002-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..
主題: ipfw setting
作者: ahlek2002-12-24 11:46
and if i wan only open port 1024-4000
how i going to set ??
主題: ipfw setting
作者: 小穎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/