From mboxrd@z Thu Jan 1 00:00:00 1970 From: tedemo Subject: Re: ipset memory usage Date: Mon, 26 Sep 2005 14:10:34 +0200 Message-ID: <4337E53A.3010905@free.fr> References: <4336442D.3090404@free.fr> <4337AE94.6020503@free.fr> <4337D590.1000909@free.fr> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060708010102090803060807" Return-path: In-Reply-To: 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 To: netfilter@lists.netfilter.org This is a multi-part message in MIME format. --------------060708010102090803060807 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Jozsef Kadlecsik a =E9crit : >25-58 million hash entries isn't really needed to store 150.000 IP >addresses/netblocks! > >How do you create the set neth in ip.sets? What is the exact command? > >Coul you send me the file ip.sets in private for testings? > =20 > Unfortunatly no, because it seems that your mail server banned the one=20 of my isp ... Anyway, I could reproduce this with the set generated by the attached=20 perl script. Regards --------------060708010102090803060807 Content-Type: text/plain; name="ipset_gen.pl" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ipset_gen.pl" print "-N neth nethash --hashsize 1024 --probes 2 --resize 50\n"; for ($i = 1; $i < 3; $i++) { for ($j = 0; $j < 255; $j++) { for ($k = 0; $k < 255; $k++) { print "-A neth $i.$j.$k.0/24\n"; } } }; print "COMMIT\n"; --------------060708010102090803060807--