Network Security Groups
Objective
Hands-on practice with network security groups techniques.
Tools & Technologies
Azure NSGAWS Security Groupsiptables
Key Commands
az network nsg rule createaws ec2 authorize-security-group-ingressiptables -A INPUT -s 10.0.0.0/8 -j ACCEPTLab Steps
01
Azure NSG Rules
Create inbound and outbound rules in Azure NSGs with priority ordering.
02
AWS Security Groups
Configure stateful security groups for EC2 instances.
03
Rule Priority
Understand how priority numbers affect rule evaluation order.
04
Least Privilege
Apply principle of least privilege — deny all, allow only what is needed.
Challenges Encountered
- Overlapping rules with different priorities cause unexpected behavior
- NSG changes take effect immediately and can break running connections
Key Takeaways
- Cloud security groups are stateful — return traffic is automatically allowed
- Always audit security group rules periodically for stale entries