apt install ufw
enable default deny rule
ufw default deny
enable and auto-start firewall
ufw enable
Status:
ufw status ufw status verbose
GUI
apt install gufw
apt install ufw
enable default deny rule
ufw default deny
enable and auto-start firewall
ufw enable
Status:
ufw status ufw status verbose
GUI
apt install gufw