All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: How to check user-defined chains
  2002-10-28 16:04 How to check user-defined chains Oleksandr Darchuk
@ 2002-10-28 15:40 ` Bart
  2002-10-28 18:39   ` Robert P. J. Day
  2002-10-28 16:43 ` R. Sterenborg
  1 sibling, 1 reply; 4+ messages in thread
From: Bart @ 2002-10-28 15:40 UTC (permalink / raw)
  To: o.darchuk; +Cc: netfilter



Oleksandr Darchuk wrote:

>Hello.
>
>Are there any ways to know all user-defined chains for iptables (like 
>/proc/net/ip_tables_names for tables)? 
>I try to builded my ipfw script using many own chains, but it's hard to 
>delete all of them 
>
to delete them all, just perform iptables -X

>-- I must remember all of previous definitions. Are there 
>any standart solutions?
>Thanx for all advises.
>
>
>
>  
>
greetz




^ permalink raw reply	[flat|nested] 4+ messages in thread

* How to check user-defined chains
@ 2002-10-28 16:04 Oleksandr Darchuk
  2002-10-28 15:40 ` Bart
  2002-10-28 16:43 ` R. Sterenborg
  0 siblings, 2 replies; 4+ messages in thread
From: Oleksandr Darchuk @ 2002-10-28 16:04 UTC (permalink / raw)
  To: netfilter

Hello.

Are there any ways to know all user-defined chains for iptables (like 
/proc/net/ip_tables_names for tables)? 
I try to builded my ipfw script using many own chains, but it's hard to 
delete all of them -- I must remember all of previous definitions. Are there 
any standart solutions?
Thanx for all advises.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: How to check user-defined chains
  2002-10-28 16:04 How to check user-defined chains Oleksandr Darchuk
  2002-10-28 15:40 ` Bart
@ 2002-10-28 16:43 ` R. Sterenborg
  1 sibling, 0 replies; 4+ messages in thread
From: R. Sterenborg @ 2002-10-28 16:43 UTC (permalink / raw)
  To: netfilter

> Are there any ways to know all user-defined chains for iptables
(like
> /proc/net/ip_tables_names for tables)?
> I try to builded my ipfw script using many own chains, but
> it's hard to
> delete all of them -- I must remember all of previous

iptables -X
iptables -t nat -X
iptables -t mangle -X

man iptables, specifically the last line :

-X, --delete-chain
Delete  the  specified  user-defined chain.  There must be no
references to the chain.  If there are,              you must delete
or replace the referring rules before the chain can be deleted.  If
no  argument  is given, it will attempt to delete every non-builtin
chain in the table.


Rob



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to check user-defined chains
  2002-10-28 15:40 ` Bart
@ 2002-10-28 18:39   ` Robert P. J. Day
  0 siblings, 0 replies; 4+ messages in thread
From: Robert P. J. Day @ 2002-10-28 18:39 UTC (permalink / raw)
  To: netfilter mailing list

On Mon, 28 Oct 2002, Bart wrote:

> 
> 
> Oleksandr Darchuk wrote:
> 
> >Hello.
> >
> >Are there any ways to know all user-defined chains for iptables (like 
> >/proc/net/ip_tables_names for tables)? 
> >I try to builded my ipfw script using many own chains, but it's hard to 
> >delete all of them 
> >
> to delete them all, just perform iptables -X

not quite.  this will delete only the u-d chains in the default
filter table.  you would still have to delete the chains in the
other two tables with:

  # iptables -t nat -X
  # iptables -t mangle -X

rday

p.s.  of course, if you're only building chains in the filter table
to begin with, then you're right.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-10-28 18:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-28 16:04 How to check user-defined chains Oleksandr Darchuk
2002-10-28 15:40 ` Bart
2002-10-28 18:39   ` Robert P. J. Day
2002-10-28 16:43 ` R. Sterenborg

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.