I was wondering if there's any benefit of adding following rules to a Raspberry-Pi directly exposed to the internet:
sudo ufw deny to 0.0.0.0/8 &&
sudo ufw deny to 169.254.0.0/16 &&
sudo ufw deny to 172.16.0.0/12 &&
sudo ufw deny to 224.0.0.0/4 &&
sudo ufw deny to 240.0.0.0/5 &&
sudo ufw deny to 239.255.255.0/24 &&
sudo ufw deny to 255.255.255.255
which will lead to
I have set default inbound to deny all
, however in the interest of hardening a Raspi installation would the above rules help?