Can I use a non-standard hosts.deny file?
Yes. To do so follow this procedure: • edit your HOSTS_DENY configuration value to point it to another file such as “/etc/hosts.evil”. • edit your BLOCK_SERVICE configuration value and leave it blank • edit your /etc/hosts.allow file and add: sshd: ALL EXCEPT /etc/hosts.evil • issue the following command: touch /etc/hosts.evil This will result in tcp_wrappers allowing all hosts to login except for those hosts explicitly listed in /etc/hosts.evil. This procedure will only work on DenyHosts 0.7 and greater and was implemented based on a patch contributed by John Meinel Jr.