I’m sure this isn’t the only way to do it. Add this rule to pf.conf:
table <usage> const { 192.168.1.1 }
pass on $ext_if from any to <usage> label "accounting"
To see stats: pfctl -vv -t usage -T show
To clear stats: pfctl -t usage -T zero
I’m sure this isn’t the only way to do it. Add this rule to pf.conf:
table <usage> const { 192.168.1.1 }
pass on $ext_if from any to <usage> label "accounting"
To see stats: pfctl -vv -t usage -T show
To clear stats: pfctl -t usage -T zero