670 B
670 B
UFW (uncomplicated firewall)
UFW (uncomplicated firewall) is a firewall configuration tool for Linux (linux) that runs on top of IPTables (iptables), included by default within Ubuntu distributions. It provides a streamlined interface for configuring common firewall use cases via the command line.
Enable UFW
To check if ufw is enabled, run:
sudo ufw status
To enable UFW on your system, run:
sudo ufw enable
If for some reason you need to disable UFW, you can do so with the following command:
sudo ufw disable
Block an IP Address
Block an IP Address/Subnet
sudo ufw deny from 203.0.113.0/24