From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?J=F6rg_Harmuth?= Subject: Re: iptables rules Date: Fri, 21 Oct 2005 18:19:48 +0200 Message-ID: <43591524.9040406@mnemon.de> References: <1123184190.21749.34.camel@ndspc131.p.n-dsi.com> <1123704837.3708.1.camel@ndspc131.p.n-dsi.com> <1126649450.4790.5.camel@ndspc131.p.n-dsi.com> <1126797736.4790.24.camel@ndspc131.p.n-dsi.com> <432992C0.2000404@mnemon.de> <1126798629.4790.26.camel@ndspc131.p.n-dsi.com> <4329A01B.4020300@mnemon.de> <20051021134645.GA11724@isw302> Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20051021134645.GA11724@isw302> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="iso-8859-1"; format="flowed" To: netfilter@lists.netfilter.org Realos wrote: > J=F6rg Harmuth wanted us to know: >=20 >=20 >> I see. You are referring to -m mport --port*s* (by the way, there is a= =20 >> typo or are you referring to another module ?), which is different fro= m=20 >> -m multiport --port*s* port[...] - which I was referring to. Your rule= was >> >> ... -m multiport --ports 22,23,24,25 -j ACCEPT >> >> So I looked for multiport. >=20 > There seems to be an inconsistence between man pages J=F6rg Harmuth has= installed > and of some other people (the original poster and myself at least). >=20 > man iptables: >=20 > mport > ... > --ports port[,port[,port...]] > Match if the both the source and destination ports are > equal to each other and to one of the given > ports. >=20 > multiport > ... > used in conjunction with -p tcp or -p udp. > rts port[,port[,port...]] > Match if the both the source and destination ports > are equal to each other and to one of the given > ports. >=20 > Mar 09, 2002 IPTABLES(8) >=20 > BTW, what is the diffence between mport and multiport modules? >=20 >=20 Hmm, interesting. I looked again and I see: man iptables: mport --ports port[,port[,port...]] Match if the both the source and destination ports are equal to each other and to one of the given ports. multiport --ports [!] port[,port[,port:port...]] Match if either the source or destination ports are equal to one of the given ports. My iptables is a self compiled 1.3.3 running on Sarge, one box with=20 kernel 2.4.31 the other box with kernel 2.6.13.1. May be an iptables=20 version issue ? Have a nice time, Joerg