From owner-freebsd-questions@FreeBSD.ORG Sat Aug 25 16:57:05 2007 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 1311016A417 for ; Sat, 25 Aug 2007 16:57:05 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id D39D913C467 for ; Sat, 25 Aug 2007 16:57:02 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 671F1EBC81; Sat, 25 Aug 2007 12:57:00 -0400 (EDT) Date: Sat, 25 Aug 2007 12:56:57 -0400 From: Bill Moran To: amin.scg@gmail.com Message-Id: <20070825125657.d7b18741.wmoran@potentialtech.com> In-Reply-To: <46d05dcf.0abd720a.60a8.fffff7d0@mx.google.com> References: <20070825120018.9D41816A49E@hub.freebsd.org> <46d05dcf.0abd720a.60a8.fffff7d0@mx.google.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to block 200K ip addresses? 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: Sat, 25 Aug 2007 16:57:05 -0000 In response to "Aminuddin" : > Hi, > How do you block this large range of ip addresses from different subnet? > IPFW only allows 65536 rules while this will probably use up a few hundred > thousands of lines. > > I'm also trying to add this into my proxy configuration file, ss5.conf but > it doesn't allow me to add this large number. > > IS this the limitation of IPF or FreeBSD? How do I work around this? Not sure if this is a limitation of ipf, but you should be able to do what you want with pf and pf tables. As long as you're using a relatively recent version of FreeBSD, you'll have pf as an option. -- Bill Moran http://www.potentialtech.com