Security & Access ControlIntermediate
Host & Network Firewall Baseline
Apply least-privilege ingress rules using UFW or nftables for web, SSH, and database tiers.
4 min readUpdated Nov 23, 2026By ProCloudly Documentation Team
Default Deny Principle
Permit only explicitly required public ports (HTTP/80, HTTPS/443, and hardened SSH) while keeping database ports bound to loopback or private VPC subnets.
sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow from YOUR_OFFICE_IP to any port 22 proto tcp
sudo ufw enableWas this guide helpful?
Your feedback helps us improve our guides and documentation.