Use getop for fail2ban

This commit is contained in:
Josué Tille 2019-08-01 15:08:31 +02:00
parent b91900cf6e
commit 288aed693a
No known key found for this signature in database
GPG Key ID: 716A6C99B04194EF
3 changed files with 3 additions and 3 deletions

View File

@ -100,7 +100,7 @@ ynh_replace_string "__APP__" "$app" ../conf/login_source.sql
ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql ynh_mysql_connect_as "$dbuser" "$dbpass" "$dbname" < ../conf/login_source.sql
# SETUP FAIL2BAN # SETUP FAIL2BAN
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config --logpath "/var/log/$app/$app.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View File

@ -55,7 +55,7 @@ systemctl daemon-reload
systemctl enable "$app".service systemctl enable "$app".service
# SETUP FAIL2BAN # SETUP FAIL2BAN
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config --logpath "/var/log/$app/$app.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION

View File

@ -161,7 +161,7 @@ esac
ynh_setup_source $final_path source/$architecture ynh_setup_source $final_path source/$architecture
# SETUP FAIL2BAN # SETUP FAIL2BAN
ynh_add_fail2ban_config "/var/log/$app/$app.log" ".*Failed authentication attempt for .* from <HOST>" 5 ynh_add_fail2ban_config --logpath "/var/log/$app/$app.log" --failregex ".*Failed authentication attempt for .* from <HOST>" --max_retry 5
#================================================= #=================================================
# GENERIC FINALIZATION # GENERIC FINALIZATION