Skip to content

Commit d26e69c

Browse files
committed
updating article based on new feature
1 parent 474830a commit d26e69c

File tree

2 files changed

+11
-66
lines changed

2 files changed

+11
-66
lines changed
Lines changed: 11 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Firewall settings for Lab Services
2+
title: Firewall settings for Azure Lab Services
33
description: Learn how to determine the public IP address and port number range of virtual machines in a lab so information maybe added to firewall rules.
44
author: emaher
55

@@ -10,78 +10,23 @@ ms.service: lab-services
1010
---
1111
# Firewall settings for Azure Lab Services
1212

13-
Each school will set up their own network in a way that best fits their needs. Sometimes that includes setting firewall rules that block Remote Desktop (rdp) or Secure Shell (ssh) connections to machines outside their own network. Because Azure Lab Services runs in the public cloud, some extra configuration maybe needed to allow students to access their VM when connecting from the campus network.
13+
Each organization or school will set up their own network in a way that best fits their needs. Sometimes that includes setting firewall rules that block Remote Desktop Protocol (rdp) or Secure Shell (ssh) connections to machines outside their own network. Because Azure Lab Services runs in the public cloud, some extra configuration maybe needed to allow students to access their VM when connecting from the campus network.
1414

15-
Each lab uses single public IP address and multiple ports. All VMs, both the template VM and student VMs, will use this public IP address. The public IP address will not change for the life of lab. However, each VM will have a different port number. The port numbers range from 49152 to 65535. The combination of public IP address and port number is used to connect teacher and students to the correct VM. This article will cover how to find the specific public ip address used by a lab. That information can be used to update inbound and outbound firewall rules so students can access their VMs.
15+
Each lab uses single public IP address and multiple ports. All VMs, both the template VM and student VMs, will use this public IP address. The public IP address will not change for the life of lab. However, each VM will have a different port number. The port numbers range from 49152 to 65535. The combination of public IP address and port number is used to connect instructor and students to the correct VM. This article will cover how to find the specific public IP address used by a lab. That information can be used to update inbound and outbound firewall rules so students can access their VMs.
1616

1717
>[!IMPORTANT]
18-
>Each lab will have a different public IP address. These steps will be required for every lab you want to access from within your school's network.
18+
>Each lab will have a different public IP address.
1919
20-
## Get a lab's hostname
20+
## Find public IP for a lab
2121

22-
To get the public IP address of a lab, we'll first need to get the lab’s hostname. For a Linux VM, the ssh connection information can be used. For a Windows VM, rdp file information can be used. A lab’s template VM and all user Lab VMs will share a public IP address.
22+
The public IP addresses for each lab are listed in the **All labs** blade of the Lab Services lab account. For directions how to find the **All labs** blade, see [how to manage labs in a lab account](how-to-manage-lab-accounts.md#view-and-manage-labs-in-the-lab-account).
2323

24-
### Get a lab's hostname for Linux VM
24+
> [!div class="mx-imgBorder"]
25+
> ![All labs blade](../media/how-to-configure-firewall-settings/all-labs-properties.png)
2526
26-
We will cover how to get the hostname for the template VM. However, SSH details from either template or student VM can be used.
27-
28-
- Go to the [template tile](use-dashboard.md#template-tile).
29-
- Start the VM if it is stopped.
30-
- Click the **Customize template** button.
31-
- Copy the SSH information.
32-
33-
SSH connection details will look something like the following.
34-
35-
```bash
36-
ssh -p 12345 username@ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
37-
```
38-
39-
VM host names are everything after the '@' sign. The host name will follow the pattern `{vm-name}-ml-lab-{guid}.{location}.cloudapp.azure.com:{port-number}`. In the above example, `ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com` is the host name.
40-
41-
### Get a lab's hostname for Windows VM
42-
43-
We will cover how to get the hostname for the template VM. However, Remote Desktop connection details from either can be used.
44-
45-
- Go to the [template tile](use-dashboard.md#template-tile).
46-
- Start the VM if it is stopped.
47-
- Click the **Customize template** button.
48-
- Open your Downloads folder.
49-
- Right-click the {vm-name}.rdp file. Choose **Open With** -> **Notepad**.
50-
- Copy the full address value.
51-
52-
The rdp file will have contents that look something like the following.
53-
54-
```text
55-
full address:s:ml-lab-00000000-0000-0000-0000-000000000000.eastus2.azure.com:12345
56-
prompt for credentials:i:1
57-
username:s:~\UserName
58-
```
59-
60-
The host name will follow the pattern `{vm-name}-ml-lab-{guid}.{location}.cloudapp.azure.com:{port-number}`. In the above example, the host name is `ml-lab-00000000-0000-0000-0000-000000000000.eastus2.azure.com`.
61-
62-
## Get a lab's public ip address
63-
64-
Next, we need to use the lab's hostname to get the lab's public ip address. The host name is everything after the @. There are many tools that can accomplish this task. We will cover how to us nslookup. The nslookup tool comes pre-installed installed on Windows, macOS, and Linux.
65-
66-
Type the following command into your command-line window. Make sure to replace example hostname with your lab’s hostname.
67-
68-
```bash
69-
nslookup ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
70-
```
71-
72-
The last line in the output in your terminal window will contain the lab’s public IP address, and should look something like the following.
73-
74-
```bash
75-
Server: ---
76-
Address: 1111:1111::1111:1111
77-
78-
Non-authoritative answer:
79-
Name: ml-lab-00000000-0000-0000-0000-000000000000.eastus2.cloudapp.azure.com
80-
Address: 111.111.111.111
81-
```
82-
83-
Note the IPV4 address that matches the hostname for the VM. In our example, the public IP address is 111.111.111.111.
27+
>[!NOTE]
28+
>You won’t see the public IP address if the template machine for your lab isn’t published yet.
8429
8530
## Conclusion
8631

87-
Now we know the public IP address for the lab. Inbound and outbound rules can be created for the school's firewall for the public ip address and the port range 49152-65535. Now, students can access their VMs without the school network firewall blocking access.
32+
Now we know the public IP address for the lab. Inbound and outbound rules can be created for the organization's firewall for the public ip address and the port range 49152-65535. Once the rules are updated, students can access their VMs without the network firewall blocking access.
34.8 KB
Loading

0 commit comments

Comments
 (0)