mirror of
https://github.com/buildplan/du_setup.git
synced 2025-12-29 16:14:59 +00:00
touch ufw log file for fail2ban
This commit is contained in:
@@ -1192,6 +1192,7 @@ EOF
|
||||
print_info "Enabling and restarting Fail2Ban to apply new rules..."
|
||||
systemctl enable fail2ban
|
||||
systemctl restart fail2ban
|
||||
sleep 2 # Give the service a moment to initialize.
|
||||
|
||||
if systemctl is-active --quiet fail2ban; then
|
||||
print_success "Fail2Ban is active with the new configuration."
|
||||
|
||||
Reference in New Issue
Block a user