Date: Tue, 07 Apr 1998 00:04:01 +0100 From: Karl Pielorz <kpielorz@tdx.co.uk> To: s_martin@apics-hq.org Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Block IP address Message-ID: <35295F61.B46BE57F@tdx.co.uk> References: <3192A1127F7@apics_3.apics-hq.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?35295F61.B46BE57F>