583 B
583 B
Setup Ufw Firewall
- get the latest version of installed packages and refresh the repo cache
sudo apt update
- install firewall directly from the official repository
sudo apt install ufw --no-install-recommends
- configure ports and update firewall
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow <port>
sudo ufw enable
sudo ufw status numbered