45
AZURE A deep-dive into Azure Networking! Karim Vaes

A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

  • Upload
    others

  • View
    12

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

A deep-dive into

Azure Networking!

Karim Vaes

Page 2: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Karim VaesFormer Azure MVP,

Now TSP AppDev @ Microsoft

or …

“Cloud Solution Architect with a focus on

Application Development on Azure”

@kvaes https://blog.kvaes.be/

Page 3: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Agenda

Networking

PatternsRouting

Outbound

Connections

Network

Virtual

Appliance

Cost Drivers Q&A

Page 4: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Networking Patterns

Page 5: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Page 6: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Island Mode

Page 7: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Hybrid Connection

Page 8: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Network Virtual Appliance

Page 9: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Northbound

Southbound

Page 10: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

WAF

NGFW

Page 11: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Hub & Spoke Model

Page 12: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Growth Model

https://kvaes.wordpress.com/2017/10/02/azure-networking-blueprint-patterns-for-enterprises/

Island ModeHybrid

Connection

NGFW

+WAF

+NGFW

Hub

&

Spoke

Page 13: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Routing “Basics”

Page 14: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Azure Routing Explained

• Longest Prefix Matching Wins

• In case of tie…

1. User Defined Route (Custom)

2. Border Gateway Protocol (BGP)

3. System Route (Azure Default)

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview

Page 15: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Longest Prefix Matching

Target IP = 10.100.200.97

Configured Routes

• 10.0.0.0/8

• 10.100.0.0/16

• 10.100.200.0/24

• 10.100.200.97/32 => WINS (LPM)

Page 16: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Routing “Beyond the Basics”

Page 17: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Service Endpoints & Service Injection

Injection

Dedicated PaaS Services,

like for example

App Service Environment

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-service-endpoints-overview

https://kvaes.wordpress.com/2018/06/08/taking-a-look-at-azure-service-endpoints/

https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-for-azure-services

Page 18: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

VNET Peeringhttps://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-peering-overview

Page 19: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

One more thing

Conflicting / overlapping IP plans

Page 20: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Outbound Connections

Page 21: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

What IP will be seen externally?

Scenario Method Protocols Description

VM with own

PIP

SNAT only TCP, UDP, ICMP,

ESP

Azure uses the public IP assigned to the IP configuration

of the instance's NIC. The instance has all ephemeral

ports available.

VM behind LB SNAT with PAT

using LB PIP

TCP, UDP Azure shares the public IP address of the public Load

Balancer frontends with multiple private IP addresses.

Azure uses ephemeral ports of the frontends to PAT.

VM without

PIP or LB

SNAT with PAT

using shared

PIP

TCP, UDP Azure automatically designates a public IP address for SNAT,

shares this public IP address with multiple private IP addresses

of the availability set, and uses ephemeral ports of this public

IP address. This is a fallback scenario for the preceding

scenarios. We don't recommend it if you need visibility and

control.

Page 22: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Gotcha of the dayUsing an Internal Standard Load Balancer?

• Assign a PIP per nodeor

• Add the nodes to a External Load Balancer with “dummy” rules

Or the nodes won’t be able to reach the outside world…

Page 23: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Load Balancer Trivia

Using an External Standard Load Balancer

“Secure by Default”

“Closed by default for public IP and Load Balancer endpoints and

a network security group must be used to explicitly whitelist for

traffic to flow!”

Page 24: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Network Virtual Appliance

Page 25: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Before anythingDraw a high level 10 mile high overview of your security rules!

Page 26: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

... which everyone can understand!

Page 27: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

… and then start discussing the NVA

Page 28: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Now let’s talk about… Network Virtual Appliances

Page 29: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

NICNIC

NICNIC

NIC NICNIC NIC

Firewalls in Physical Networks

Page 30: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Azure = Layer 3 +

NICNIC

NICNIC

NIC NIC

Trusted subnet10.10.0.0/16

Untrusted subnet10.20.0.0/16

Address Space10.0.0.0/8

Page 31: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Floating IP = Load Balancer

NIC

NIC

Are you alive?

All good

Are you alive?

All good

Page 32: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

How many NICs does it take…

Page 33: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Flow Symmetry – Single NIC

NIC

NIC

NIC

NIC

Src IP AddrTrusted VM IP

Dest IP Addr:Untrusted VM IP

PayloadSrc Port:

XDest Port:

Y

Src IP AddrUntrusted VM IP

Dest IP Addr:Trusted VM IP

PayloadSrc Port:

YDest Port:

X

Page 34: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Flow Symmetry – Single NIC

https://azure.microsoft.com/en-us/blog/azure-load-balancer-new-distribution-mode/

Page 35: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Flow Symmetry – Single NIC

NIC

NIC

NIC

NIC

Src IP AddrTrusted VM IP

Dest IP Addr:Untrusted VM IP

PayloadSrc Port:

XDest Port:

Y

Src IP AddrUntrusted VM IP

Dest IP Addr:Trusted VM IP

PayloadSrc Port:

YDest Port:

X

Page 36: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Flow Symmetry – Dual NIC

NICNIC

NIC

NIC

NIC

NIC

SNAT

SNAT reversed

Page 37: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Responding to probes

NICNIC

NIC

NIC

NIC

NIC

From: 168.63.129.16

From: 168.63.129.16

From: 168.63.129.16

From: 168.63.129.16

Page 38: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Key Takeaways

• Floating IP = Load Balancer IP

• Dual NIC = Complex

• Require SNAT

• Test NVA response to probes

• Single NIC (recommended)

• No SNAT needed

Page 39: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREAZURE

Cost Drivers

Page 40: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

https://kvaes.wordpress.com/2018/01/04/understanding-the-budget-impact-of-azure-networking-on-your-architecture/

Page 41: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

What to remember?

• Understand cost drivers

• Design accordingly

• Network is mostly <1% of the cost

Page 42: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE If you are reading this…

You made it to the end!(without falling asleep)

Page 43: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Surely there must be...

questions

… which I can answer for you!

http://feedback.expertslive.nl/

Page 44: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZUREDo you want to gain more

knowledge about Microsoft

technology?

The Future Ready Skills program

offers online courseware, online

labs, live Q&A’s and expert

sessions, so you can acquire

your official Microsoft Certificate

in the most efficient way.

For more information:

aka.ms/frsblog

FUTURE READY

SKILLS

Page 45: A deep-dive into Azure Networking! - Experts Live Netherlands · A deep-dive into Azure Networking! Karim Vaes. ... Azure uses ephemeral ports of the frontends to PAT. VM without

AZURE

Next Session 17:30 – 18:30

Windows 10 is not your Daddy’s Windows anymore… Security improvements in the last builds

Kim Oppalfens & Tom Degreef