Site Tools


start:firewall

This is an old revision of the document!


Table of Contents

On Ubuntu and Debian the process is identical, so just open a terminal and type:

sudo apt-get install gufw

Once installed just run gufw from the terminal. Make sure you change status to on. In order to open a port just go to rules and an advanced rule opening port 22 would be something like:

Name: SSH Insert: 0 Policy: Allow Direction: In Interface: All Interfaces Protocol: TCP From: <blank> <blank> To: <blank> <22>

This opens SSH from anywhere to your PC. Obviously this is an example, you would change or add rules as appropriate for your use case.

Example:

Notes

Notes:

Audit your firewall settings:

Sometimes it is useful to compare what services are running on Debian vs what you have open as ports. I will do this now on my box to show an example.

First run this command to get a list of services listening on ports on your machine:



start/firewall.1652280564.txt.gz · Last modified: 2022/05/11 14:49 by peter