Page tree

Versions Compared

Key

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

Minimal UFW Setup

UFW (Uncomplicated Firewall) is a firewall software package that is easy to use initially and yet flexible enough for power users.

...

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

More UFW Commands

Here are some more useful ufw commands,
 

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 allow port 443 # Actually delete the firewall rule entry. Note you must have it enabled to delete it.

Article Improvements

Warning

This article can be improved in the following areas.

...

Do you really need to enable the port to delete it? That was the only way the command worked for us, but then again we might have to use a different syntax for deleting a disabled port.

References

https://help.ubuntu.com/9.10/serverguide/C/firewall.html - official docs from Ubuntu.