Re: check chain exists

Linux Advanced Routing and Traffic Control

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

 



> 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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux