Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <jsullivan@opensourcedevel.com>
To: McDouglas <mcdouglas@mmcomputer.hu>
Cc: netfilter@lists.netfilter.org
Subject: Re: Defining ip range in a rule
Date: Mon, 20 Mar 2006 06:44:57 -0500	[thread overview]
Message-ID: <1142855098.2922.2.camel@localhost> (raw)
In-Reply-To: <441E907F.4060107@mmcomputer.hu>

On Mon, 2006-03-20 at 12:22 +0100, McDouglas wrote:
> Hi,
> 
> I'd like to ask how to define an ip address range in a rule. I don't 
> mean using subnet mask but rather for example making a rule which will 
> block port 110 for the 10.10.2.50-10.10.2.150 ip range.
> 
> Thank you.
The iprange match is in most newer kernels.  If it is missing in yours,
you may need to patch.  You may also need to check to see if it is
included in activated in your kernel.

The man page will have more information but the syntax is:

iptables -A FORWARD -m iprange --[src|dst]-range x.x.x.x-y.y.y.y

Or at least so I recall.  Good luck - John
-- 
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
jsullivan@opensourcedevel.com

If you would like to participate in the development of an open source
enterprise class network security management system, please visit
http://iscs.sourceforge.net



  reply	other threads:[~2006-03-20 11:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 11:22 Defining ip range in a rule McDouglas
2006-03-20 11:44 ` John A. Sullivan III [this message]
2006-03-20 11:49 ` Hardik Dalwadi
2006-03-20 12:48 ` Askar Ali

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=1142855098.2922.2.camel@localhost \
    --to=jsullivan@opensourcedevel.com \
    --cc=mcdouglas@mmcomputer.hu \
    --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