[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] block an IP



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