From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Vales Subject: Re: [SOLVED] Re: Native support of counting rules? Date: Thu, 03 Jan 2013 18:27:37 +0100 Message-ID: <50E5BF89.1010505@jvales.net> References: <20130102134421.GA17997@devnull> <50E43D07.50009@ngtech.co.il> <50E59C32.5090003@jvales.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Jan Engelhardt Cc: Aaron Lewis , netfilter mailing list On 03/01/13 17:05, Jan Engelhardt wrote: > On Thursday 2013-01-03 15:56, Jan Vales wrote: > >> Hi, >> >> why dont you use ... >> iptables-save | grep "\-A" | wc -l > > grep ^-A > > But the foremost question is: how is the rule count alone going to be > useful? > I dont think its useful at all - I just like stats and wanted to help ;) Especially with OP's requirement to allow non-root users to view this count. Therefore know that/when you changed something. lg ~Jan