酷!學園
技術討論區 => BSD 討論版 => 主題作者是: ahlek 於 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..
-
and if i wan only open port 1024-4000
how i going to set ??
-
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/