---
obj: application
os: linux
---
# ufw
Ufw stands for Uncomplicated Firewall, and is a program for managing a netfilter firewall on [Linux](../../linux/Linux.md). It provides a command line interface and aims to be uncomplicated and easy to use.

## Basic configuration

A very simplistic configuration which will deny all by default.
```shell
ufw default deny
```

The next line is only needed _once_ the first time you install the package:
```shell
ufw enable
```

See status:
```shell
ufw status
```

Enable/Disable
```shell
ufw enable
ufw disable
```

Allow/Deny ports
```shell
ufw allow <app|port>
ufw deny <app|port>
```