From owner-freebsd-questions@FreeBSD.ORG Fri Nov 14 15:17:48 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0DB27106567F for ; Fri, 14 Nov 2008 15:17:48 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 861F28FC16 for ; Fri, 14 Nov 2008 15:17:47 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id mAEFHY59037479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 14 Nov 2008 15:17:35 GMT (envelope-from vince@unsane.co.uk) Message-ID: <491D9699.5000103@unsane.co.uk> Date: Fri, 14 Nov 2008 15:17:45 +0000 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Gary Hartl References: <000001c94666$5eb02360$1c106a20$@com> In-Reply-To: <000001c94666$5eb02360$1c106a20$@com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Subject: Re: inet hosts question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 15:17:48 -0000 Gary Hartl wrote: > Hi all; > > I have a quick question, I am trying to block a range of ip's for the sake > of example they are 192.168.0.0 - 192.168.255.255 > For the life of me I can't remember how to do that. > > What mechanism? null route, ipfw, ipf or pf > I thought I could do it by using the /class ie /32 for class c but i can't > remember what the class delegation is for that size of pool, I think it is a > class B. > 192.168.0.0/16 for your example. and yes this is a class B (not all /16s are though.) the /x notation is called CIDR (classless interdomain routing.) http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing Vince > All help would be appreciated. > > Cheers, > > Gary > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >