Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

There is much more to UFW but the above steps should get you going.

More UFW Commands

Here are some more useful ufw commands,
 

Removing Rules

You can disable or delete rules. The example shown here is two step,

Code Block
languagebash
sudo ufw deny 443 # Disables and leave the entry in the status. Useful for a port you leave on and off sometimes.
sudo ufw delete deny port 443 # ActuallyDelete delete the firewall rule entry. NoteHere you must have it disabled to delete it.

Not exactly intuitive is that the delete command needs to be literal. In the above example we had "delete deny port 443". If the port was enabled and we wanted to delete in one step, the command would look like this,

Code Block
languagebash
sudo ufw delete allow port 443 # Deletes an enalbed rule.

Article Improvements

Warning

This article can be improved in the following areas.

...