knowledge/technology/applications/network/ufw.md

35 lines
619 B
Markdown
Raw Normal View History

2023-12-04 10:02:23 +00:00
---
obj: application
---
2024-03-19 08:25:42 +00:00
2023-12-04 10:02:23 +00:00
# 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
```
2024-01-17 08:44:04 +00:00
The next line is only needed _once_ the first time you install the package:
2023-12-04 10:02:23 +00:00
```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>
```