Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Building an Azure Network Security Lab with NSGs and Network Watcher

Project 5/90 — My Cloud Engineering Journey As part of my 90-project Cloud Engineering challenge, I completed a hands-on project focused on Azure Network Security and Traffic Control. The goal was to deploy a Linux virtual machine, configure network security rules, control inbound traffic, and verify those rules using Azure Network Watcher. 1. Creating the Azure Virtual Network I started by…

In the context of my 90-project Cloud Engineering challenge, I completed a hands-on project centered on Azure Network Security and Traffic Control. The main objective was to deploy a Linux virtual machine, set up network security rules, regulate inbound traffic, and validate those rules using Azure Network Watcher.

1. Establishing the Azure Virtual Network: I initiated the project by establishing an Azure Virtual Network (VNet) called nsg-vnet. I defined two components within this VNet: a subnet named web-subnet with an address range of 10.0.0.0/24 and the Network Security Group (NSG) named nsg-web-security.

2. Establishing Network Security Group (NSG): The NSG serves as a network traffic filter, outlined by security rules that decide whether inbound or outbound traffic will be permitted or denied. I established the following inbound rules:

- An HTTP rule permitting port 80 and TCP protocol, allowing any source.

- An HTTPS rule permitting port 443 and TCP protocol, likewise allowing any source.

- An SSH rule permitting port 22 and TCP protocol, but only allowing traffic from my public IP address.

- A rule denying port 8080 for TCP protocol and any source.

3. Linking NSG to Subnet: I linked the NSG with the previously established web-subnet. This association enabled the security rules to apply to both incoming and outgoing network traffic from resources connected to that subnet.

4. Launching an Ubuntu Linux Virtual Machine: Post configuration, I deployed an Ubuntu Linux virtual machine. Access to the machine was granted via SSH using the permitted public IP address. Upon access, I updated the package lists and installed Nginx using the commands `sudo apt update` and `sudo apt install nginx -y`.

5. Evaluating the Network Security Rules: Configuring the security rules was merely the first step. To ensure these rules were working as intended, I utilized Azure Network Watcher's IP Flow Verify feature.

- The first test was on TCP port 8080, which confirmed that the connection was denied by the customized NSG rule.

- On port 80, TCP traffic was permitted, confirming the correctness of the HTTP rule.

- Finally, I tested SSH access from my own public IP address. The connection was successfully established, verifying that the SSH restriction was functioning as intended.

6. Lessons Learned: This project provided a profound understanding of several critical Azure networking concepts including Virtual Networks and subnet architecture, Network Security Groups and security rule priorities, Inbound traffic filtering, Restricting SSH access using source IP addresses, Associating NSGs with subnets, Deploying and managing an Ubuntu Linux VM, and leveraging Azure Network Watcher for traffic verification.

The most significant takeaway was the understanding of the discrepancy between merely configuring a security rule and validating its actual behavior.

One essential lesson was that the mere allowance of a port through an NSG does not automatically set up HTTPS - additional steps, such as obtaining and correctly configuring an SSL certificate, are necessary.

In conclusion, Project 5 of my 90-project challenge provided practical exposure to Azure network security, Linux administration, and traffic filtering. I'm continuing this challenge to further hone my Cloud Engineering skills through hands-on projects rather than theoretical learning. This marks 5/90 projects completed, with 85 more to go!

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

Daily App Backup Retention: US/EU Storage Rules for 30 or 90 Days

Short answer: daily app backups should use separate retention classes for 30 and 90 days, with a real upload-and-restore drill in the required US or EU region before the storage design is accepted.

  • Daily app backups must be stored for 30 or 90 days with separate retention classes.
  • Restoration test required before adopting storage layout in US or EU region.

Deduplicating Cascading Test Failures for Coding Agents: Raw Error Dumps vs. AST Root-Cause Error Clustering (-95.3% Input Tokens)

💡 AI Labo Benchmark Series — Experiment E29 (Feedback Sensors & Error Deduplication) This post is part of our empirical benchmark series testing AI coding agent harness patterns inside…

  • Mode B deduplicated raw downstream test exceptions into three upstream root-symbol clusters
  • Mode B reduced LLM calls by 66.7% and cut cumulative input tokens by 95.3%
  • Mode B ran 2.27 times faster with 99.9% reduction in cascading dump

Hide API keys behind a Cloudflare Worker

Every client that talks to an API ends up holding a key, and every copy of that key is another place it can leak. The pattern I use to avoid that: hide the key behind a Cloudflare Worker on the free…

I got tired of searching for files on 4 PCs: I set up an NFS server at home

Introduction These days I found myself thinking about the difficulty I had accessing some simple files, notes, those things that I would leave quietly in a .txt to take a peek at later.

  • Author set up NFS server at home to centralize files.
  • Used Ubuntu Server to install nfs-kernel-server package.
  • Accessed shared "shared" folder from other networked computers.

More from Wednesday 25 November →