Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use a non-standard hosts.deny file?

file hosts.deny non-standard
0
10 Posted

Can I use a non-standard hosts.deny file?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123