Information
The Uncomplicated Firewall (ufw) is a frontend for iptables and is particularly well-suited for host-based firewalls. ufw provides a framework for managing netfilter, as well as a command-line interface for manipulating the firewall
UFW acts as a frontend for both iptables and nftables and can use either as its backend, though the specific backend depends on the Linux distribution and system configuration.
You can enable the firewall, view its status, and manage rules using simple command-line tools to secure your system.
Solution
Run the following command to install Uncomplicated Firewall (UFW):
# apt install ufw
Impact:
Changing firewall settings while connected over the network can result in being locked out of the system.