===== UFW (Uncomplicated Firewall) ===== **Installation:** sudo apt install ufw **Enable firewall:** ufw enable **Reload firewall:** ufw reload **Set default rules:** sudo ufw default deny incoming sudo ufw default allow outgoing **Allow Port x via TCP/UDP:** ufw allow x/tcp ufw allow x/udp **Allow several ports (from x to y via TCP):** ufw allow x:y/tcp **Allow application/service traffic:** ufw allow ssh ufw allow http **Allow specific IP to specific port:** ufw allow from to any port **Show status:** ufw status verbose **Show status with numbered rules:** ufw status numbered //Sourced from [[https://phoenixnap.com/kb/configure-firewall-with-ufw-on-ubuntu|phoenixnap.com]]//