* [LARTC] check chain exists @ 2003-12-14 20:47 Mihai Vlad 2003-12-14 21:43 ` Stef Coene 2003-12-15 1:30 ` Toby Cantor 0 siblings, 2 replies; 3+ messages in thread From: Mihai Vlad @ 2003-12-14 20:47 UTC (permalink / raw) To: lartc [-- Attachment #1: Type: text/plain, Size: 143 bytes --] 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 [-- Attachment #2: Type: text/html, Size: 1737 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] check chain exists 2003-12-14 20:47 [LARTC] check chain exists Mihai Vlad @ 2003-12-14 21:43 ` Stef Coene 2003-12-15 1:30 ` Toby Cantor 1 sibling, 0 replies; 3+ messages in thread From: Stef Coene @ 2003-12-14 21:43 UTC (permalink / raw) To: lartc 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] check chain exists 2003-12-14 20:47 [LARTC] check chain exists Mihai Vlad 2003-12-14 21:43 ` Stef Coene @ 2003-12-15 1:30 ` Toby Cantor 1 sibling, 0 replies; 3+ messages in thread From: Toby Cantor @ 2003-12-15 1:30 UTC (permalink / raw) To: lartc > 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/ ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-12-15 1:30 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-12-14 20:47 [LARTC] check chain exists Mihai Vlad 2003-12-14 21:43 ` Stef Coene 2003-12-15 1:30 ` Toby Cantor
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.