On 2010-01-24, Sunnz <[email protected]> wrote:
> Hi I am running OpenBSD as a gateway to the internet using pf to nat
> my LAN machines.
>
> Just wondering if there is a way to measure how much data have moved
> through my obsd router for a given frame of time? E.g. 300 MB today
> between 2pm ~ 5pm?
Using what's in base, you could record output from 'netstat
-nbI<iface>' at intervals and compare. Or 'netstat -I<iface> -w3600'
for a count updated every hour (3600 seconds). Or use pf stats.
Other ways include:
symon
snmpd + {mrtg, rtg, cacti, <...>}
net-snmp + " "
pf pflow + {nfprofile, pmacct, <...>}
munin
pmacct
zabbix
Loads of choices.