[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] block an IP
- Subject: Re: [cobalt-users] block an IP
- From: Gerald Waugh <gwaugh@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat Feb 23 04:31:03 2002
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
On Friday 22 February 2002 11:20 pm, JJ wrote:
> How can I block an IP from accessing my RAQ4 server?
/sbin/route add -host ip.ad.re.ss reject
#Although if you want this to survive a reboot you will need it in a script
#or at the end of /etc/rc.d/rc.local
ipchains -A input -s ip.ad.re.ss -j REJECT
#With ipchains a rule (also needs to be added to your rules script to survive
#a reboot)
Either may be used from the command line, for instant gratification
--
Gerald Waugh