This recipe uses a simple, yet powerful command-line tool (
ufw) to configure a firewall.
This recipe can be used to completely block network access to the Raspberry Pi. It can also be used to configure the Uncomplicated Firewall (
ufw) to allow access through the firewall to specific applications (for example, web servers).
After completing this recipe, you will be able to protect network access to your Raspberry Pi using a firewall.