Firewalls & security groups
Live cloud → Firewalls (/gravity/live-cloud/firewalls) reads and changes an actual firewall at
your connected cloud provider account. Creating, editing, or deleting a
firewall here is a real change - it is not the same as the security group
editor under Networking & Edge, which only edits a record in Sencai’s
database. See Networks & connectivity for the general
version of this distinction.
Pick the connected cloud account at the top of the page before doing anything - the bar above the table always shows which provider, account, and organization you’re pointed at, and when the data was last loaded from the provider live. If you haven’t connected a cloud account yet, do that first.
The firewall list shows each firewall’s name, its ID at the provider, how many rules it has, how many servers it’s attached to, and when it was created.
Creating a firewall
Section titled “Creating a firewall”- Click New firewall and give it a name.
- Add one or more rules. Each rule needs:
- Direction - inbound or outbound.
- Protocol - TCP, UDP, ICMP, GRE, or ESP.
- Port - required for TCP and UDP, not used by the others (a range
like
8000-9000is accepted). - Source CIDRs on an inbound rule, Destination CIDRs on an
outbound one - the field swaps with the direction, so only one of the
two is ever shown. Leave it empty to allow the whole internet
(
0.0.0.0/0and::/0) - the interface flags any rule that’s wide open this way.
- Confirm. A firewall needs at least one rule; you can’t save one empty.
A sensible starting rule set
Section titled “A sensible starting rule set”A common pattern for a public web server: restrict administrative access, leave the public web ports open.
| Direction | Protocol | Port | Source |
|---|---|---|---|
| Inbound | TCP | 22 | Your own IP or office range only |
| Inbound | TCP | 80 | Open (leave source empty) |
| Inbound | TCP | 443 | Open (leave source empty) |
Editing a firewall
Section titled “Editing a firewall”You can rename a firewall, change its rules, or both in the same request - but rules are only sent if you actually touch them in the edit dialog; otherwise the firewall’s existing rules are left alone. Saving an empty rule list is allowed but asks for a second confirmation, since it means the firewall stops restricting anything.
Attaching and detaching servers
Section titled “Attaching and detaching servers”Use the Attach to servers or Detach from servers icon buttons on a firewall’s row, and identify servers by their native ID at the provider - for Hetzner, a number - not Sencai’s own instance ID. Attaching takes effect immediately; traffic that doesn’t match the firewall’s rules is dropped from that point on.
Deleting a firewall
Section titled “Deleting a firewall”Deletion happens at the provider immediately and can’t be undone. You confirm by typing the firewall’s name. If servers are currently attached, the dialog tells you how many - deleting removes their protection from this firewall the moment you confirm.
Networking & Edge’s security group record is different
Section titled “Networking & Edge’s security group record is different”/gravity/networks/[id]/security-groups/[sgId] looks similar but edits a
rule set stored in Sencai’s own database, not a real firewall at any
provider. It’s useful for documenting intended rules, but changing it does
not change what’s actually enforced at your cloud provider. If you’re
trying to change what traffic is actually allowed to reach a server, this
page - Live cloud → Firewalls - is the one that does that.
What’s next
Section titled “What’s next”- Networks & connectivity - the same live vs. record distinction for networks
- DNS
- Connect a cloud provider
- Access management