From owner-freebsd-questions Tue May 28 3:12:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from icarus.slightlystrange.org (icarus.slightlystrange.org [62.190.193.173]) by hub.freebsd.org (Postfix) with ESMTP id 71A5B37B404 for ; Tue, 28 May 2002 03:12:56 -0700 (PDT) Received: from danielby by icarus.slightlystrange.org with local (Exim 3.12 #1 (Debian)) id 17CdyJ-00079L-00 for ; Tue, 28 May 2002 11:12:55 +0100 Date: Tue, 28 May 2002 11:12:55 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Subject: Re: ipfw range filter? Message-ID: <20020528101255.GC27216@icarus.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20020528100031.56453.qmail@web14802.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020528100031.56453.qmail@web14802.mail.yahoo.com> User-Agent: Mutt/1.3.27i 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 On Tue, May 28, 2002 at 03:00:31AM -0700, Chris Appleton wrote: > is it possible to filter a range of ip's with one rule? > > unfortunately i've got a c class and just have the one subnet so i > don't think i can use /x for instance. i could try and create proper > subnets, but of course want the quickie. > > i don't like having 60 rules for pop and smtp to hosted servers. > > thanks advance, > > chris ipfw understands CIDR notation, so you can put, e.g., 192.168.0.0/24 in any position that expects an address. As long as the range you are interested in starts and stops at bit boundaries, this'll work. Is that what you meant? Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message