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:
1 | |
To enable UFW on your system, run:
1 | |
If for some reason you need to disable UFW, you can do so with the following command:
1 | |
Block an IP Address
Block an IP Address/Subnet
1 | |