Platform:
Domain Transfers & Technical Documentation Portal now live across all regions.Explore Docs
Pro CloudlyPro Cloudly

Configuring firewall rules

Protect your infrastructure by setting up proper firewall rules.

1 min readUpdated Nov 23, 2026By ProCloudly Support

Securing your cloud server begins with establishing a strict firewall policy that limits inbound network connections only to authorized service ports.

Using Uncomplicated Firewall (UFW)

Most ProCloudly Ubuntu instances include UFW pre-installed. Run the following commands to configure default rules:

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow ssh
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw enable

Verifying Active Rules

Check your active firewall status and permitted ports at any time using:

sudo ufw status numbered

Caution: Always ensure SSH (port 22 or your custom SSH port) is permitted before enabling the firewall to prevent getting locked out of your remote session.

Did this guide answer your question?

Your feedback helps us improve our guides and documentation.