From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mr Dash Four Subject: Re: [ANNOUNCE] ipset-5.0 released Date: Thu, 23 Dec 2010 23:06:52 +0000 Message-ID: <4D13D60C.3020304@googlemail.com> References: <4D0CC3BB.8030801@googlemail.com> <4D0D2CF4.5070201@googlemail.com> <4D0E0E2A.3090604@googlemail.com> <4D0E22A5.8090808@conversis.de> <4D0E3B34.7090105@googlemail.com> <4D11F384.3070908@googlemail.com> <4D138C02.3050905@googlemail.com> <4D13CBD8.3090007@googlemail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id :disposition-notification-to:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=eo3PI8jfnS2RoXEqkyzfsiiw0Lh5jRoMZdCMuGZucts=; b=eHnsoZbiM/LUYlOHCESsvn1pbXkslIFAwRv3vdT+qG3W2TF31XKBtkGA1UurmpBgk0 IFHSrABnY0BbFsySgYuFJ+tf5OsSQG9wZuOkxQoa5QdkyJcFPujGp4Ox/vrZVMjWEQko Zji1i2gwkcgx5voENjbOkBavwrI6Iq2AmBHZQ= In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jozsef Kadlecsik Cc: Dennis Jacobfeuerborn , netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org > Just to illustrate: > > # ipset create test hash:ip,port > # ipset add test 192.168.0.0/30,tcp:80-82 > # ipset list test > Name: test > Type: hash:ip,port > Header: family inet hashsize 1024 maxelem 65536 > Size in memory: 16888 > References: 0 > Members: > 192.168.0.3,tcp:81 > 192.168.0.0,tcp:82 > 192.168.0.1,tcp:81 > 192.168.0.1,tcp:82 > 192.168.0.3,tcp:82 > 192.168.0.0,tcp:80 > 192.168.0.2,tcp:80 > 192.168.0.0,tcp:81 > 192.168.0.1,tcp:80 > 192.168.0.2,tcp:82 > 192.168.0.2,tcp:81 > 192.168.0.3,tcp:80 > Wow! telepathy must be my forte!!! That's just the example I emailed you to see if I understand you correctly! OK, does that differ if I have hash:net,port set (I presume when listing with ipset -L you will show the net ranges - 192.168.0.0-192.168.0.0,tcp:80-82), is that right?