From owner-freebsd-questions Tue Aug 21 11:57: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hiwaay.net (fly.HiWAAY.net [208.147.154.56]) by hub.freebsd.org (Postfix) with ESMTP id A20F337B403 for ; Tue, 21 Aug 2001 11:57:01 -0700 (PDT) (envelope-from steve@havk.org) Received: from bsd.havk.org (user-24-214-56-224.knology.net [24.214.56.224]) by mail.hiwaay.net (8.11.3/8.11.3) with ESMTP id f7LIuZF16430; Tue, 21 Aug 2001 13:56:35 -0500 (CDT) Received: by bsd.havk.org (Postfix, from userid 1001) id 297DD1A85D; Tue, 21 Aug 2001 13:56:32 -0500 (CDT) Date: Tue, 21 Aug 2001 13:56:32 -0500 From: Steve Price To: Fernando Gleiser Cc: questions@FreeBSD.ORG Subject: Re: null route Message-ID: <20010821135632.H70621@bsd.havk.org> References: <20010821132909.E70621@bsd.havk.org> <20010821155035.M44387-100000@cactus.fi.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010821155035.M44387-100000@cactus.fi.uba.ar>; from fgleiser@cactus.fi.uba.ar on Tue, Aug 21, 2001 at 03:51:55PM -0300 X-Operating-System: FreeBSD 4.3-STABLE i386 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, Aug 21, 2001 at 03:51:55PM -0300, Fernando Gleiser wrote: > On Tue, 21 Aug 2001, Steve Price wrote: > > > What's the easiest way to setup a null route for an IP address? > > I have a box in the same datacenter as one of my machines that > > is blasting me with the Code Red II virus. I thought I could > > do something like 'route add x.x.x.x 127.0.0.1' but that didn't > > work. > > You can use ipf or ipfw to block connections from the offending machine. Thanks for the quick reply. I ended up using the following which seems to have done the trick. route add -host x.x.x.x 127.0.0.1 -reject -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message