From: Raileanu Grigore <grisha@unixro.net>
To: netfilter@lists.netfilter.org
Subject: Re: quick syntax query
Date: Mon, 7 Jun 2004 14:06:22 +0300 [thread overview]
Message-ID: <20040607140622.3a87f2ec.grisha@unixro.net> (raw)
In-Reply-To: <FDB52A0429DFD31196FB0008C7D972D51259E6CF@OST_EXCH_USR5>
On Mon, 7 Jun 2004 11:53:10 +0100
"Knight, Steve" <Steve.Knight@bskyb.com> wrote:
> Hi there
>
> Can one use syntax other than CIDR notation when defining things like
> networks?
>
> i.e. it's common to see
>
> LAN_RANGE="192.168.0.0/24"
>
> in rule bases, but I would like to use
>
> DODGY_RANGE="192.168.0.1-5"
> GOOD_RANGE="192.168.0.6-30"
> BAD_BAD_RANGE="192.168.31-40"
>
>
> a la `nmap` syntax.
>
> Is this something netfilter can handle?
>
> Thanks in advance
>
>
> Steve
>
patch-o-matic iprange patch have this feature:
The base/iprange patch:
Author: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Status: Works
This patch makes possible to match source/destination IP
addresses against inclusive IP address ranges.
Examples.
iptables -A FORWARD -m iprange --src-range 192.168.1.5-192.168.1.124 -j ACCEPT
iptables -A FORWARD -m iprange --dst-range 10.0.0.0-10.5.255.255.255 -j ACCEPT
--
Best regards,
Raileanu Grigore
mail: grisha at unixro dot net
phone: +40 742759147
next prev parent reply other threads:[~2004-06-07 11:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-07 10:53 quick syntax query Knight, Steve
2004-06-07 11:06 ` Raileanu Grigore [this message]
2004-06-07 11:54 ` John A. Sullivan III
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=20040607140622.3a87f2ec.grisha@unixro.net \
--to=grisha@unixro.net \
--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