O'Reilly logo

Raspberry Pi Networking Cookbook - Second Edition by Rick Golden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a firewall with ufw

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.

Getting ready

Ingredients:

An Initial Setup or Basic Networking setup for the Raspberry Pi that has been powered on. You have also logged in as the user pi (see the recipes in Chapter 1, Installation and Setup for how to boot and log in and the recipes in Chapter 2, Administration for how ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required