Open what you need.
Close the rest.
A server without a firewall is reachable on every port. Switch the firewall of a Compute instance on and nothing comes in except what you allow, by protocol, port and source address.
- Inbound rules
- Security groups
- No charge
Included with Compute at no charge
Built around your workload.
Servers that offer a few services to the internet, admin ports you only want to reach from your own address, and groups of servers that share the same rules.
The firewall of a server
Switch it on in the Network tab of a server. We add SSH on port 22 at that moment, for IPv4 and IPv6, so you are never locked out by pressing a button. Narrow or remove that rule once you have another way in.
Rules you write once
A rule names a protocol, a port or a range of ports, and where the traffic may come from. A security group holds such rules, inbound and outbound, and can be attached to several servers; a server takes up to ten groups.
What it does not do
The firewall of a server checks what comes in, not what your server sends out. It does not replace keeping your software up to date: what you open on purpose is still yours to look after.
Know what you choose.
Know what comes next.
A firewall with no rules refuses everything, including the way you get in. Write a rule for each address family you use: 0.0.0.0/0 covers IPv4 and ::/0 covers IPv6.
Compute
Compute instances with the CPU, memory and storage your application needs.
From $7.99 / month excl. VAT 02Containers
Run containers on your own Compute instance, from a ready-made app or your own Compose stack.
Your Compute plan, from $7.99 / month excl. VAT 03Volumes
Add a data disk to your server that can grow.
$0.09 per GB / month excl. VAT