Hi.

> This is a FreeBSD-stable machine.
> 
> ipnat.rules
> rdr xl0 $extip/32 port 80 -> $intip port 80
> rdr xl0 $extip/32 port 554 -> $intip port 554
> rdr xl0 $extip/32 port 554 -> $intip port 554 udp
> rdr xl0 $extip/32 port 1755 -> $intip port 1755
> rdr xl0 $extip/32 port 1755 -> $intip port 1755 udp
> bimap xl0 $intip/32 -> $extip/32
> 
> ipf.rules
> pass in log quick proto tcp from any to $intip/32
> port = 80 keep state group 200
> pass in log quick proto tcp from any to $intip/32
> port = 554 keep state group 200
> pass in log quick proto udp from any to $intip/32
> port = 554 keep state group 200
> pass in log quick proto tcp from any to $intip/32
> port = 1755 keep state group 200
> pass in log quick proto udp from any to $intip/32
> port = 1755 keep state group 200
> 

Try define a head that you assign to a group. I have
the following in my /etc/ipf.conf:

block in quick on fxp1 all head 200
block in proto tcp all head 210 group 200
block in proto udp all head 220 group 200

pass in quick proto tcp from any to internal-ip port =
80 flags S keep state group 210    # http

some pass-in-rule proto udp keep state etc. group 220

etc.

Running on FreeBSD 5.1.

regards
Claus


Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og 
virusscan

Reply via email to