BlockHosts

BlockHosts is a script to record how many times a local system is attacked, based on configurable scanning of system logs for sshd or other services. When a particular IP address exceeds a configured number of failed login attempts, that IP address is blocked using hosts.allow files, or by using null-routing, or by using packet filtering. An email notification facility is also available.

Tags Networking
Licenses Public Domain
Operating Systems Unix
Implementation Python

Tweet this project Short link

Rss Recent releases

  • Rrelease-mid
  •  17 May 2008 21:04
  • Rrelease-after

Changes: iptables is now updated by inserting blockhosts blocking rules at the beginning of the chain instead of at the end. This will allow servers with default policy of both DROP or ACCEPT to make use of blockhosts. Both INPUT and FORWARD chains will now block traffic from rogue IP hosts.

  • Rrelease-mid
  •  15 Jan 2008 04:50
  • Rrelease-after

Changes: The log match rules were updated to accept lines without a colon (:) after the [pid]. This is seen in some Debian and Ubuntu installs, at least.

  • Rrelease-mid
  •  27 Dec 2007 07:43
  • Rrelease-after

Changes: The keywords {LOG_PREFIX{service-name}} and {HOST_IP} were added to make it easier to write patterns to scan log files. Support for Source Mage Linux logs was also added.

  • Rrelease-mid
  •  15 Dec 2007 23:34
  • Rrelease-after

Changes: Logging and mail notification were improved. Logwatch scripts are now included to provide a summary of blockhosts activity. Mail can now be set to send only if there are errors or warnings or notice level messages.

  • Rrelease-mid
  •  10 Nov 2007 12:17
  • Rrelease-after

Changes: The ipblock option for "ip route" now accepts a path for the ip command.

No-screenshot

Project Spotlight

The Open Toolkit

Strongly-typed OpenGL and OpenAL bindings for Mono/.Net.

D43f52194c369cafa4d3d178cc5f3fc5_thumb

Project Spotlight

Frescobaldi

A LilyPond sheet music editor for KDE4.