Linux Networking and Firewall Configuration on Azure
Configure network interfaces, firewall rules with iptables and UFW, harden SSH, and troubleshoot with Linux networking tools.

Lab overview
Understanding Linux networking and firewall configuration is essential for securing and maintaining servers in any cloud or on-premises environment. In this lab, you will connect via lab Code-IDE to a pre-provisioned Ubuntu Server virtual machine running on Azure and perform hands-on network configuration and security hardening tasks. You will inspect and configure network interfaces using ip, nmcli, and netplan, create host-based firewall rules with both iptables and ufw, harden the SSH server to restrict unauthorized access, manage local hostname resolution through /etc/hosts, and diagnose connectivity issues using standard Linux networking tools. These skills align directly with the BCIT ACIT 2420 curriculum and prepare you for real-world network administration responsibilities.
Objectives
Upon completing this intermediate level lab, you will be able to:
- Inspect and configure network interfaces using ip addr, nmcli, and netplan YAML configuration files
- Create and manage firewall rules using both iptables and ufw for host-based packet filtering
- Harden an SSH server configuration by disabling root login, enforcing key-based authentication, and restricting access
- Diagnose network connectivity and DNS resolution issues using ping, traceroute, ss, dig, and nslookup
- Manage local hostname resolution by editing /etc/hosts and verify DNS behavior with query tools
Who is this lab for?
This lab is designed for:
- Linux system administration students studying networking fundamentals, particularly those enrolled in BCIT ACIT 2420 or equivalent courses
- Junior system administrators who want hands-on experience configuring firewalls and hardening SSH on Linux servers
- DevOps engineers looking to deepen their understanding of Linux network configuration and security in cloud-hosted environments
Verified against your live environment
An automated validation engine inspects your actual resources and configurations as you work. Completion means the task was performed, not multiple choice, real-world proficiency.
More labs like this
Deploy Linux VM with Networking using Azure CLI Script
Automate Azure infrastructure deployment with Bash scripting. Create a reusable script to deploy a Linux VM with networking using Azure CLI commands.
Managing Azure Blob Storage Operations with Azure CLI
Learn how to perform essential Azure Blob Storage operations using Azure CLI commands. Practice uploading, downloading, listing, and deleting blobs with batch operations.
Creating and Using Local Terraform Modules for Azure Networking
Build reusable local Terraform modules for Azure networking, define module inputs and outputs, and understand variable scope.
Related reading
Environment
Every lab includes
- Real environment, pre-credentialed
- Automated checks on every step
- Isolated sandbox, auto cleanup
- AI-recommended next steps
Lab curriculum
- 01
Logging into Azure Account using Azure Portal
- 02
Inspecting Network Interfaces and Routing Tables on Linux
- 03
Configuring iptables and UFW Firewall Rules
1 automated check
- 04
Hardening SSH Server Configuration and Security
1 automated check
- 05
Troubleshooting DNS and Network Connectivity Issues
1 automated check
Skills validated
Not the lab you were looking for?
Browse 200+ hands-on labs across AWS, Azure, Kubernetes, Docker, and cloud security.