How can I block IP address range with sshd_config

Robert Locke rlocke at ralii.com
Tue Jul 27 16:22:38 UTC 2004


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






More information about the fedora-list mailing list