Firewall setup for Ubuntu server

Enable and configure the iptables firewall, this is easy through the “uncomplicated firewall” framework “UFW” that comes with Ubuntu!

sudo ufw allow 22
sudo ufw allow 80
//open up 443 as well if it's for a HTTPS site with SSL.
sudo ufw allow 443
sudo ufw enable
sudo ufw status verbose

Add your comment