GithubHelp home page GithubHelp logo

azure-network-protocols's Introduction

Traffic Examination

Network Security Groups (NSGs) and Inspecting Traffic Between Azure Virtual Machines

In this tutorial, we observe various network traffic to and from Azure Virtual Machines with Wireshark as well as experiment with Network Security Groups.

Environments and Technologies Used

  • Microsoft Azure (Virtual Machines/Compute)
  • Remote Desktop
  • Various Command-Line Tools
  • Various Network Protocols (SSH, RDH, DNS, HTTP/S, ICMP)
  • Wireshark (Protocol Analyzer)

Operating Systems Used

  • Windows 10 (21H2)
  • Ubuntu Server 20.04

Needed

  • Azure subscription

Creating our resources

  1. Create a resource group
  2. Create a Windows 10 Virtual Machine (VM)
  • While createing the VM, select the previously created Resource group
  • While creating the VM, allow it to create a new Virtual Network (Vnet) and Subnet
  1. Create a Linux (Ubuntu) VM
  • While creating the VM, select the previously created Resource Group and Vnet: make sure you select password instead of SSH key.
  1. Observe your Virtual Network within Network Watcher

Observe ICMP Traffic

Icmp image ICMP Wireshark traffic

  1. Use Remote Desktop to conncet to your Windows 10 VM
  2. Within your windows 10 VM, install Wireshark
  3. Open Wireshark and filter for ICMP traffic only
  4. Retrieve the private IP address of the Ubuntu VM and attempt to ping it from within the Windows 10 VM
  • Observe ping request and replies within Wireshark
  1. From the Windows 10 VM, open Powershell and ping a public website (google.com) and observe the traffic in Wireshark
  2. Initiate a perpetual/non-stop ping from your Windows 10 VM to your ubuntu VM
  • Go back on Azure and Open the Network Security Group your Ubuntu VM is using and disable incoming (inbound) ICMP traffic
  • Back in the Windows VM, observe the ICMP traffic in Wireshark and the command line ping activity
  • Re-enable ICMP traffic for the Ubuntu VM
  • Go back to the Windows VM and observe the ICMP traffic in wireshark and command line resume
  • Stop the ping activity

Observe SSH Traffic

ssh image SSH Wireshark traffic

  1. Back in wireshark, filter for SSH traffic only
  2. From your Windows VM SSH into your Ubuntu virtual Machine, ssh user@privateIP
  • Type commands (ls, pwd and more) into the SSH session and observe SSH traffic spam in Wireshark
  • Exit the SSH session with control+d

Observe DHCP Traffic

dhcp image DCHP Wireshark traffic

  1. Back in Wireshark, filter for DHCP traffic only
  2. From your Windows VM attempt to issue your VM a new IP with the command ipconfig /renew
  • Observe the DHCP traffic appearing in Wireshark

Observe DNS Traffic

dns image DNS Wireshark traffic

  1. Back in Wireshark, fileter for DNS traffic only
  2. From your Windows VM in Powershell use the command nslookup to see what google.com and disney.com's IP addresses are
  • Observe the DNS traffic being shown in Wireshark

Observe RDP Traffic

RDP image RDP Wireshark traffic

  1. Back in Wireshark, filter for RDP traffic only by typing tcp.port == 3389
  2. Observe the immediate non-stop spam of traffic. Since we're in a live connection to our VM the traffic is going to be constantly transmitted.

Clean up our resources

Now that we're done and we learned a bit about network protocols let's clean up our resources at Azure and delete all Resource groups and VM's. Make sure you verify resource group deletion.

azure-network-protocols's People

Contributors

cmpi66 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.