> 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