2
0
mirror of https://github.com/tomav/docker-mailserver synced 2025-09-02 23:35:11 +00:00

Add ban feature to fail2ban script (#2538)

This commit is contained in:
Casper
2022-04-19 10:44:51 +02:00
committed by GitHub
parent 9aaf15b38f
commit de61d42e68
9 changed files with 105 additions and 30 deletions

View File

@@ -1149,10 +1149,13 @@ function _setup_user_patches
function _setup_fail2ban
{
_log 'debug' 'Setting up Fail2Ban'
if [[ ${FAIL2BAN_BLOCKTYPE} != 'reject' ]]
then
echo -e '[Init]\nblocktype = drop' >/etc/fail2ban/action.d/nftables-common.local
fi
echo '[Definition]' >/etc/fail2ban/filter.d/custom.conf
}
function _setup_dnsbl_disable