Overview
I created an Azure network security group to control incoming traffic. I added rules that allow SSH on port 22 for administration and HTTP on port 80 for web traffic, then attached the group to my subnet.
What I set out to do
- Control which traffic can reach the subnet.
What I did
- I created the NSG and looked through its default rules.
- I added inbound rules for SSH on port 22 and HTTP on port 80.
- I attached the NSG to the subnet.
Screenshots
They are in the same order as in my repository. Click one to see it full size.
I painted over my Azure subscription ID in red. Everything else is as I captured it.
1. NSG CreatedShows the successful deployment of the Azure Network Security Group. 2. NSG OverviewShows the Network Security Group properties and configuration after deployment. 3. Default Security RulesShows the default inbound and outbound security rules created with the NSG. 4. Creating HTTP RuleShows the configuration of the inbound HTTP rule to allow web traffic on port 80. 5. HTTP Rule AddedShows the completed HTTP inbound rule successfully added to the Network Security Group. 6. Associating NSG with SubnetShows the Network Security Group being associated with the virtual network subnet. 7. NSG Association OverviewShows the Network Security Group successfully associated with the subnet. 8. Subnet Protected by NSGShows the subnet protected by the associated Network Security Group.
How I tested it
- The subnet page shows the NSG attached.
Repository
My full notes and the original screenshots are on GitHub: azure-basic-labs/03-azure-network-security-group