How to set up a basic firewall on Linux

The UncomplicatedFirewall (Ufw) comes preinstalled in many Debian-based Linux distributions. As the name suggests, it really is…