Questions tagged [azure-nsg]

Network Security Groups (NSG) filters network traffic to and from Azure resources in an Azure virtual network. A Network Security Group(NSG) contains security rules that allow or deny inbound network traffic to, or outbound network traffic from, several types of Azure resources. For each rule, there are source and destination, port, and protocol.

A Network Security Groups (NSG) controls the network traffic to and from Azure resources in an Azure virtual network. A Network Security Group(NSG) contains security rules that allow or deny inbound network traffic to, or outbound network traffic from, several types of Azure resources.

Network security group security rules are evaluated by priority using the 5-tuple information (source, source port, destination, destination port, and protocol) to allow or deny the traffic. Each rule is specified with following propertie

  • Priority: A number between 100 and 4096. Rules are processed in priority order, with lower numbers processed before higher numbers, because lower numbers have higher priority. Once traffic matches a rule, processing stops. As a result, any rules that exist with lower priorities (higher numbers) that have the same attributes as rules with higher priorities are not processed.
  • Source or destination: Any, or an individual IP address, classless inter-domain routing (CIDR) block (10.0.0.0/24, for example).
  • Protocol: TCP, UDP, or Any, which includes TCP, UDP, and ICMP. You cannot specify ICMP alone, so if you require ICMP, use Any.
  • Direction: Whether the rule applies to inbound, or outbound traffic.
  • Port/Port Range: You can specify an individual or range of ports. For example, you could specify 80 or 10000-10005. Specifying ranges enables you to create fewer security rules.
  • Action: Allow or deny

By default for any port, NSG allows all traffic from Virtual network to Virtual Network, allows all traffic from AzureLoadBalancer to any host and denies all traffic from any other source to any host.

115 questions
0
votes
1 answer

Limit access to AKS cluster IP from internal Azure traffic

How to limit access to AKS cluster IP from internal Azure traffic using NSG on the load balancer/application gateway?
abs
  • 1
0
votes
1 answer

Time delay for a new NSG rule become effective

When i add a new rule to my NSG, it takes some time until it becomes effective. This is confusing because on a few occasions, I thought my rules are not working and started to keep changing things. Is there any way to find when a new NSG rule start…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
0
votes
1 answer

What changes when I add an empty nsg to a subnet?

When I create an AKS cluster using Azure Portal, it creates a VNET with a single subnet in it. The subnet does not have any NSG associated to it as shown below: To my understanding, having a subnet without any NSG is a bit unusual. I wanted to add…
Allan Xu
  • 7,998
  • 11
  • 51
  • 122
0
votes
2 answers

Connect local devices to Azure Active Directory Domain Services

Can't find clear documentation to connect local devices to Azure AD Domain Services (AADDS). Have already successfully setup Azure WAN + Azure Hub + User point-to-site VPN connection. But don't have clear documentation on how to setup NSG rules to…
0
votes
0 answers

allow inbound traffic in network security group in azure for a dynamic IP

We need to allow a platform traffic to reach our systems (as I know adding a static public IP in our network security group in azure), but they mention that they don't have a static public IP or a range of IPs to whitelist, but instead a static…
Hamza AZIZ
  • 2,582
  • 1
  • 9
  • 18
0
votes
1 answer

Azure Backup requires ports?

I have created a DMZ subnet on Azure and have everything (inbound/outbound) locked down using NSGs. Currently I have a linux VM running and my azure backup is failing for the VM. I went and added Azure Backup service tag for both inbound and…
Jay Walker
  • 17
  • 2
0
votes
1 answer

ARM create subnet with NSG

I am trying to create an arm template that creates an additional subnet on an existing Vnet and also creates the NSG at the same time and then attaches it to the subnet. I have got it to the point the NSGs are created but the minute I try to attach…
likwid786
  • 77
  • 1
  • 7
0
votes
1 answer

Azure Network Interface Effective Rules

We are looking for an automated way to identify which are the Effective Security Rules that are applied to a Network Interface (NIC). We are aware that we can achieve this using a REST API call: Network Interfaces - List Effective Network Security…
0
votes
2 answers

Azure Terraform NSG rule creation ERROR for DestinationAddressPrefix/DestinationAddressPrefixes as "AzureMonitor"

EDITED NEW POST TO ADD MORE CLARIFICATION: In current architecture we run ansible playbook (infrastructure.yml) to deploy infrastructure in Azure. We are ABLE TO CREATE resources with no problems including many other NSG rules. With new NSG rule,…
MustafaNY
  • 1
  • 2
0
votes
1 answer

Azure load Balancers and NSG rules to allow traffic through

What I'm trying to do is detailed below the diagram The client can only connect to VM1 and VM2 through the standard Azure load balancer on port X, and not directly to the VM IP addresses We have a rule in the LB to pass traffic on port X to the…
vandekerkoff
  • 415
  • 8
  • 24
0
votes
1 answer

Azure default NSG not blocking internet traffic

I am working with this article and have setup the network diagram described in the article itself and gone a little further by adding a NSG. Given the below diagram and context I am struggling to understand why I can hit my API directly when the NSG…
0
votes
1 answer

Update NSG with JSON definition. Only permission is contributor on the NSG resource

I have a file called nsg-properties.json which looks like this: { "securityRules": [ ] } I have a service principal with only a single role assignment, which is Contributor on the scope…
0
votes
1 answer

NSG Configuration Management

I am looking for a tool or some way to manage the Azure NSG configuration. NSG rules are changed manually on ad-hoc basis at the moment. I am looking to implement this NSG config change in more scripted fashion so that I can track the changes…
Anil
  • 1
  • 1
  • 6
0
votes
1 answer

Get subnets and NICs associated with a given NSG for all subscriptions

I am new to PS.... trying to get NSGs in a given subscription (and once this works to do this for all subscriptions) to show the following properties (NSG Name, Location, Resource Group, Subnet, NIC). I am using the below script from Getting list of…
0
votes
1 answer

APIM and AKS integration

I am trying to integrate APIM(External) to the VNet where AKS is running. right now, I have created /29 CIDR subnet where AKS subnet is there and assigned to the APIM but APIM keep complaining that port 3443 is blocked. I have specifically added the…
threeleggedrabbit
  • 1,722
  • 2
  • 28
  • 60