mirror of
https://github.com/docker-mailserver/docker-mailserver
synced 2026-11-02 20:40:08 +01:00
* feat(fail2ban): add `setup fail2ban ignore` and `consider` Adding an address to the Fail2Ban ignore list at runtime needed fail2ban-client and a loop over every jail. This carries over #4504 and addresses its review. Co-authored-by: Andrew Cornford <29998536+groupmsl@users.noreply.github.com> * fix(fail2ban): reject invalid addresses and list ignores under `status` fail2ban-client treats anything that is not an IP address as a hostname, so a typo like 192.0.2.300 was accepted silently. `ignore` and `consider` now check the argument and pass it on in the spelling F2B uses, which `delignoreip` needs to find a single IPv6 address again. Plain `setup fail2ban` shows bans only again, as before this PR. --------- Co-authored-by: Andrew Cornford <29998536+groupmsl@users.noreply.github.com>