The FreeBSD Diary |
(TM) | Providing practical examples since 1998If you buy from Amazon USA, please support us by using this link. |
new ipfilter option is really cool!
13 March 2001
|
I was reading the ipfilter
mailing list today, when I read this
message which talked about an option on ipfstat which I had not seen before.
So I rushed off to man
ipfstat where I found this:-t Show the state table in a way similar to they way top(1) shows the process table. States can be sorted using a number of different ways. This options requires ncurses(3) and needs to be com- piled in. It may not be available on all operating systems. See below, for more information on the I don't know about you, but my first thought was: way cool! I tried it out, but failed. It wasn't compiled into ipfilter. That's when I did another build world. Which meant I upgraded the build work script. Have a read of Build world on your fast box, install on your slow box. I've added a few options and hopefully made it more useful. |
What's it look like?
|
When you type ipfstat -t, you should see something like this
(I've shrunk this slightly):IP Filter: v3.4.16 - state top 22:38:03 Src = 0.0.0.0 Dest = 0.0.0.0 Proto = any Sorted by = # bytes Source IP Destination IP ST PR #pkts #bytes ttl 10.0.0.3,4378 154.11.89.164,6668 4/4 tcp 35310 3207948 119:59:57 10.0.0.3,4381 192.168.0.20,23 4/4 tcp 12610 1266318 119:59:59 10.0.5.5,1024 203.96.152.4,53 0/0 udp 14 1701 0:48 10.0.5.5,123 203.167.224.60,123 0/0 udp 4 304 0:44 194.25.0.125,53 10.0.5.5,53 0/0 udp 2 272 1:14 10.0.5.5,123 130.217.76.30,123 0/0 udp 2 152 0:57 This screen updates once per second. This can be interesting as you can see new connections arise and drop. It's quite fascinating to watch. On the realistic side, this can be a valuable tool in debugging your filtering rules. |
Compiling in ncurses support
14 March 2001
|
BSDaemon wrote in with this very useful information:
|
Compiling in ncurses support - even faster
28 March 2001
|
David Hill writes:
|
Yet faster still
30 March 2001
|
Will Andrews writes:
|