Installing DenyHosts

Installing DenyHosts

This post is part of the series ‘Setting up Ubuntu Server and make it secure’.

DenyHosts can be used to automatically detect invalid login attempts and then block this specific IP-adress for a certain time. This is especially useful against Brute-Force attacks.

Install

Installing DenyHosts is very simple. Just execute:

sudo apt-get install denyhosts

This installs and starts DenyHosts automatically.

Configure

The only thing I changed in the configuration file ‘/etc/denyhosts.conf’ was, to disable email notification for new blocked hosts.
To do this, set ADMIN_EMAIL to an empty value:

ADMIN_EMAIL =

BACK TO MAIN POST

About these ads

One thought on “Installing DenyHosts

  1. Pingback: Setting up an Ubuntu Server | Stefan Profanter -- KB Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s