Jump to content
  • entries
    142
  • comments
    0
  • views
    87509

Application security groups


proximagr

706 views

 Share

Application Security Groups to simplify your Azure VMs network security
Application Security Groups helps to manage the security of the Azure Virtual Machines by grouping them according the applications that runs on them. It is a feature that allows the application-centric use of Network Security Groups.
Intro.PNG
An example is always the best way to better understand a feature. So let’s say that in a Subnet we have some Web Servers and some Database Servers. The access rules of the Subnet’s Network Security Group to allow http, https & database access to those servers will be something like this:
img_5b8152da7e0fd.png
Using only the Network Security Groups functionality we need to add the IP addresses of the servers to use them to the access lists. There are two major difficulties here:

  1. For every rule we need to add all the IPs of the servers that will be included.
  2. If there is an IP address change (e.g by adding or removing a server) then all the relative rules must change.

Use Application Security Groups
Now, lets see how we can bypass this complexity by using Application Security Groups, combined with Network Security Groups.
Create two Application Security Groups, one for the Web Servers and one for the Database Servers
At the Azure Portal, search for Application Security Groups
img_5b8154c1353ae.png
Provide a name and a Resource Group
img_5b8154ee621c5.png
Create one more with name Database Servers and at the Resource Group you will have those two Application Security Groups:
img_5b81557127952.png
Then go each Virtual Machine and attach the relevant ASG.
Click the Virtual Machine and then go to the Networking settings blade, and press the “Configure the application security groups”
img_5b8155cd99214.png
Select the relevant ASG and press save:
img_5b81560c56d05.png
Do the same for all your servers. Finally open the Network Security Group. Open the https rule, at my example is the “https2WebServers” rule. Change the Destination to “Application Security Group” and for Destination application security group select the Web Servers.
img_5b8156904905f.png
Same way change the database access rule and for Source add the “Database Server” ASG and for destination the “Web Servers” ASG. Now the NSG will look like this:
img_5b815793b9eb3.png
Now on when removing a VM from the Web Servers farm of the Database servers cluster there is no need to change anything at the NSG. When adding a new VM, the only thing we need to do is to attach the VM to the relative Application Security Group.
A Virtual Machine can be attached to more than one Application Security Group. This helps in cases of multi-application servers.
There are only two requirements:

  • All network interfaces used in an ASG must be within the same VNet
  • If ASGs are used in the source and destination, they must be within the same VNet

 Share

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...