From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feizhou Subject: Re: Large number of repeated rules with only differing -s ipaddrs/cidrs Date: Mon, 19 Apr 2004 22:47:28 +0800 Sender: netfilter-admin@lists.netfilter.org Message-ID: <4083E680.9020309@linuxmail.org> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Jozsef Kadlecsik Cc: netfilter@lists.netfilter.org >>I have a whole bunch of ips/cidrs that I want to apply the rule to. >> >>Is there any way to insert one rule where the -s would be able to look >>up a table (btree/hash/cdb whatever) that contains those ips/cidrs >>instead of insert gazillion rules? > > > Yes, you can use either the ippool or the ipset extensions. ippool is > capable to store up to the number of IP addresses of a full B class network. > ippool can store network addresses as well and supports random > adressess/networks too. > lovely. when will ipset be available in 2.6? I presume ippool is going to become obsolete?