Walk the Create Firewall Group dialog — name, description, optional template, then build the inbound and outbound rule lists, save, and attach to a VM
Updated May 8, 2026A Firewall Group is a named bundle of inbound and outbound rules that you attach to a VM’s public IP. This page walks the dashboard create flow. Read Inbound vs outbound, layers, and rule format first if you haven’t — it explains protocol/port/IP formats, the system Default Firewall layer, and which ports you can never open.
In the left sidebar, click Networking → switch to the Firewall tab. The page shows the system Raff Default Firewall card at the top and Your Firewall Groups below.
Click the orange + Create Firewall Group button on the right.
Pick a label that’s easy to recognize when picking from a list — prod-web, db-private, bastion-only. The name must be unique inside your account. Names cannot be renamed today; pick deliberately.
Free-form. Useful for explaining “why this group exists” — “Public web servers behind Cloudflare”, “Internal Postgres — never expose 5432 outside VPC”. Shows up in the Edit Rules dialog and helps teammates avoid misuse.
A dropdown of five pre-built rule sets. Picking one fills both rule lists below; you can edit any row before saving. Leave on Custom Rules to start blank.
Template
Pre-fills
Web Server
Inbound: TCP 22 (SSH), TCP 80,443, ICMP. Outbound: ALL
Database Server
Inbound: TCP 22 (SSH), TCP 3306,5432 VPC-scoped. Outbound: ALL
SSH Only
Inbound: TCP 22. Outbound: ALL
Allow All
Inbound: ALL. Outbound: ALL — not recommended for production
Deny All
No inbound, no outbound — full lockdown
The Database Server template is unique in that its DB rules are scoped to a specific VPC at creation time — the dashboard prompts for which VPC, then writes the network_id field automatically. Other templates leave source IP at 0.0.0.0/0 (any) — tighten as needed.If you’d rather build from scratch, leave the dropdown at Choose a template or start custom… and use the empty rule rows below.
The + Add button on the right of the Inbound Rules header inserts another row. The trash icon on each row removes that row. Up to 40 inbound rules per group.A few realistic examples:
5. Outbound Rules — Allow connections from your VM to the internet
Outbound rules define what the VM can connect out to. The default row in the dialog — ALL / All ports / 0.0.0.0/0 — means “this VM can reach anything on any port” and matches the system Default’s behavior. Most workloads keep this exact rule.You’d add restrictive outbound rules when:
You want to prevent a compromised VM from being used as an attack platform
You’re running a VM that should only ever speak to specific destinations (a database that only talks to the application IP, a dev VM that should only reach package mirrors)
You’re meeting a compliance requirement that mandates egress filtering
If you remove the catch-all and add specific outbound rules, anything not matched by your allow list will be dropped on the way out. Keep DNS (UDP 53 / TCP 53 to 0.0.0.0/0), NTP (UDP 123 to 0.0.0.0/0), and your package mirrors in the allowlist or the VM will become unmaintainable.Up to 40 outbound rules per group.
The dialog closes, the group appears in Your Firewall Groups with Rules: <inbound count> in / <outbound count> out, VMs: None until you attach one, and Created: just now.
You can add, remove, or modify rules without detaching the group from VMs. The rule set on the platform side updates immediately. See Update rules for the in-place edit flow.
A VM reboot is required for firewall changes to take effect inside the guest. Whenever you attach, detach, or edit a Firewall Group on a VM, reboot that VM — the guest’s network stack picks up the new rules at boot. Skipping the reboot leaves the VM running with its previous rules.