From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Toby Cantor" Date: Mon, 15 Dec 2003 01:30:38 +0000 Subject: Re: [LARTC] check chain exists Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > On Sunday 14 December 2003 21:47, Mihai Vlad wrote: > > Easy question: > > > > Can you give me a little piece of script that checks if a custom chain > > exists in iptables? > if `iptables -L ` > then > echo chain found > fi > For whatever it's worth, that command would run quicker as 'iptables -nL ' -toby _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/