This looks to me to either be a bug in how v3.4.29 handle the "count" action
in a group situation, or the BNF is wrong in the man page.

This rule set works:
pass  in quick on xl0 all head 200
count in            from 192.168.0.0/16      to any

This rule set fails with the following error message:
pass  in quick on xl0 all head 200
count in            from 192.168.0.0/16      to any group 200

2:ioctl(add/insert rule): No such process

Environment information, as per the FAQ (probably over-kill in this case).
Note that MAC and IP addresses have been sanitized.

firewall# uname -a
FreeBSD firewall 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Sat Jan 11 05:31:14 CST
2003     [EMAIL PROTECTED]:/usr/src/sys/compile/FIREWALL  i386

firewall# ifconfig -a
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 222.888.149.122 netmask 0xfffffff8 broadcast 222.888.149.127
        ether 77:51:34:20:f9:ba
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
xl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 10.10.240.162 netmask 0xfffffffc broadcast 10.10.240.163
        ether 77:61:38:9a:45:90
        media: Ethernet autoselect (100baseTX)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000

firewall# netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            222.888.149.126    UGSc       57     4917    xl0
10.10.240.160/30   link#2             UC          2        0    xl1
10.10.240.161      77:09:7c:a3:6c:04  UHLW        1        2    xl1   1044
10.10.240.162      77:61:38:9a:45:90  UHLW        0        4    lo0
127.0.0.1          127.0.0.1          UH          0        0    lo0
172.16             222.888.149.126    UGSc        0     5844    xl0
204.146.91         10.10.240.161      UGSc        1     7271    xl1
222.888.149.120/29 link#1             UC          2        0    xl0
222.888.149.122    77:51:34:20:f9:ba  UHLW        0        4    lo0
222.888.149.126    77:01:3c:09:80:f5  UHLW       58        4    xl0    997

firewall# netstat -i
Name  Mtu   Network       Address            Ipkts Ierrs    Opkts Oerrs
Coll
xl0   1500  <Link#1>    77:51:34:20:f9:ba  1543685     0   120216     0
0
xl0   1500  222.888.149.1 firewall           33851     -
1103     -     -
xl1   1500  <Link#2>    77:61:38:9a:45:90     5940     0     7359     0
0
xl1   1500  10.10.240.160 firenat                8     -
   6     -     -
lo0   16384 <Link#3>                             8     0        8     0
0
lo0   16384 your-net      localhost              0     -
   0     -     -

firewall# netstat -s -p ip
ip:
        172888 total packets received
        0 bad header checksums
        0 with size smaller than minimum
        0 with data size < data length
        0 with ip length > max ip packet size
        0 with header length < data size
        0 with data length < header length
        0 with bad options
        0 with incorrect version number
        0 fragments received
        0 fragments dropped (dup or out of space)
        0 fragments dropped after timeout
        0 packets reassembled ok
        33860 packets for this host
        3 packets for unknown/unsupported protocol
        13121 packets forwarded (0 packets fast forwarded)
        40840 packets not forwardable
        1764 packets received for unknown multicast group
        0 redirects sent
        21082 packets sent from this host
        31 packets sent with fabricated ip header
        0 output packets dropped due to no bufs, etc.
        0 output packets discarded due to no route
        0 output datagrams fragmented
        0 fragments created
        0 datagrams that can't be fragmented
        0 tunneling packets that can't find gif
        0 datagrams with bad address in header

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

firewall# ipfstat
 IPv6 packets:          in 0 out 0
 input packets:         blocked 83297 passed 89591 nomatch 1045 counted 0
short 0
output packets:         blocked 0 passed 34234 nomatch 145 counted 0 short 0
 input packets logged:  blocked 0 passed 0
output packets logged:  blocked 0 passed 0
 packets logged:        input 2074 output 0
 log failures:          input 0 output 0
fragment state(in):     kept 0  lost 0
fragment state(out):    kept 0  lost 0
packet state(in):       kept 0  lost 0
packet state(out):      kept 0  lost 0
ICMP replies:   83297   TCP RSTs sent:  0
Invalid source(in):     0
Result cache hits(in):  94404   (out):  13075
IN Pullups succeeded:   0       failed: 0
OUT Pullups succeeded:  0       failed: 0
Fastroute successes:    83139   failures:       158
TCP cksum fails(in):    0       (out):  0
Packet log flags set: (0)
        none

firewall# ipfstat -io
pass in quick on xl0 from any to any head 200

firewall# ipnat -slv
mapped  in      5850    out     7271
added   115     expired 112
no memory       0       bad nat 0
inuse   3
rules   2
wilds   0
table 0xbfbffb38 list 0xc0c57100
List of active MAP/Redirect filters:
map xl1 from any to 172.16.91.0/24 -> 10.10.240.162/32 portmap tcp/udp
1025:65000
map xl1 from any to 172.16.91.0/24 -> 10.10.240.162/32

List of active sessions:
MAP 172.16.97.230   1223  <- -> 10.10.240.162   1138  [204.146.91.140 9991]
        age 863852 use 0 sumd 0xc61/0xc61 pr 6 bkt 52/6 flags 1 drop 0/0
        ifp xl1 bytes 11708 pkts 121
MAP 172.16.97.230   1222  <- -> 10.10.240.162   1137  [204.146.91.142 9991]
        age 863950 use 0 sumd 0xc61/0xc61 pr 6 bkt 3/84 flags 1 drop 0/0
        ifp xl1 bytes 3151 pkts 34
MAP 172.16.97.230   1221  <- -> 10.10.240.162   1136  [204.146.91.143 9991]
        age 173 use 0 sumd 0xc61/0xc61 pr 6 bkt 41/122 flags 1 drop 0/0
        ifp xl1 bytes 518 pkts 10

List of active host mappings:
172.16.97.230 -> 10.10.240.162 (use = 3 hv = 42)





Reply via email to