From owner-freebsd-questions Mon Apr 6 16:06:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA28827 for freebsd-questions-outgoing; Mon, 6 Apr 1998 16:06:33 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from caladan.tdx.co.uk (caladan.tdx.co.uk [195.188.177.4]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA28818 for ; Mon, 6 Apr 1998 16:06:25 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca-tx.tdx.co.uk [195.188.177.242]) by caladan.tdx.co.uk (8.8.8/8.8.8) with ESMTP id AAA01756; Tue, 7 Apr 1998 00:04:04 +0100 (BST) (envelope-from kpielorz@tdx.co.uk) Message-ID: <35295F61.B46BE57F@tdx.co.uk> Date: Tue, 07 Apr 1998 00:04:01 +0100 From: Karl Pielorz Organization: TDX X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: s_martin@apics-hq.org CC: freebsd-questions@FreeBSD.ORG Subject: Re: Block IP address References: <3192A1127F7@apics_3.apics-hq.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The quickest (but not best way) is by simply routing their traffic to 'never-never' land... e.g. route add their.ip.add.ress somewhere.that.don't.exist For example: route add 158.152.1.65 192.168.200.100 Means you will still get data from them, but your system won't send them anything back... _BEFORE_ I get flamed for that, the 'proper' way is to either block it at your networks router - or you can block it at your FreeBSD box by setting it up to use 'ipfw' (IP Firewall). The IPFW is the better way to go... Have a look through the FAQ's (and rc.conf) - if your still stuck let me know - I'll send you some example stuff... _BE WARNED_ You should have console access to do this, as it's _very_ easy to leave the machine in a state where it won't talk to anyone on any LAN's it's connected to... ;-) Regards, Karl Pielorz Sherry Martin wrote: > > I am fairly new at the FreeBSD operating system and was hoping > someone might be able to answer a question for me. I currently use > FreeBSD as my mail gateway and would like to explicity block an IP > address -- Can anyone tell me how to do this? > > Thanks > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message