FreeBSD 7.x ipfw pipe show order
Matthew Walker
drinking.coffee at gmail.com
Fri Mar 11 15:10:07 UTC 2011
Since it's ipfw pipe day, might as well add another :)
I have 4 dynamic pipes, and ipfw pipe show does not list them in numeric
order. Instead lists them as 20,25,10,30. Has this been fixed with later
version of FreeBSD? It seems mainly a cosmetic issue.
For example:
ipfw pipe 10 config bw 128k queue 100 mask dst-ip 0xff000000
ipfw pipe 20 config bw 1000k queue 100 mask dst-ip 0xff000000
ipfw pipe 25 config bw 2000k queue 100 mask src-ip 0xffffffff
ipfw pipe 30 config bw 10000k queue 100 mask dst-ip 0xff000000
# ipfw pipe show
00020: 1.000 Mbit/s 0 ms 100 sl. 2 queues (1024 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0xff000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
0 ip 0.0.0.0/0 96.0.0.0/0 1 178 0
0 0
512 ip 0.0.0.0/0 67.0.0.0/0 2 317 0
0 0
00025: 2.000 Mbit/s 0 ms 100 sl. 251 queues (1024 buckets) droptail
mask: 0x00 0xffffffff/0x0000 -> 0x00000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
512 ip x.x.x.209/0 0.0.0.0/0 123 5412 0 0 0
514 ip x.x.x.208/0 0.0.0.0/0 192 8855 0 0 0
516 ip x.x.x.211/0 0.0.0.0/0 570124 52014722 0 0 0
00010: 128.000 Kbit/s 0 ms 100 sl. 2 queues (1024 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0xff000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
0 ip 0.0.0.0/0 24.0.0.0/0 1 60 0
0 0
512 ip 0.0.0.0/0 79.0.0.0/0 1 52 0
0 0
00030: 10.000 Mbit/s 0 ms 100 sl. 2 queues (1024 buckets) droptail
mask: 0x00 0x00000000/0x0000 -> 0xff000000/0x0000
BKT Prot ___Source IP/port____ ____Dest. IP/port____ Tot_pkt/bytes
Pkt/Byte Drp
0 ip 0.0.0.0/0 72.0.0.0/0 1 296 0
0 0
512 ip 0.0.0.0/0 71.0.0.0/0 2 116 0
0 0
More information about the freebsd-ipfw
mailing list