Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Internet of Things with Raspberry Pi 3

You're reading from   Internet of Things with Raspberry Pi 3 Leverage the power of Raspberry Pi 3 and JavaScript to build exciting IoT projects

Arrow left icon
Product type Paperback
Published in Apr 2018
Publisher Packt
ISBN-13 9781788627405
Length 248 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Maneesh Rao Maneesh Rao
Author Profile Icon Maneesh Rao
Maneesh Rao
Arrow right icon
View More author details
Toc

Setting up a firewall

There are many firewall solutions available for Linux/Unix-based operating systems, such as Raspbian OS in the case of Raspberry Pi. These firewall solutions have IP tables underneath to filter packets coming from different sources and allow only the legitimate ones to enter the system. IP tables are installed in Raspberry Pi by default, but are not set up. It is a bit tedious to set up the default IP table. So, we will use an alternate tool, Uncomplicated Fire Wall (UFW), which is extremely easy to set up and use ufw.

To install ufw, run the following command (refer to Figure 10.17):

sudo apt install ufw
Figure 10.17

Once the download is complete, enable ufw (refer to Figure 10.18) with the following command:

sudo ufw enable
Figure 10.18

If you want to disable the firewall (refer to Figure 10.20), use the following command:

sudo ufw disable
Figure 10...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime