Skip to content
Snippets Groups Projects
Commit 84abadcb authored by Nicolas KAROLAK's avatar Nicolas KAROLAK
Browse files

fail2ban config adjustements

parent df7f9b47
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ def setup(interactive=True):
dir_path = utils.get_dir(__file__)
action = 'action_mwl' if utils.get_conf('FAIL2BAN_SEND_EMAIL', '') != '0' else 'action_'
sender = utils.get_conf('EMAIL_SENDER', 'root@localhost')
destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', 'root@localhost')
destemail = utils.get_conf('FAIL2BAN_DEST_EMAIL', '') or utils.get_conf('EMAIL_ADMINS', 'root@localhost')
maxretry = utils.get_conf('FAIL2BAN_MAXRETRY', '6')
bantime = utils.get_conf('FAIL2BAN_BANTIME', '30')
cmds = [
......
......@@ -106,10 +106,10 @@ BURP_CLIENT_NAME=
BURP_CLIENT_MAIL_DEST='sysadmin@ubicast.eu'
# -- Fail2ban specific settings --
FAIL2BAN_SEND_EMAIL='1'
FAIL2BAN_DEST_EMAIL='sysadmin@ubicast.eu'
FAIL2BAN_MAXRETRY='6'
FAIL2BAN_BANTIME='30'
FAIL2BAN_SEND_EMAIL='0'
FAIL2BAN_DEST_EMAIL=
FAIL2BAN_MAXRETRY=
FAIL2BAN_BANTIME=
# -- tmbackup.sh --
BACKUP_SERVER=''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment