Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2002 16:01:58 +0100
From:      Mark <admin@asarian-host.net>
To:        "Matthew Seaman" <m.seaman@infracaninophile.co.uk>, <freebsd-questions@freebsd.org>
Subject:   Re: ipfw matching (revisited)
Message-ID:  <200211121502.GACF22S85449@asarian-host.net>
References:  <200211121238.GACCCMS56521@asarian-host.net> <200211121406.GACE6KS72014@asarian-host.net> <20021112144522.GG16105@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "Matthew Seaman" <m.seaman@infracaninophile.co.uk>
To: <freebsd-questions@FreeBSD.ORG>
Sent: Tuesday, November 12, 2002 3:45 PM
Subject: Re: ipfw matching (revisited)


> On Tue, Nov 12, 2002 at 03:06:42PM +0100, Mark wrote:
> > Ok, I constructed the following IP:mask for ipfw to match:
> >
> >     202.43.64.0:255.255.191.0
> >
> > This is supposed to match the range 202.43.64.xx to
> > 202.43.127.xx
>
> Close, but no cigar.  You want:
>
>     202.43.64.0:255.255.192.0  also known as 202.43.64.0/18
>                                      ^
>
> That matches the addresses from 202.43.64.0 to 202.43.127.255
> inclusive.


Thanks for the explanation. Yes, 191 (10111111) would only have bit 6
variable; indeed, I needed 192 (11000000), to keep the lower 6 bits
variable. It is clear to me now.

Good thing I asked! :)

- Mark


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211121502.GACF22S85449>