From mboxrd@z Thu Jan 1 00:00:00 1970 From: "R. Sterenborg" Subject: RE: How to check user-defined chains Date: Mon, 28 Oct 2002 17:43:27 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <000801c27ea1$242b09f0$0401000a@robbysan.org> References: <200210281605.SAA33419@mover.WUCB.Lviv.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <200210281605.SAA33419@mover.WUCB.Lviv.net> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: netfilter@lists.netfilter.org > 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