MOB> Does anyone know, how to account per-direction traffic with PF?

MOB> Imagine I have a rule:
MOB> pass in on $int_if from $some_machine to any keep state label some-machine

MOB> When I invoke /sbin/pfctl -sl I get something like:
MOB> some-machine 5904 2510 130379

MOB> where 130371 (the last number) is the TOTAL traffic that was generated by
MOB> the named rule.
MOB> I wish I could know the amount of incoming traffic for that machine
MOB> separately from
MOB> the outgoing.

AFAIK - write two rules (for each direction) and don't use "keep state"


Reply via email to