Home arrow Journal arrow Counting number of connections on FreeBSD router with IPFW
Counting number of connections on FreeBSD router with IPFW PDF
Monday, 25 July 2011
If we want to count the number of concurrent connections from our FreeBSD router or bridge we can add a rule in our IPFW firewall that counts connections (add following line to your IPFW firewall):

  ipfw add 10 count ip from any to any setup

And then once at 60 seconds we will run (from command line or a cron script):

  ipfw show 10 | awk '{print $2;}'

And then we can use that value to draw graphics using for example mrtg tool.

 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?