Show firewall status including your rules:
Code: Select all
sudo ufw status numbered
Code: Select all
sudo ufw delete 4
Code: Select all
sudo ufw insert 1 deny from 178.137.80.191 comment 'block spammer'
Code: Select all
sudo ufw insert 1 deny from 202.54.1.0/24 comment 'Block DoS attack subnet'
Code: Select all
sudo ufw reload
Code: Select all
sudo ufw allow from 15.15.15.0/24 to any port 22