A security group is a virtual firewall whose rules say which traffic can reach a resource and which can leave it. Use it to limit SSH and RDP to trusted addresses, open the web ports to everyone, or limit a database port to your VPC.
How security groups work
Section titled “How security groups work”You write the rules once, by protocol, port, and source address, and attach the group to a node, autoscale group, Kubernetes cluster, load balancer, or database. A change to the rules then applies everywhere the group is attached.
Each account has a default security group for each project and region, and a new node gets it unless you pick another group while creating the node. The default group allows all traffic in and out, so a new node works straight away.
Rules only ever allow traffic. When a node has several groups, traffic gets through if any one of them allows it. To narrow what reaches a node, attach your stricter group, then detach the group that allowed more.
A security group is separate from the Firewall product, which is a FortiGate appliance.
What you can do
Section titled “What you can do”Create and configure a group:
Attach and detach:
- Attach a security group to a node
- Detach a security group from a node
- Allow all traffic on a node temporarily
Manage the group:
Where to start
Section titled “Where to start”Get started with Security Group sets up a group that lets SSH in from your own IP only and puts it on a node. If something does not behave as you expect, Troubleshooting Security Group lists the errors and their fixes.
Was this page helpful?