Hello list,

        Why keep state not work?

        Look this case:

        I request play the real clip and not work, the log under ipf refuse flags, 
but not set flags to OUT.

server:~# ipf -V
ipf: IP Filter: v3.4.26 (336)
Kernel: IP Filter: v3.4.26
Running: yes
Log Flags: 0 = none set
Default: block all, Logging: available
Active list: 0

server:~# ipfstat -on
@1 pass out quick on lo0 from any to any
@2 pass out on fxp0 from any to any keep state
@3 block out log on xl0 from any to any head 20
@1 pass out quick on xl0 from 10.0.0.0/8 to any group 20
@2 pass out quick on xl0 from 192.168.51.0/27 to any group 20
@3 pass out quick on xl0 from 192.168.51.32/27 to any group 20
@4 pass out quick on xl0 from 192.168.51.64/27 to any group 20

server:~# tail -f /var/log/ipflog
26/04/2002 09:58:18.950688 xl0 @0:3 b 63.209.178.219,554 -> 
192.168.51.66,2459 PR tcp len 20 48 -AS OUT
26/04/2002 09:58:24.481000 xl0 @0:3 b 63.209.178.219,554 -> 
192.168.51.66,2459 PR tcp len 20 48 -AS OUT
26/04/2002 09:58:25.497652 xl0 @0:3 b 63.209.178.219,554 -> 
192.168.51.66,2459 PR tcp len 20 48 -AS OUT
26/04/2002 09:58:27.339425 xl0 @0:3 b 63.209.178.219,554 -> 
192.168.51.66,2445 PR tcp len 20 48 -AS OUT

ipf.rules:
block return-icmp-as-dest(1) in log on fxp0 all head 10
   # IN
   pass in on fxp0 all group 10

pass out on fxp0 all keep state

## IN/OUT xl0
pass in quick on xl0 all keep state

block out log on xl0 all head 20
   pass out quick on xl0 from 10.0.0.0/8 to any group 20
   pass out quick on xl0 from 192.168.51.0/27 to any group 20
   pass out quick on xl0 from 192.168.51.32/27 to any group 20
   pass out quick on xl0 from 192.168.51.64/27 to any group 20

Regards
Marcus Grando
<marcus at big dot univali dot br>

Reply via email to