From owner-freebsd-questions@FreeBSD.ORG Mon Apr 5 09:43:36 2004 Return-Path: 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 1400C16A4CE for ; Mon, 5 Apr 2004 09:43:36 -0700 (PDT) Received: from mta9.adelphia.net (mta9.adelphia.net [68.168.78.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBEB143D2F for ; Mon, 5 Apr 2004 09:43:35 -0700 (PDT) (envelope-from Barbish3@adelphia.net) Received: from barbish ([67.20.101.71]) by mta9.adelphia.net (InterMail vM.5.01.06.08 201-253-122-130-108-20031117) with SMTP id <20040405164335.YRFG26615.mta9.adelphia.net@barbish>; Mon, 5 Apr 2004 12:43:35 -0400 From: "JJB" To: "Kevin D. Kinsey, DaleCo, S.P." Date: Mon, 5 Apr 2004 12:43:34 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <4070C41A.6050201@daleco.biz> Importance: Normal cc: FreeBSD Mailing List Subject: RE: Simplest way to block a single IP? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Barbish3@adelphia.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 16:43:36 -0000 Kevin I like your /etc/hosts.allow recommendation. I have some scrip kids who target my web site just to bump the visitor counter. I read all the hosts.allow man pages but syntax is still not clear. If I understand things correctly, hosts.allow is enabled all the time, but defaults to passing all tcp packets. Are the following statements syntax correct # all : all : all httpd : .seed.tw : deny #deny all from this domain httpd : 80.0.0.0/8 : deny #deny all from this domain httpd : 67.20.132.43 : deny #deny just this ip address ftpd : 40.85.68.60 : deny #deny just this ip address all : all : all -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Kevin D. Kinsey, DaleCo, S.P. Sent: Sunday, April 04, 2004 10:28 PM To: H.Wade Minter Cc: FreeBSD Mailing List Subject: Re: Simplest way to block a single IP? H.Wade Minter wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I've got a system that's sending a ton of referral spam to websites > on my RELENG_4_9 system. I'd like to block them from accessing > my system at the TCP level. What's the best and easiest way to do this? > > I assume I'll need to recompile the kernel with IPFIREWALL or > IPFILTER support, then set up some rules. Does anyone have > a recommendation for a simple ruleset to block one particular IP? > > Thanks, > Wade I have a better recommendation than that. Since it's just one IP, have a look at /etc/hosts.allow. The syntax and comments there should enlighten you greatly as to what to do.... Then, sit back and smile && enjoy a beverage as tcpwrappers sends this c*** to a "virtual" oblivion ... Kevin Kinsey DaleCo, S.P. _______________________________________________ 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"