On Fri, Feb 20, 2004 at 11:46:25PM +0100, Cedric Berger wrote:
> Brent Bolin wrote:
> 
> >Hello,
> >
> >Does anybody know of a way to capture statistics on multiple
> >interfaces running pf
> >
> Aha!
> Up to recently, that was impossible to grab stats on more than
> one interface with PF. You can now do it now using -CURRENT by
> doing "pfctl -i fxp0 -vvsI" for example.

  so i had an idea which seems to be negated by that, but fwiw, 
  what about:

# sed 's/set loginterface.*/set loginterface <new_interface>/' \
  < /etc/pf.conf | pfctl -Of- 

  where <new_interface> could be either a macro set earlier in a
  script / commandline.  the -O would only load in the options.

  i don't know if my example above only works by virtue of me
  having a -current past Wed Dec 31 11:18:25 2003 UTC; which
  has pfvar.h 1.180 which seems to be where DIOCIGETIFACES was
  introduced.  

  jared

-- 

[ openbsd 3.4 GENERIC ( feb 14 ) // i386 ]

Reply via email to