Set up the Firewall

Written by

in

,

Enable UFW

You should enable firewall to block dangerous access from outside. To enable UFW,

$ sudo systemctl enable ufw

Check the status of the fiewall

$ sudo ufw status numbered

Allow SSH connection

$ ssh ufw allow ssh

Activate the firewall

$ sudo ufw enable

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *