How add blocked ip on iptables automatically on Ubuntu server
From Nicola Mettimano@2:335/601 to All on Wed Aug 17 00:08:49 2022
Hello guys, just to:
sudo visudo
append this: user ALL=NOPASSWD:/usr/sbin/iptables
(just change user with the user that run mis)
On Event editor add:
Active:yes
Event Type: Blocked IP
Shell command to execute: sudo iptables -A INPUT -s @IP@ -j DROP