Fail2ban: Difference between revisions
 (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...")  | 
				No edit summary  | 
				||
| Line 3: | Line 3: | ||
It takes a few commands to get going though, and I guess it doesn't run as a normal service?  | It takes a few commands to get going though, and I guess it doesn't run as a normal service?  | ||
   🌵 m@bitpost [~  |    🌵 m@bitpost [~]sudo fail2ban-client add mdmjail    | ||
  Added jail mdmjail  |   Added jail mdmjail  | ||
   🌵 m@bitpost [~  |    🌵 m@bitpost [~] sudo fail2ban-client start mdmjail  | ||
  Jail started  |   Jail started  | ||
   🌵 m@bitpost [~  |    🌵 m@bitpost [~] sudo fail2ban-client set mdmjail addlogpath /var/log/messages  | ||
  Current monitored log file(s):  |   Current monitored log file(s):  | ||
  `- /var/log/messages  |   `- /var/log/messages  | ||
   🌵 m@bitpost [~  |    🌵 m@bitpost [~]sudo fail2ban-client status  | ||
  Status  |   Status  | ||
  |- Number of jail:	1  |   |- Number of jail:	1  | ||
  `- Jail list:	mdmjail  |   `- Jail list:	mdmjail  | ||
Revision as of 20:51, 16 November 2017
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 [~]sudo fail2ban-client add mdmjail Added jail mdmjail 🌵 m@bitpost [~] sudo fail2ban-client start mdmjail Jail started 🌵 m@bitpost [~] sudo fail2ban-client set mdmjail addlogpath /var/log/messages Current monitored log file(s): `- /var/log/messages 🌵 m@bitpost [~]sudo fail2ban-client status Status |- Number of jail: 1 `- Jail list: mdmjail