TheLinuxBug
New Member
Hello All,
I have been working on some scripts to help assist new Linux and VPS users in setting up DenyHosts on their server. Below I am including these scripts for you all to use:
Some info on DenyHosts for those of you who don't know what it is:
What is DenyHosts?
DenyHosts is a script intended to be run by Linux system administrators to help thwart SSH server attacks (also known as dictionary based attacks and brute force attacks).
If you've ever looked at your ssh log (/var/log/secure on Redhat, /var/log/auth.log on Mandrake, etc...) you may be alarmed to see how many hackers attempted to gain access to your server. Hopefully, none of them were successful (but then again, how would you know?). Wouldn't it be better to automatically prevent that attacker from continuing to gain entry into your system?
DenyHosts attempts to address the above... and more.
DenyHosts was the Unix Review: Tool of the Month for August 2005
It is a free project and you can get the package directly from their Sourceforge repo if you like: http://denyhosts.sourceforge.net/
I have written two scripts, one for Debian and one for CentOS to assist with setting up DenyHosts. The script provides the following assistance:
1. It installs all packages required by the Linux Distribution to run DenyHosts.
2. It sets DenyHosts up to start at boot of your server.
3. It provides for novice users interactive configuration of the config file with suggested settings.
4. Assists with adding a host to your /etc/hosts.allow that you do not want to become blocked.
5. Prompts you with the ability to modify the the config file and control file your self .
6. Can be re-ran at any time to be used to reconfigure DenyHosts
Note: these scripts were written in my spare time and come with no guarantee/warranty or otherwise. The scripts are free to be used and modified as you like. Let me know of any bugs you see and I would be happy to update the script and fix any issues.
For quick install on your server:
Debian:
wget http://phoenix.phix-it.com/denyhosts/denyhost-debian.sh ; chmod +x denyhost-debian.sh ; ./denyhost-debian.sh
CentOS:
wget http://phoenix.phix-it.com/denyhosts/denyhost-centos.sh ; chmod +x denyhost-centos.sh ; ./denyhost-centos.sh
Please feel free to leave any feedback or bug requests below.
I have been working on some scripts to help assist new Linux and VPS users in setting up DenyHosts on their server. Below I am including these scripts for you all to use:
Some info on DenyHosts for those of you who don't know what it is:
What is DenyHosts?
DenyHosts is a script intended to be run by Linux system administrators to help thwart SSH server attacks (also known as dictionary based attacks and brute force attacks).
If you've ever looked at your ssh log (/var/log/secure on Redhat, /var/log/auth.log on Mandrake, etc...) you may be alarmed to see how many hackers attempted to gain access to your server. Hopefully, none of them were successful (but then again, how would you know?). Wouldn't it be better to automatically prevent that attacker from continuing to gain entry into your system?
DenyHosts attempts to address the above... and more.
DenyHosts was the Unix Review: Tool of the Month for August 2005
It is a free project and you can get the package directly from their Sourceforge repo if you like: http://denyhosts.sourceforge.net/
I have written two scripts, one for Debian and one for CentOS to assist with setting up DenyHosts. The script provides the following assistance:
1. It installs all packages required by the Linux Distribution to run DenyHosts.
2. It sets DenyHosts up to start at boot of your server.
3. It provides for novice users interactive configuration of the config file with suggested settings.
4. Assists with adding a host to your /etc/hosts.allow that you do not want to become blocked.
5. Prompts you with the ability to modify the the config file and control file your self .
6. Can be re-ran at any time to be used to reconfigure DenyHosts
Note: these scripts were written in my spare time and come with no guarantee/warranty or otherwise. The scripts are free to be used and modified as you like. Let me know of any bugs you see and I would be happy to update the script and fix any issues.
- DenyHosts installer by TheLinuxBug version 0.1i - CentOS Installer
- DenyHosts installer by TheLinuxBug version 0.1j - Debian Installer
For quick install on your server:
Debian:
wget http://phoenix.phix-it.com/denyhosts/denyhost-debian.sh ; chmod +x denyhost-debian.sh ; ./denyhost-debian.sh
CentOS:
wget http://phoenix.phix-it.com/denyhosts/denyhost-centos.sh ; chmod +x denyhost-centos.sh ; ./denyhost-centos.sh
Please feel free to leave any feedback or bug requests below.
Last edited by a moderator: