Azure : Security Services - Page - 3

Security Services

  • Azure Network Security Group (NSG)
    • Layer 3/4 traffic filtering.
  • Azure Application Security Group (ASG)
    • Groups VMs for easier NSG rule management.
  • Azure Firewall
    • Managed stateful firewall with centralized policies.
  • Azure Web Application Firewall
    • Protects web applications from common attacks such as SQL injection and XSS.
  • Azure DDoS Protection
    • Protects against distributed denial-of-service attacks.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

These Azure security services work together to protect your network and applications at different layers.

A useful way to think about them:

ServiceProtects What?Layer
NSGNetwork traffic to/from resourcesLayer 3/4
ASGGroups resources for NSG rulesManagement aid
Azure FirewallEntire network with advanced filteringLayer 3–7
WAFWeb applicationsLayer 7
DDoS ProtectionPublic-facing services from flooding attacksNetwork edge


1. Azure Network Security Group (NSG)

An NSG is the first line of defense in Azure networking.

It contains rules that allow or deny traffic based on:

  • Source IP
  • Destination IP
  • Port
  • Protocol (TCP/UDP)
  • Direction (Inbound/Outbound)

Example

You have a web server:

NSG Rules:

PrioritySourcePortAction
100Any80Allow
110Any443Allow
120Your IP22Allow
4096AnyAnyDeny

✅ Website accessible on HTTP/HTTPS

✅ Admin can SSH

❌ All other traffic blocked

Where can NSG be attached?

NSG can be attached to:

  • Subnet
  • NIC


2. Azure Application Security Group (ASG)

ASG helps organize VMs logically.

Without ASG, NSG rules often reference IP addresses.

Example:

10.0.1.4
10.0.1.5
10.0.1.6

Managing many IPs becomes difficult.

With ASG

Create groups:

WebServers
AppServers
DatabaseServers

Add VMs to groups.

VM1 → WebServers

VM2 → WebServers

VM3 → AppServers

VM4 → DatabaseServers

NSG Rule:

Allow:

Source = WebServers

Destination = AppServers

Port = 8080

Instead of managing individual IPs, you manage groups.

Benefits

  • Easier administration
  • Cleaner NSG rules
  • Better scalability

3. Azure Firewall

Azure Firewall is a fully managed, centralized firewall service.

Think of NSG as a door lock for individual rooms.

Think of Azure Firewall as the security checkpoint for the entire building.

Capabilities

Network Rules

Allow or block:

IP

Port

Protocol

Example:

Allow:

10.0.0.0/16 → Internet

Port 443

Application Rules

Filter based on domain names.

Example:

Allow:

github.com

Block:

facebook.com

NAT Rules

Translate public IPs to private resources.

Example:

Public IP

20.50.100.10

↓

Private VM

10.0.1.4

Stateful Inspection

Azure Firewall remembers connections.

Example:

VM → Internet

Return traffic is automatically allowed because the session is tracked.

Typical Architecture

     Internet

          │

          ▼

Azure Firewall

          │

 ┌──┴──┐

 ▼             ▼

Web          App

VMs         VMs


4. Azure Web Application Firewall

WAF protects web applications from application-layer attacks.

Unlike NSG and Firewall, WAF understands:

HTTP

HTTPS

Cookies

URLs

Headers

Comments

Popular posts from this blog

Azure - All Networking Components - Page-1

Azure : Core Networking - Page -2