Skip to content
BENIBIX Learn

Cloud Firewall vs UFW

People often think the cloud firewall and UFW are one firewall. They sit in two places. A cloud firewall runs in the provider's network, in front of the server, and you set it in a web panel. UFW runs on the server itself. Traffic has to pass both, so a port must be open in each one to work.

Infrastructure🏠 Renting a Server (VPS)

Cloud Firewall

A firewall the host runs in front of your server. You set it in a web panel.

A cloud firewall is a firewall your hosting provider runs in front of your server. You set its rules in the provider's web panel, not on the server. Traffic it blocks never reaches the server at all. One set of rules can cover many servers. Many people use it with a firewall on the server too, such as UFW.

Example
Emma makes a cloud firewall that lets in only ports 22 and 443. She applies it to all five of her servers at once.
Why it matters
It stops bad traffic before your server has to deal with it. A mistake on the server cannot turn it off.
Full entry
Infrastructure⌨️ Linux & the Command Line

Uncomplicated Firewall (UFW)

A small firewall tool on Ubuntu. You type short rules like allow 22.

UFW is a simple firewall tool that comes with Ubuntu. Its name is short for Uncomplicated Firewall. You give it short rules, like allow 22. It turns them into the longer rules the system needs underneath. It is off when Ubuntu is first installed, so you must turn it on yourself.

Example
Lucy sets up a new web server. She allows SSH and HTTPS with UFW, then turns it on.
Why it matters
It turns firewall work into a few short lines. So you can close each port the server does not need.
Full entry

In one line

Cloud Firewall
A firewall the host runs in front of your server. You set it in a web panel.
Uncomplicated Firewall (UFW)
A small firewall tool on Ubuntu. You type short rules like allow 22.