Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
deb9:ufw [2019/12/10 19:57] – created Bernard Condraudeb9:ufw [2022/07/29 00:23] (current) Bernard Condrau
Line 1: Line 1:
 ====== UFW Firewall ====== ====== UFW Firewall ======
   - Install with:<code>apt update   - Install with:<code>apt update
-apt install ufw</code> +sudo apt install ufw</code> 
-  - Check preset profiles and allow necessary services:<code>ufw app list +  - Check preset profiles and allow necessary services as root:<code>sudo ufw app list 
-ufw allow OpenSSH +sudo ufw default allow outgoing 
-ufw allow Samba</code>+sudo ufw allow OpenSSH 
 +sudo ufw allow "WWW Full" 
 +sudo ufw allow Samba 
 +sudo ufw allow 1194 # OpenVPN 
 +sudo ufw allow 3493 # NUT 
 +sudo ufw allow <custom port>/tcp # FTP 
 +sudo ufw allow <custom port:range> # FTP passive port range/tcp</code>
   - Enable firewall and check status:<code>ufw enable   - Enable firewall and check status:<code>ufw enable
-ufw status</code>+sudo ufw status</code> 
 +  - Remove firewall rule:<code>sudo ufw status numbered 
 +sudo ufw delete <rule number></code> 
 + 
 +  * See [[https://www.digitalocean.com/community/tutorials/initial-server-setup-with-debian-9|Initial Server Setup with Debian 9]]