Networking: IP Addresses/NSGs/Firewalls Flashcards

1
Q

Private vs Public IP Address. Usage:

A

Private IP addresses: Used for communication within an Azure virtual network (VNet), and your on-premises network, when you use a VPN gateway or ExpressRoute circuit to extend your network to Azure.

Public IP addresses: Used for communication with the Internet, including Azure public-facing services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Static vs Dynamic Addressing (Public IP addresses)

A

Dynamic addresses are assigned only after a public IP address is associated to an Azure resource, and the resource is started for the first time.

Static addresses are assigned when a public IP address is created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Public IP Address - SKU Choice (Allowed IP Assignment Methods)

A

Basic SKU - static or dynamic

Standard SKU - static

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Public IP Address - SKU Choice (Security)

A

Basic SKU : Open by default

Standard SKU: Secure by default. Closed to inbound traffic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Public IP Address - SKU Choice (available resources)

A

Basic SKU: Network interfaces, VPN Gateways, Application Gateways, and Internet-facing load balancers

Standard SKU: Network interfaces or public standard load balancers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Public IP Address - SKU Choice (Redundancy)

A

Basic SKU: Not zone redundant

Standard SKU: Zone redundancy by default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Private IP Address (available resources)

A

Virtual machine, internal load balancer, application gateway

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Static vs Dynamic Addressing (PrivateIP addresses)

A

Dynamic. Azure assigns the next available unassigned or unreserved IP address in the subnet’s address range.

Static. You select and assign any unassigned or unreserved IP address in the subnet’s address range.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Azure Reserved IP Addresses within each subnet

A

x. x.x.0: Network address
x. x.x.1: Reserved by Azure for the default gateway
x. x.x.2, x.x.x.3: Reserved by Azure to map the Azure DNS IPs to the VNet space
x. x.x.255: Network broadcast address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Network Security Group Rule Properties

A
Name
Priority
Port
Protocol (Any, TCP, UDP)
Source (Any, IP Addresses, Service tag)
Destination (Any, IP Addresses, Virtual Network)
Action ( allow or deny)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

NSGs Default inbound rules

A

These rules deny all inbound traffic except from the virtual network and Azure load balancer

Priority, Name, Port, Protocol, Source, Destination, Action
65000, AllowVNetInBound, Any, Any, VirutalNetwork, VirtualNetwork, Allow

65001, AllowAzureLoadBalancerInBound, Any, Any, AzureLoadBalancer, Any, Allow

65500, DenyAllInBound, Any, Any, Any, Any, Deny

Note: Rules are enacted in descending order of Priority

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

NSGs default outbound rules

A

The rules only allow outbound traffic to the Internet and the virtual network.

Priority, Name, Port, Protocol, Source, Destination, Action
65000, AllowVNetOutBound, Any, Any, VirutalNetwork, VirtualNetwork, Allow

65001, AllowInternetOutBound, Any, Any, Any, Internet, Allow

65500, DenyAllOutBound, Any, Any, Any, Any, Deny

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Determining NSG effective rules

A

NSGs are evaluated independently, and an “allow” rule must exist at both levels (i.e., subnet and NIC levels) otherwise traffic will not be allowed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Hub-and-Spoke network topology for deploying firewalls

A

Hub is a virtual network (containing Azure Firewall, VPN Gateway, Azure Bastion) in Azure that acts a central point of connectivity to your on-premises network

Spokes are virtual networks (containing resource subnets) that peer with the hub and can be used to isolate workloads .

Traffic flows between the on-premises datacenter and the hub through an ExpressRoute or VPN gateway connection.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Firewall rules (NAT rules)

A

Each rule in the NAT rule collection is used to translate your firewall public IP and port to a private IP and port.

Name: A label for the rule.
Protocol: TCP or UDP.
Source Address: * (Internet), a specific Internet address, or a CIDR block.
Destination Address: The external address of the firewall that the rule will inspect.
Destination Ports: The TCP or UDP ports that the rule will listen to on the external IP address of the firewall.
Translated Address: The IP address of the service (virtual machine, internal load balancer, and so on) that privately hosts or presents the service.
Translated Port: The port that the inbound traffic will be routed to by the Azure Firewall.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Firewall (Network rules)

A

Any non-HTTP/S traffic that will be allowed to flow through the firewall must have a network rule.

Name: A friendly label for the rule.
Protocol: TCP, UDP, ICMP (ping and traceroute) or Any.
Source Address: The address or CIDR block of the source.
Destination Addresses: The addresses or CIDR blocks of the destination(s).
Destination Ports: The destination port of the traffic.

17
Q

Firewall rules (Application rules)

A

Application rules define fully qualified domain names (FQDNs) that can be accessed from a subnet.

Name: A friendly label for the rule.
Source Addresses: The IP address of the source.
Protocol:
Port: HTTP/HTTPS and the port that the web server is listening on.
Target FQDNs: The domain name of the service, such as www.contoso.com. Wildcards can be used. An FQDN tag represents a group of FQDNs associated with well known Microsoft services. Example FQDN tags include Windows Update, App Service Environment, and Azure Backup.

18
Q

Firewall rule processing.

A

Network rules first, then Application rules)

19
Q

Public IP Addresses

A

Use a public IP address for public-facing services.

20
Q

Dynamic public IP addresses

A

are assigned addresses that can change over the lifespan of the Azure resource. (The dynamic IP address is allocated when you create or start a VM. The IP address is released when you stop or delete the VM.)

21
Q

Static public IP addresses

A

are assigned addresses that won’t change over the lifespan of the Azure resource.

22
Q

Public IP Addresses - Basic vs Standard SKU

A

Basic - always open, available for inbound traffic only, no availability zones, no routing preferences

Standard - always use static allocation. are secure (closed to inbound traffic by default), support routing preferences

23
Q

Public IP Address Prefix

A

a reserved, static range of public IP addresses.

When you define a Public IP address prefix, associated public IP addresses are assigned from a pool for an Azure region.

The benefit of a public IP address prefix is that you can specify firewall rules for a known range of IP addresses.

You create a public IP address prefix by specifying a name and prefix size. The prefix size is the number of reserved addresses available for use.

24
Q

Private IP Addresses

A

are used for communication within an Azure Virtual Network, including virtual networks and your on-premises networks

25
Q

Dynamic private IP addresses

A

are assigned through a DHCP lease and can change over the lifespan of the Azure resource.

26
Q

Static private IP addresses

A

are assigned through a DHCP reservation and don’t change throughout the lifespan of the Azure resource. Static private IP addresses persist if a resource is stopped or deallocated.