Dynamic ipfw rules' top

Guido Falsi mad at madpilot.net
Wed Dec 31 14:58:36 UTC 2014


On 12/31/14 15:43, Andrea Venturoli wrote:
> Hello.
> 
> This might be a strange idea, but does such a thing exist?
> 
> I mean: is there any tool that can show in real-time which dynamic rules
> are active, their timers, etc... like top does for processes?
> 

I'm using the port sysutils/cmdwatch with ipfw, like this:

cmdwatch "ipfw -d show | sed -n -e '/## Dynamic rules/,\$p'"

It's a little crude but works quite fine.

Needs to run as root, obviously.

-- 
Guido Falsi <mad at madpilot.net>


More information about the freebsd-net mailing list