Skip to content

ufw

Published: in 4088187

Updated: in 8f1ede6

  • #linux
  • #networking

Uncomplicated firewall.

A program for managing a netfilter firewall. It runs on top of iptables and provides an easy-to-use interface. With ufw, you can set up rules based on services or ports.

Usage

Check firewall status.

sudo ufw status

Allow a service or port.

sudo ufw allow ssh
sudo ufw allow 22

Enable firewall.

sudo ufw enable

Subcommands

Limitations

[!WARNING] Be careful when using ufw and Docker. For more information check chaifeng/ufw-docker.

Resources