Expert · Incident · 11 of 180:00 / 15:00

Locked out of the app server

Problem

Admins can't get into the app server through Bastion.

Your job
  • Let Bastion reach vm-app on 22
Without breaking
  • Keep everything else in the hub blocked from vm-app on 22broken
Background

"I can't get into the app server through Bastion anymore. It worked before last week's network cleanup." Admins connect with bas-hub, the Azure Bastion host in the hub. The app server is vm-app in Spoke 1. Only Bastion may reach it on SSH. Other hub machines, like vm-tools, must not.

How to work it
  1. 1See it fail

    This traffic starts outside the lab VMs, so you can't log in to test it. Watch it instead.

    Tap Explain on the red line under the map.

    Ticks off when you tap Explain on the broken line.

  2. 2Find where it stops
  3. 3Name the cause
  4. 4Fix it and test again
Sources on Microsoft Learn (3)
0/2 changes
Network map
?
  • Resource group, the outer dashed frame
  • Virtual network, with its address space top right
  • Subnet, with range and usable IPs (5 reserved)
  • Network security group. A small shield on a VM's NIC means the NIC has one too
  • Route table on the subnet
  • NICVM Appliance Private endpoint
  • Peering Connected Initiated or access off
  • Goal working Goal broken, X marks where it stops
  • Private DNS zone, dotted lines go to linked VNets
  • Orange pulse: what your last command changed. Drag to pan, Ctrl and scroll to zoom.
Resource grouprg-labvnet-hub: tap to inspectVirtual networkvnet-hub10.0.0.0/16AzureBastionSubnet: tap to inspectAzureBastionSubnet10.0.7.0/26 · 59 usablebas-hub 10.0.7.4: tap to inspectBbas-hub10.0.7.4subnet-tools: tap to inspectsubnet-tools10.0.2.0/24 · 251 usablevm-tools 10.0.2.4: tap to inspectNICvm-tools10.0.2.4vnet-spoke1: tap to inspectVirtual networkvnet-spoke110.1.0.0/16subnet-app: tap to inspectsubnet-app10.1.1.0/24 · 251 usablensg-appvm-app 10.1.1.4: tap to inspectNICvm-app10.1.1.4Initiated from spoke1: tap to inspectInitiated
  • bas-hub → vm-app:22should work: not working
  • vm-tools → vm-app:22should stay blocked: blocked
Goals 0/2
Cloud Shell · bashVMsrg-lab · eastus2
cloudshell:~$