security group

A stateful firewall attached to a resource’s network interface, made only of allow rules for ports, protocols and sources.

A rule open to 0.0.0.0/0 exposes that port to the whole internet.

In more detail

There is no deny rule: anything not allowed is refused. Replies to an accepted connection are allowed automatically. A rule can allow traffic from another security group instead of an address range, which follows a tier even as its addresses change.

Examples

tcp 443 from load-balancer-group
tcp 22 from admin-network
{"IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "IpRanges": [{"CidrIp": "0.0.0.0/0", "Description": "temp debug"}]}
aws ec2 describe-security-groups
Moving an instance into a quarantine security group that allows only responder addresses is the cloud equivalent of host isolation, and is easy to automate.

Related terms

Related guides

Taught in

References

Certification courses