User Tools

Site Tools


notes:ufw

Differences

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

Link to this comparison view

Next revision
Previous revision
notes:ufw [2020/06/11 16:12] – created Sean Rhonenotes:ufw [2023/05/04 19:59] (current) Sean Rhone
Line 3: Line 3:
   * https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands   * https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
   * https://linuxize.com/post/how-to-setup-a-firewall-with-ufw-on-ubuntu-20-04/   * https://linuxize.com/post/how-to-setup-a-firewall-with-ufw-on-ubuntu-20-04/
 +  * https://wiki.archlinux.org/index.php/Uncomplicated_Firewall
  
-====== Show Supported Apps ======+====== Show Current Rules ====== 
 + 
 +===== List =====
  
 **** ****
 +
 +  sudo ufw status
 +
 +===== Numbered =====
 +
 +****
 +
 +  sudo ufw status numbered
 +
 +====== Show Supported Apps ======
  
   sudo ufw app list   sudo ufw app list
 +
 +  Test
  
 ====== Get App Info ====== ====== Get App Info ======
Line 21: Line 36:
  
   sudo ufw limit ssh   sudo ufw limit ssh
 +
 +====== Allow Specific Port/Protocol ======
 +
 +  * ''22'' is the port number and ''tcp'' is the protocol
 +  * ''udp'' can be a protocol
 +
 +  sudo ufw allow 22/tcp
 +
 +====== Ubuntu Deny All and Allow SSH ======
 +
 +****
 +
 +  sudo ufw reset && sudo ufw default deny && sudo ufw logging off && sudo ufw allow 'ssh' && sudo ufw limit 'ssh' && sudo ufw enable && sudo systemctl enable 'ufw'
  
/var/www/wiki/data/attic/notes/ufw.1591906342.txt.gz · Last modified: 2020/06/11 16:12 by Sean Rhone