|
@@ -122,8 +122,7 @@ chmod 640 "/var/log/$app/$app.log"
|
|
|
ynh_systemd_action --service_name=$app --action="start"
|
|
ynh_systemd_action --service_name=$app --action="start"
|
|
|
|
|
|
|
|
# SETUP FAIL2BAN
|
|
# SETUP FAIL2BAN
|
|
|
-# @@ todo
|
|
|
|
|
-# ynh_script_progression --message="Configuring Fail2Ban..." --weight=3
|
|
|
|
|
-# ynh_add_fail2ban_config --logpath="/var/log/$app/$app.log" --failregex="<HOST>:" --max_retry=5
|
|
|
|
|
|
|
+ynh_script_progression --message="Configuring Fail2Ban..." --weight=3
|
|
|
|
|
+ynh_add_fail2ban_config --logpath="/var/log/$app/$app.log" --failregex='INFO: +<HOST>:\d+ - "POST /token HTTP/\d+\.\d+" 403 Forbidden' --max_retry=5
|
|
|
|
|
|
|
|
ynh_script_progression --message="Installation of $app completed" --last
|
|
ynh_script_progression --message="Installation of $app completed" --last
|