taylorthurlow / panda-motd

a utility for generating a more useful MOTD
MIT License
134 stars 6 forks source link

Change fail2ban to use logs instead of fail2ban-client #26

Open taylorthurlow opened 5 years ago

taylorthurlow commented 5 years ago

Looked at the logs again and totally missed the fact that the jail name is included in the logs - so I switched the way the fail2ban component works - 100% log parsing instead of using fail2ban-client. Will probably look into doing more with the available information before this gets merged - I have dates, times, and IP addresses for every ban and unban, so if we can think of anything useful to do with that information then it's there.

My first thought, like I mentioned before, is to do something like "bans in last X days" or something.