Rpiufw

From Dawid's Wiki
Jump to: navigation, search

Setting up UFW on Raspbian[edit]

First we will need to install ufw (uncomplicated firewall)

sudo apt-get install ufw

Because I only want internal devices on my network accessing this server, I simply deny all the traffic:

sudo ufw default deny incoming

Now I proceed to allow traffic from my internal network:

sudo ufw allow from 192.168.1.0/24

Remember to restart UFW

sudo ufw disable
sudo ufw enable

For additional information, syntax, and examples refer to the documentation available here