Lesson 5 of 6 Network Solutions

Layering Network Security Controls

This lesson explains how NSGs, Azure Firewall, WAF, DDoS protection and Bastion fit together.

Learning outcomes

After completing this lesson, you will be able to:

  • Compare the Azure Firewall SKUs.
  • Distinguish Azure Firewall from a web application firewall.
  • Compare the DDoS protection options.
  • Choose a control for a stated requirement.

Layers of defence

A Zero Trust network design assumes that a breach can happen, and it segments the network so that an attacker cannot move freely. Controls are layered, from the internet edge, through the network perimeter, down to individual workloads. No single product provides everything, and each answers a specific question.

Network security groups

An NSG filters traffic by source and destination address, port and protocol, at layer 3 and 4. It is free, and it applies to subnets and network interfaces. Application security groups allow rules to refer to groups of machines by role, such as web servers, rather than by IP address, which makes rules simpler. An NSG provides segmentation inside a network, but it does not inspect application traffic or filter by domain name.

Azure Firewall

Azure Firewall is a managed, stateful firewall that normally sits in the hub. It centralizes rules across spokes, filters by fully qualified domain names and logs traffic. Three SKUs exist, each adding capability.

Basic

Basic suits small businesses, with throughput up to 250 Mbps, and threat intelligence in alert mode only.

Standard

Standard offers up to 30 Gbps, with threat intelligence, web categories and DNS proxy, and it suits most enterprises.

Premium

Premium offers up to 100 Gbps, and adds TLS inspection, intrusion detection and prevention (IDPS) and URL filtering. It suits regulated environments, such as those subject to PCI DSS, that must inspect encrypted traffic.

Azure Firewall Manager offers central policy for firewalls across hubs and regions. Firewall policies can be arranged in a hierarchy, so that a parent policy sets organization-wide rules and local teams add their own.

Sort into groups

Choose the Azure Firewall SKU

Exam skills 4.4.4

Choose the Azure Firewall SKU for each requirement.

Log in to try this activity Interactive activities are free with an account.

Web application firewall

A web application firewall (WAF) protects web applications at layer 7 against attacks such as SQL injection and cross-site scripting, using managed rule sets, along with custom rules. It can be deployed on Azure Application Gateway, on Application Gateway for Containers, and on Azure Front Door. Front Door Standard supports custom rules only, whereas Premium adds Microsoft-managed rule sets and bot protection. Azure Firewall and WAF have different roles and are frequently used together: WAF inspects inbound web requests, and Azure Firewall controls network flows.

DDoS protection

Azure gives all resources a basic level of infrastructure protection, at no charge. Azure DDoS Protection adds adaptive tuning and telemetry for public IP addresses in a virtual network. DDoS IP Protection is priced per protected public IP, and suits a small number of addresses. DDoS Network Protection is priced per 100 protected IPs, and adds DDoS rapid response support, cost protection and a WAF discount, suiting organizations with many public IPs. A public IP attached to a NAT gateway is not supported by DDoS protection, which is a further reason to keep outbound and inbound paths separate.

Scenario questions

Choosing DDoS protection

Exam skills 4.4.4

Choose the DDoS protection option for each organization.

Log in to try this activity Interactive activities are free with an account.

Securing PaaS and administrative access

Azure Bastion provides RDP and SSH over TLS, through the Azure portal, without public IP addresses. Its SKUs range from Developer (free, shared, for one virtual machine at a time), through Basic, which adds a dedicated deployment, and Standard, which adds native client support and shareable links, to Premium, which adds session recording and private-only deployment.

Network Security Perimeter creates a logical boundary around PaaS resources, such as storage accounts and key vaults, so that they can communicate with each other, while public access is restricted. It is generally available, with support varying by service. Private endpoints remain the way to connect PaaS services privately to a virtual network.

Sort into groups

Which Bastion SKU?

Exam skills 4.4.4

Choose the Azure Bastion SKU for each requirement.

Log in to try this activity Interactive activities are free with an account.

Comparing the layers

The following table recaps which control answers which requirement.

RequirementControl
Segment subnets by port and addressNetwork security group
Allow outbound access to named domains onlyAzure Firewall
Inspect encrypted traffic with IDPSAzure Firewall Premium
Block SQL injection and cross-site scriptingWeb application firewall
Mitigate volumetric attacks with rapid responseDDoS Network Protection
Enforce rules that workload teams cannot overrideVirtual Network Manager security admin rules
Secure administrative access without public IPsAzure Bastion

The following diagram matches four network security requirements to an Azure security service.

Four network security requirements and their services. A WAF on Application Gateway or Front Door Premium blocks SQL injection; DDoS Network Protection handles large attacks; Azure Firewall Premium in the hub filters domains and inspects TLS with IDPS; and Azure Bastion Premium gives administrators recorded sessions without public IPs.
IDPS stands for intrusion detection and prevention system.
Worked example

Layering network security

A payment provider runs a public web application in a spoke VNet. It needs protection against SQL injection and large DDoS attacks. Outbound traffic from servers must be limited to approved domains, and encrypted traffic must be inspected for intrusions. Administrators must connect with no public IPs on servers, and their sessions must be recorded. What should you recommend?

Application Gateway with WAF or Front Door Premium with WAF addresses SQL injection. DDoS Network Protection addresses large attacks, and offers rapid response. Azure Firewall Premium in the hub handles domain filtering, with TLS inspection and IDPS for encrypted traffic.

Azure Bastion Premium provides administrative access without public IPs, and it is the SKU with session recording. NSGs would still provide segmentation between tiers, but they could not meet any of the inspection requirements alone. Azure Firewall Standard has no TLS inspection, and Bastion Standard has no session recording.

Check yourself

Which control blocks SQL injection in web requests: an NSG, Azure Firewall Standard or a WAF?

Show answer

A web application firewall, which inspects HTTP requests. NSGs work on addresses and ports.

Exam Tips

Remember for the exam

  • NSGs filter by address and port; Azure Firewall filters by domain name and centralizes rules.
  • Azure Firewall Premium adds TLS inspection, IDPS and URL filtering.
  • A WAF inspects web requests; deploy it on Application Gateway or Front Door.
  • DDoS Network Protection adds rapid response and cost protection.
  • Bastion Premium adds session recording.