From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] disallow multiple matches of same type Date: Mon, 20 Feb 2006 18:38:22 +0100 Message-ID: <43F9FE8E.5050607@trash.net> References: <20060220055421.GA10552@linuxace.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org, Harald Welte Return-path: To: Phil Oester In-Reply-To: <20060220055421.GA10552@linuxace.com> 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 Phil Oester wrote: > In latest iptables SVN, the command: > > iptables -A foo -p tcp -m multiport --dport 45,47 -m multiport --sport 45:48 > > ends up with mangled results of: > > ... multiport sports multiport sports tcp spts:45:48 > > Since at present, iptables can only handle one match of a given type > per rule. The below patch makes sure we disallow more than one. > > This closes bugzilla #447 I think Harald already did something in this direction. Harald?