From owner-freebsd-questions Tue Nov 12 7: 2:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9FFB37B401 for ; Tue, 12 Nov 2002 07:02:08 -0800 (PST) Received: from mail4.sea.registeredsite.com (mail4.sea.registeredsite.com [66.111.73.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC3B543E3B for ; Tue, 12 Nov 2002 07:02:07 -0800 (PST) (envelope-from admin@asarian-host.net) Received: from asarian-host.net (asarian-host.net [216.122.74.112]) by mail4.sea.registeredsite.com (8.12.5/8.12.5) with ESMTP id gACF25sx017924 for ; Tue, 12 Nov 2002 10:02:06 -0500 Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email addresses for asarians can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by asarian-host.net (8.11.0/8.11.0) id gACF25V85476 for freebsd-questions@freebsd.org; Tue, 12 Nov 2002 16:02:05 +0100 (CET) (envelope-from admin@asarian-host.net) Posted-Date: Tue, 12 Nov 2002 16:02:05 +0100 (CET) From: Mark Message-Id: <200211121502.GACF22S85449@asarian-host.net> Date: Tue, 12 Nov 2002 16:01:58 +0100 X-Authenticated-Sender: admin@asarian-host.net Subject: Re: ipfw matching (revisited) X-Trace: ++DZlxcniFHwKlKCDTmwl49Xl9pVpQwH2P3In/TP8XLOFwWhckddw37A2lFTsYV6 X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we are unable to process your complaint Organization: Asarian-host To: "Matthew Seaman" , References: <200211121238.GACCCMS56521@asarian-host.net> <200211121406.GACE6KS72014@asarian-host.net> <20021112144522.GG16105@happy-idiot-talk.infracaninophi> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Auth: Asarian-host PGP signature iQEVAwUAPdEX7TFqW1BleBN9AQHZOQf/QnoAYxbkeYYFKVRFhk+jgqEDv49FiWe6 ne/EJr7CLWrzOjdmyDPWxmgbuOYAXGMvf7beHTEip5x+esahbtjQiNHahf39KXEM UdM8dqVCEM68RD7iAXB0q6R3ltsekpLouZBv/6CHZXj2s3cUv3t9UQzvXoYBsdBG xQk/WH/lP2S2CuuQ4EbLy3lTeZm1Cg83rhXGauhPXbfN9gWkk9GlXLWS+pmbOnFE Ox+JTbY6ViRRiaXpVFDGnmMF56OVBYxVbObpjDQgQdqA99f6MDvCGoHLogUhfB+Y qj2a4nJL4xAdmuc+F6YjBBkCZeFYoiryjo1f8WR+ZQj7TcoRt4m3wQ== =Cw4Y Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Matthew Seaman" To: 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