Skip to content

A simple log analyzer which detects bruteforce attempts and prevents them by addin iptables rules.

License

Notifications You must be signed in to change notification settings

hackman/Hawk-IDS-IPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9d72b7 · Nov 27, 2023
Oct 10, 2023
Nov 27, 2023
Oct 10, 2023
Nov 27, 2023
Nov 1, 2010
Jan 1, 2023
Dec 30, 2022
Dec 30, 2022
Jan 1, 2023
Jan 28, 2011
Oct 10, 2023
Oct 10, 2023
Dec 30, 2022
Dec 30, 2022
Dec 30, 2022
Nov 27, 2023

Repository files navigation

Hawk is a lightweight log analyzer which was designed to be fast and efficient.

It scans log files on the fly and bans IP that makes too many password failures. 
It adds iptables rules to reject the IP addresses. 
You can define the logfiles.

What makes Hawk better then the other solutions out there is its unique Web Interface and its flexibility.

Hawk currently supports:
  sshd
  dovecot
  courier
  pure-ftpd
  proftpd
  cPanel
  DirectAdmin
  Postfix
  Exim with dovecot auth


Installation CentOS:
1. rpm -Uvh hawk-7.2-1.src.rpm
2. Setup iptables or ipset
2.1. For ipset, create a new ipset and add its name in /etc/hawk/hawk.conf on the ipset_name line.
2.2. For iptables, you can either create the chain by your self and set its name in hawk.conf or you can use /usr/share/hawk/setup_iptables.sh helper script, to do that for you.
3. systemctl start hawk