knowledge/technology/applications/network/ufw.md

628 B

obj os
application linux

ufw

Ufw stands for Uncomplicated Firewall, and is a program for managing a netfilter firewall on Linux. 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.

ufw default deny

The next line is only needed once the first time you install the package:

ufw enable

See status:

ufw status

Enable/Disable

ufw enable
ufw disable

Allow/Deny ports

ufw allow <app|port>
ufw deny <app|port>