Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Mar 2005 17:51:58 +0100
From:      peter@bgnett.no (Peter N. M. Hansteen)
To:        freebsd-questions@freebsd.org
Subject:   Re: OpenBSD's pf and traffic
Message-ID:  <861xaamf9t.fsf@amidala.datadok.no>
In-Reply-To: <20050320093159.GA3213@mccme.ru> (Eugene M. Minkovskii's message of "Sun, 20 Mar 2005 12:31:59 %2B0300")
References:  <20050320093159.GA3213@mccme.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
"Eugene M. Minkovskii" <emin@mccme.ru> writes:

> Does any body know, how can I use OpenBSD's pf (packet filter) for
> determine total traffic volume on network interface? If it's
> impossible, what facility you recommend me to do this?

Various pfctl -s options (eg pfctl -s info) give you counters of bytes
and packets passed or blocked. If you use labels in your pass rules,
you'll get per label counters as well.

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?861xaamf9t.fsf>