tools for network traffic accounting
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Nov 6 15:34:09 UTC 2006
On 2006-11-06 15:51, Niek <niek at bigfoot.com> wrote:
> Thanks, also to all others who answered this question.
> I found out that setting 'set loginterface <if>' in pf.conf makes it
> possible to get transfer statistics from pfctl -si. Maybe it is of
> interest for other beginners like me.
There is also `pfctl -vv -s Interface -i <ifname>', which may be of
interest in gathering per-interface statistics with PF:
% # pfctl -vv -s Interface -i ath0
% Password: ********
% No ALTQ support in kernel
% ALTQ related functions disabled
% ath0 (instance, attached)
% Cleared: Mon Nov 6 15:51:45 2006
% References: [ States: 0 Rules: 0 ]
% In4/Pass: [ Packets: 48403 Bytes: 39977970 ]
% In4/Block: [ Packets: 8600 Bytes: 1280772 ]
% Out4/Pass: [ Packets: 44268 Bytes: 3636974 ]
% Out4/Block: [ Packets: 0 Bytes: 0 ]
% In6/Pass: [ Packets: 0 Bytes: 0 ]
% In6/Block: [ Packets: 46 Bytes: 3152 ]
% Out6/Pass: [ Packets: 0 Bytes: 0 ]
% Out6/Block: [ Packets: 0 Bytes: 0 ]
% #
More information about the freebsd-questions
mailing list