Re: Re2: OpenBSD 4.5: pfctl -s info fails to give me the right interface statistics

2009-10-03 Thread Alvaro Mantilla Gimenez
Henning Brauer escribis:
> sigh. a long thread with the blind helping the blind and nobody
> bothering to read the manpage.
>
>   $ sudo pfctl -vvsI -i vlan2
> vlan2
> Cleared: Thu Mar 12 15:07:47 2009
> References:  [ States:  0  Rules: 778 ]
> In4/Pass:[ Packets: 10049782204Bytes: 4289025400994
]
> In4/Block:   [ Packets: 1148385Bytes: 143079702 ]
> Out4/Pass:   [ Packets: 10158717276Bytes: 5573115663328
]
> Out4/Block:  [ Packets: 38705353   Bytes: 2696216698 ]
> In6/Pass:[ Packets: 0  Bytes: 0 ]
> In6/Block:   [ Packets: 46 Bytes: 3312 ]
> Out6/Pass:   [ Packets: 2  Bytes: 136 ]
> Out6/Block:  [ Packets: 0  Bytes: 0 ]
>
>

Correct !! That give me the statistics of the interface that I want but
the problem here was originated because pfstats didn't show anything
with the two "set loginterface $..." defined...and I assumed (probably
wrong) that it was for the behavior of "pfctl -s info".

Alvaro



Re: Re2: OpenBSD 4.5: pfctl -s info fails to give me the right interface statistics

2009-10-03 Thread Henning Brauer
sigh. a long thread with the blind helping the blind and nobody
bothering to read the manpage.

  $ sudo pfctl -vvsI -i vlan2 
vlan2
Cleared: Thu Mar 12 15:07:47 2009
References:  [ States:  0  Rules: 778 ]
In4/Pass:[ Packets: 10049782204Bytes: 4289025400994  ]
In4/Block:   [ Packets: 1148385Bytes: 143079702 ]
Out4/Pass:   [ Packets: 10158717276Bytes: 5573115663328  ]
Out4/Block:  [ Packets: 38705353   Bytes: 2696216698 ]
In6/Pass:[ Packets: 0  Bytes: 0 ]
In6/Block:   [ Packets: 46 Bytes: 3312 ]
Out6/Pass:   [ Packets: 2  Bytes: 136 ]
Out6/Block:  [ Packets: 0  Bytes: 0 ]


-- 
Henning Brauer, h...@bsws.de, henn...@openbsd.org
BS Web Services, http://bsws.de
Full-Service ISP - Secure Hosting, Mail and DNS Services
Dedicated Servers, Rootservers, Application Hosting - Hamburg & Amsterdam



Re: Re2: OpenBSD 4.5: pfctl -s info fails to give me the right interface statistics

2009-10-03 Thread Rod Whitworth
On Fri, 02 Oct 2009 23:49:32 -0600, Alvaro Mantilla Gimenez wrote:

>from the man page too:
>
># pfctl -s info
>
>In this example pf(4) collects statistics on the interface named dc0:
>
>  set loginterface dc0
>
>I am not a native english speaker but...maybe the man page is ambiguous?

There is no ambiguity in any manpage that includes the BNF
grammar

The BNF says that it is ONE interface, not one or more interfaces.



*** NOTE *** Please DO NOT CC me. I  subscribed to the list.
Mail to the sender address that does not originate at the list server is 
tarpitted. The reply-to: address is provided for those who feel compelled to 
reply off list. Thankyou.

Rod/
---
This life is not the real thing.
It is not even in Beta.
If it was, then OpenBSD would already have a man page for it.