From: Jonas Berlin Subject: Re: About matching (also was: Multiple Targets) Date: Wed, 13 Apr 2005 00:52:40 +0000 Message-ID: <425C6D58.3090002@outerspace.dyndns.org> References: <20050407064323.GE20287@oknodo.bof.de> <425A47BD.9070508@outerspace.dyndns.org> <20050413084249.0309.LARK@linux.net.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Wang Jian In-Reply-To: <20050413084249.0309.LARK@linux.net.cn> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Quoting Wang Jian on 2005-04-13 00:48 UTC: > The problem is how to handle rule deletion, for example, > > iptables -A INPUT -p tcp --dport 137 -j LOG --log-prefix windows > iptables --previous -j DROP > > When the first rule is deleted, then the second --previous is gone? Unfortunately not. It gets combined with the rule before that. Or if there was no rule before that, it never matches. If the official netfilter guys think that --previous rules should be deleted also when parent is gone, I can look at how to implemenent that at some point. - -- - - xkr47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCXG1WxyF48ZTvn+4RArUaAKCZ1fg4r0MUbaPA9xvC1EeTESjiLwCfTYFY 6e0f30D6sPZ/tEz8zMUzbo8= =fU2n -----END PGP SIGNATURE-----