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

Re: How can I block IP address range with sshd_config



On Tue, 2004-07-27 at 12:12, Michael Sullivan wrote:
> I looked through the man page for sshd_config for
> a way to block their IP, but I couldn't find it.  Does anyone here know
> how to do this?
> 
One alternate way would be to use tcp_wrappers (aka libwrap).

You could add a line to /etc/hosts.deny
sshd : 192.168.0.0/255.255.255.0

And that would block anyone trying to get in from the "network"
192.168.0.*

HTH,

--Rob




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