Open the machine → Firewall tab.

How firewall groups work

A firewall group is a reusable set of rules that you attach to one or more machines in the same project. Write the rules once, apply them to every web server you own; edit the group later and every attached machine picks up the change.

Each rule has:

FieldValuesNotes
DirectionIncoming / OutgoingIncoming rules allow traffic to your server, outgoing rules restrict traffic from it
ProtocolTCP, UDP, ICMP, GREICMP is what makes your server answer ping
Port80, 443, or a range like 8000-9000Not used for ICMP/GRE
Source / DestinationCIDR, e.g. 0.0.0.0/0Empty means any address

Default policies

The defaults are the important part, and they are not symmetric:

  • Incoming: DROP. Anything you don't explicitly allow is blocked. If there are no incoming rules at all, all inbound traffic is blocked.
  • Outgoing: ACCEPT. Anything you don't explicitly restrict is allowed. If there are no outgoing rules, all outbound traffic is permitted.

So the practical work is adding one incoming rule per service you expose: TCP 22 for SSH, TCP 80 and 443 for a website, and so on.

Apply the rules

Toggle a group On or Off for this machine, then click Apply Changes. Rules take effect live, with no reboot and no dropped connections beyond the ones you just blocked.

The tab shows how many groups are active and how many machines share each group, so you can see the blast radius before you edit one.

What this firewall does not do

For attack traffic you need filtering further upstream: see DDoS Mitigation for Edge ACL rules and AntiDDoS Premium, which drop traffic at the network edge before it reaches you.