This content originally appeared on DEV Community and was authored by Emmanuel Oluajo
In Azure, Network Security Groups (NSGs) are used to filter and manage network traffic entering and leaving virtual networks.
Configuring NSGs enables you to:
- Based on source and destination IP addresses, ports, and protocols, permit or prohibit traffic.
- Secure access to applications and resources on Azure
- Identify security rules and priorities
- Prevent malicious traffic and unauthorised access
- Connect NSGs to Azure resources, NICs, or subnets.
This article will serve as a guide to deploying, setting up and running simple operations on NSGs in Azure.
PREREQUISITE
- Working computer
- Internet connection
- Microsoft Azure account + active subscription
PROCEDURE
DEPLOY A VIRTUAL MACHINE
Using whatever method, deploy a virtual machine and open it.
CREATE A NETWORK SECURITY GROUP
On the side menu, click on “Networking” and then “Network settings”.
Click on the “Add network security group” button.
A NSG will be created in a matter or moments.
CREATE INBOUND SECURITY PORT RULE
Click on “Create port rule” and then, “Inbound port rule”.
On the pop-up menu, select “RDP” in the dropdown list for “Service”.
Under “Action”, tick “Allow” to allow inbound RDP access to the VM. Click on “Add” button.
The new inbound port rule can be seen as shown.
CREATE OUTBOUND SECURITY PORT RULE
Click on “Create port rule” and then, “Outbound port rule”.
On the pop-up menu, select “HTTP” in the dropdown list for “Service”.
Under “Action”, tick “Deny” to deny outbound internet access to the VM. Click on “Add” button.
The new outbound port rule can be seen as shown.
This content originally appeared on DEV Community and was authored by Emmanuel Oluajo
Emmanuel Oluajo | Sciencx (2024-07-12T23:40:10+00:00) SECURING NETWORK TRAFFIC USING NETWORK SECURITY GROUP. Retrieved from https://www.scien.cx/2024/07/12/securing-network-traffic-using-network-security-group/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.