U can use ipfw+ipa+mrtg Can visit http://www.kruijff.org/ but for moment, probably, the author make some changes. Idea is that ipa read count traffic from ipfw rules, wich can be read with scripts and generate traffic with mrtg.