Skip to main content

Overview

Security groups are stateful, per-port firewall rulesets enforced at the hypervisor level. Every instance begins with a default security group that blocks all inbound traffic. Add rules to permit the specific protocols your workload requires — changes take effect immediately without a restart or interface bounce.
Prerequisites
  • An active Polystack project with at least one running instance
  • Dashboard access or CLI configured with valid credentials

Create a Security Group

Navigate to Security Groups

Navigate to Network > Security Groups. Click Create Security Group.

Name the group

Each new security group automatically includes two egress rules that allow all outbound IPv4 and IPv6 traffic. Add ingress rules for the specific ports your workload exposes.
3

Add ingress rules

Click the security group name to open the detail page, then click Add Rule.The Add Rule form has these fields:Common rules to add:
Avoid rules with remote 0.0.0.0/0 for SSH (port 22) in production. Restrict to your management CIDR or route SSH through a bastion host.

Assign to an instance

Navigate to Compute > Instances, click the More dropdown on the instance row, then select Manage Security Group under Related Resources. Select a port and add web-sg to the assigned security groups.
The rule takes effect immediately — no restart required.

Common Rules Reference


Source Security Group Rules

Rules can reference another security group as the remote source instead of a CIDR. This allows traffic from any instance assigned the referenced group, regardless of IP.
Allow traffic from app tier security group
Security group references are more maintainable than CIDR-based rules in dynamic environments — you add or remove instances from the source group rather than updating IP ranges in rules.

Manage Rules and Groups

Remove a Rule

List rules in a group
Delete a specific rule

Remove a Security Group from an Instance

Remove security group from instance

Delete a Security Group

Delete security group
Deleting a security group that is still assigned to instances will fail. Remove all instance assignments before deleting the group.

Next Steps

Floating IP Addresses

Associate public IPs with instances — ensure your security group allows inbound traffic first

Security Hardening

Administrator guide for port security, anti-spoofing, and default group hardening

Network Troubleshooting

Diagnose security group and connectivity issues

Create a Network

Set up the network your secured instances attach to