Firewalls
Feature overview
The Firewall feature lets you control which network connections are allowed to and from your virtual machines (VMs) using simple “allow” rules. A firewall resource is just a collection of rules. Each rule has:
Direction: inbound or outbound
Target addresses: an address group such as a specific IP, a CIDR range, or “All”
Service: protocol (TCP, UDP, ICMP) and optionally a port or port range
You can attach one or more firewalls to a VM.
Note the following concepts of rules application:
When multiple firewalls are attached, their allow rules combine in a permissive way.
If there is only a single firewall and it has no rules, all traffic is blocked by default.
With multiple firewalls, even if one is empty, any allow rules from the others still apply.
How rules are evaluated
Inbound rules specify the source addresses that may reach the VM on the given service.
Outbound rules specify the destination addresses the VM may reach on the given service.
Note that there is no implicit nor default rule to allow outgoing connections (though when you create a new Firewall from Web UI, one is pre-filled for convenience)
Multiple attached firewalls = union of all allow rules.