Ga naar inhoud

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