Date: Fri, 18 Mar 2005 10:36:26 +0200 From: stephen <dinzdale@gmail.com> To: freebsd-pf@freebsd.org Subject: traffic accounting Message-ID: <ee918c7805031800363fed881e@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi all, Having a little difficulty regarding traffic counting. I have a macro ($soh) with about 30 IPs in it.. The first problem I was having was that: pass out on $ext_if from $soh to any keep state label "$srcaddr:: " was not passing traffic. (nat changing source address before reaching filtering rules) Someone then recommended having the following instead: pass in on $int_if from $soh to any keep state label "$srcaddr:: " pass out on $ext_if from any to any keep state label "total:: " which is now letting traffic out with the pass out rule, but the pass in rule is not counting traffic... whenever doing "pftcl -sl" I can see the "total::" label rising as more bandwidth is used, but all the other labels for all the private IPs remain on zero. Could someone possibly help rectify this? (they are also the last rules in the ruleset so the "last match wins" is correct) Thanks Stephen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ee918c7805031800363fed881e>