Fail2ban

From Bitpost wiki
Revision as of 20:51, 16 November 2017 by M (talk | contribs) (Created page with "fail2ban watches log files for misbehavior, and creates firewall rules, to stop things like brute force ssh attempts. It takes a few commands to get going though, and I guess...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

fail2ban watches log files for misbehavior, and creates firewall rules, to stop things like brute force ssh attempts.

It takes a few commands to get going though, and I guess it doesn't run as a normal service?

 🌵 m@bitpost [~/development/thedigitalage/rad-scripts]sudo fail2ban-client add mdmjail 
Added jail mdmjail
 🌵 m@bitpost [~/development/thedigitalage/rad-scripts] sudo fail2ban-client start mdmjail
Jail started
 🌵 m@bitpost [~/development/thedigitalage/rad-scripts] sudo fail2ban-client set mdmjail addlogpath /var/log/messages
Current monitored log file(s):
`- /var/log/messages
 🌵 m@bitpost [~/development/thedigitalage/rad-scripts]sudo fail2ban-client status
Status
|- Number of jail:	1
`- Jail list:	mdmjail