User Tools

Site Tools


linux:notes:ufw_uncomplicated_firewall

This is an old revision of the document!


Resources

Show Current Rules

List

sudo ufw status

Numbered

sudo ufw status numbered

Show Supported Apps

sudo ufw app list
Test

Get App Info

  • Change x to an app listed in above command
sudo ufw app info x

Limit Connections

  • TODO: What does limit actually do?
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'
/usr/local/www/wiki/data/attic/linux/notes/ufw_uncomplicated_firewall.1728259759.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki