Easy question: Can you give me a little piece of script that checks if a custom chain exists in iptables? Thanks in advance, Mihai Vlad
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 <chain>` then echo chain found fi Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.openprojects.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.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 <chain>` > then > echo chain found > fi >For whatever it''s worth, that command would run quicker as ''iptables -nL <chain>'' -toby _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/