From owner-freebsd-questions@FreeBSD.ORG Thu Jun 17 20:47:27 2010 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 5C04E1065678 for ; Thu, 17 Jun 2010 20:47:27 +0000 (UTC) (envelope-from bernt@bah.homeip.net) Received: from feeder.usenet4all.se (1-1-1-38a.far.sth.bostream.se [82.182.32.53]) by mx1.freebsd.org (Postfix) with ESMTP id 57BF58FC16 for ; Thu, 17 Jun 2010 20:47:25 +0000 (UTC) Received: from kw.homeip.net (c80-217-70-227.bredband.comhem.se [80.217.70.227]) by feeder.usenet4all.se (8.13.1/8.13.1) with ESMTP id o5HKlL2K071857; Thu, 17 Jun 2010 22:47:23 +0200 (CEST) (envelope-from bernt@bah.homeip.net) Message-ID: <4C1A89D9.6040104@bah.homeip.net> Date: Thu, 17 Jun 2010 22:47:21 +0200 From: Bernt Hansson User-Agent: slrn/1.0.8 (FreeBSD) MIME-Version: 1.0 To: Valerian Galeru References: <939113.8942.qm@web30705.mail.mud.yahoo.com> In-Reply-To: <939113.8942.qm@web30705.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD router (IPFW-based): how to block an URL (all IPs of an A-like HOSTNAME) 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: Thu, 17 Jun 2010 20:47:27 -0000 Valerian Galeru said the following on 2010-06-17 22:01: > Hello, > > Does anyone have any ideas how to block all requests using an IPFW-based router > (FreeBSD 6.4) to and from a HOSTNAME (which has more DNS A entries) or better, from any *.HOSTNAME.COM ???? Do a whois hostname.com taking note of their ip-address range. Then, for ipf, put this in your rules file. ### EXAMPLE ### block in quick on fxp0 from 192.168.0.0/16 to any block out quick on fxp0 from any to 192.168.0.0/16