From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martijn Lievaart Subject: Re: How to combine a few addresses? Date: Tue, 11 Sep 2007 14:01:43 +0200 Message-ID: <46E683A7.70604@rtij.nl> References: <643555.29298.qm@web60319.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <643555.29298.qm@web60319.mail.yahoo.com> 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="us-ascii"; format="flowed" To: Vitaly Cc: netfilter@lists.netfilter.org Vitaly wrote: > How I can combine a few addresses in one rule? For > example, I'd like to add two IPs 10.10.10.1 and > 10.10.10.2 to the same rule. > > Either use ipset (needs a patched kernel), or iprange (if the addresses are consecutive) or use a subchain, e.g: -A -s 10.10.10.1 -j CUSTOM -A -s 10.10.10.2 -j CUSTOM -N CUSTOM -A CUSTOM HTH, M4