Re: [PATCH nft v2] src: Allow to list ruleset without stateful information

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 16, 2017 at 10:05:33PM +0100, Pablo Neira Ayuso wrote:
> On Mon, Jan 16, 2017 at 06:40:40PM -0200, Elise Lennion wrote:
> > Currently only counter and quota have stateful information.
> > 
> > For named counters, packets and bytes are displayed as 0.
> > 
> > Standard list ruleset:
> > 
> > table ip filter {
> > 	counter https {
> > 		packets 161942 bytes 10253353
> > 	}
> > 
> > 	chain output {
> > 		type filter hook output priority 0; policy accept;
> > 		counter name tcp dport map { https : "https"}
> > 		tcp dport https counter packets 171211 bytes 10869045
> > 		tcp dport https quota 25 mbytes used 10 mbytes
> > 	}
> > }
> > 
> > With stateless option, -s:
> > 
> > table ip filter {
> > 	counter https {
> > 		packets 0 bytes 0
> > 	}
> > 
> > 	chain output {
> > 		type filter hook output priority 0; policy accept;
> > 		counter name tcp dport map { https : "https"}
> > 		tcp dport https counter
> > 		tcp dport https quota 25 mbytes
> > 	}
> > }
> 
> Applied, thanks Elise.

BTW, could you send me a patch to update nft-tests.py to use '-s'
option? So we don't get spurious errors when checking for rules with
stateful expressions and objects while there's traffic going on on the
testbed machine. I would forecast a oneliner patch for this.

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux