Linux Netfilter discussions
 help / color / mirror / Atom feed
From: tedemo <tedemo@free.fr>
To: netfilter@lists.netfilter.org
Subject: Re: ipset memory usage
Date: Mon, 26 Sep 2005 14:10:34 +0200	[thread overview]
Message-ID: <4337E53A.3010905@free.fr> (raw)
In-Reply-To: <Pine.LNX.4.58.0509261312120.11331@blackhole.kfki.hu>

[-- Attachment #1: Type: text/plain, Size: 457 bytes --]

Jozsef Kadlecsik a écrit :

>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?
>  
>
Unfortunatly no, because it seems that your mail server banned the one 
of my isp  ...

Anyway, I could reproduce this with the set generated by the attached 
perl script.

Regards

[-- Attachment #2: ipset_gen.pl --]
[-- Type: text/plain, Size: 220 bytes --]

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";

  reply	other threads:[~2005-09-26 12:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-25  6:31 ipset memory usage tedemo
2005-09-26  6:54 ` Jozsef Kadlecsik
2005-09-26  8:17   ` tedemo
2005-09-26  9:28     ` Jozsef Kadlecsik
2005-09-26 11:03       ` tedemo
2005-09-26 11:16         ` Jozsef Kadlecsik
2005-09-26 12:10           ` tedemo [this message]
2005-09-27  3:01       ` tedemo
2005-09-27  6:55         ` Jozsef Kadlecsik
  -- strict thread matches above, loose matches on Subject: below --
2015-08-25 12:05 Akshat Kakkar
2015-08-26  6:08 ` Akshat Kakkar
2015-08-26 18:22 ` Jozsef Kadlecsik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4337E53A.3010905@free.fr \
    --to=tedemo@free.fr \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox