From: "Christoph A." <casmls@gmail.com>
To: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
Cc: Netfilter Developer Mailing List
<netfilter-devel@vger.kernel.org>,
Jan Engelhardt <jengelh@medozas.de>,
"Christoph A." <casmls@gmail.com>
Subject: Re: arbitrary address mask matching
Date: Mon, 10 Aug 2009 11:06:51 +0200 [thread overview]
Message-ID: <4A7FE32B.4040409@gmail.com> (raw)
In-Reply-To: <4A7FDEFA.3020009@plouf.fr.eu.org>
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
On 10.08.2009 10:48, Pascal Hambourg wrote:
>> iptables -A OUTPUT -d 10.10.97.1/255.255.255.253 -m iprange --dst-range
>> 10.10.97.1-10.10.97.7 -j REJECT
>>
>> this should match on 10.10.97.1,3,5,7 but matches only 1 and 3
>
> 253 is binary 11111101, so this is the expected behaviour.
> BTW, what is the use of iprange in this rule ?
The rule is mainly a copy n paste from
http://jengelh.medozas.de/documents/Perfect_Ruleset.pdf page 7 (just
changing the input to output direction)
to get the desired/described behaviour one should set this mask:
255.255.255.1
the line
-A INPUT -s 10.10.97.1/255.255.255.253
should be changed to
-A INPUT -s 10.10.97.1/255.255.255.1
Jan, would you correct this in the paper (if you agree with my
correction of the mask)
thanks
Christoph A.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-08-10 9:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-09 23:34 arbitrary address mask matching Christoph A.
2009-08-10 8:48 ` Pascal Hambourg
2009-08-10 9:06 ` Christoph A. [this message]
2009-08-10 15:12 ` Jan Engelhardt
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=4A7FE32B.4040409@gmail.com \
--to=casmls@gmail.com \
--cc=jengelh@medozas.de \
--cc=netfilter-devel@vger.kernel.org \
--cc=pascal.mail@plouf.fr.eu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.