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 a front-end to iptables 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.

Removing Rules

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

...

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

Article Improvements

Warning

This article can be improved in the following areas.

How I can put comments in the firewall rules and have it show up in the ufw status? Using applications.d. Will add details from here,http://manpages.ubuntu.com/manpages/jaunty/en/man8/ufw.8.html

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.