diff --git a/Fail2Ban-Setup.md b/Fail2Ban-Setup.md index 0162721..2c373c0 100644 --- a/Fail2Ban-Setup.md +++ b/Fail2Ban-Setup.md @@ -38,6 +38,23 @@ ignoreip = 127.0.0.1 findtime = 14400 ``` +### Testing + +#### Create a request with an invalid user + +``` +curl -u testerror:testerror http://localhost:5232/testerror +``` +#### Check regular expression match + +``` +fail2ban-regex systemd-journal -m _SYSTEMD_UNIT=radicale.service /etc/fail2ban/filter.d/radicale.conf +... +lines: ... lines, ... ignored, 1 matched, ... missed +... +``` + + ## Radicale behind reverse proxy