Fail2ban: Difference between revisions

add status help
documenting weirdness
Line 36: Line 36:
# Values: TEXT
# Values: TEXT
#
#
failregex = ^<HOST> -.*.*
failregex = ^<HOST> -.*�POST.*
# Option: ignoreregex
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Notes.: regex to ignore. If this regex matches, the line is ignored.
Line 62: Line 62:
fail2ban-client status | sed -n 's/,//g;s/.*Jail list://p' | xargs -n1 fail2ban-client status
fail2ban-client status | sed -n 's/,//g;s/.*Jail list://p' | xargs -n1 fail2ban-client status
</source>
</source>
== Restarts ==
If you change a jail, or otherwise want to restart fail2ban, you can try the SystemD service manager: <code>systemctl reload fail2ban</code>. But, strangely that reports an error on freephile (because it's already running) and a <code>systemctl status fail2ban</code> says that it's FAILED.  Even <code>systemctl list-units</code> says it's failed. However, <code>ps axjf</code> shows it running and <code>/usr/bin/fail2ban-client ping</code> gets a 'pong' from the server. It looks like there are two installations (/usr/bin and /bin) but they both report the same thing (and the files are identical)


[[Category:Security]]
[[Category:Security]]