Skip to content

UFW (Uncomplicated Firewall) Basics

UFW (Uncomplicated Firewall) is a user-friendly front-end for managing iptables firewall rules on Linux systems. It simplifies the process of configuring a firewall by providing an easy-to-use command-line interface.

Terminal window
ufw enable
ufw default allow outgoing
ufw default deny incoming
Terminal window
ufw allow ssh
ufw allow 22

Show all rules:

Terminal window
ufw status verbose

Remove existing rule:

Terminal window
ufw delete allow 3002
Terminal window
ufw disable