Need help? We reply fast. +447365601447 helps@jryhost.com WhatsApp Contact us

← Help center · VPS and servers

How to set up a firewall on Ubuntu with UFW

UFW (Uncomplicated Firewall) is an easy way to block unwanted traffic.

Steps

Allow SSH first, or you will lock yourself out:

ufw allow 22/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable

Check it:

ufw status verbose

Good to know

Part of the new server checklist.

More in VPS and servers

Still stuck? Open a support ticket.

Chat with us