Skip to content

Commit d881d99

Browse files
committed
fixes
1 parent c2773b6 commit d881d99

File tree

1 file changed

+22
-18
lines changed

1 file changed

+22
-18
lines changed

articles/nat-gateway/tutorial-hub-spoke-route-nat.md

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -276,10 +276,11 @@ The simulated NVA acts as a virtual appliance to route all traffic between the s
276276
| VM architecture | Leave the default of **x64**. |
277277
| Size | Select a size. |
278278
| **Administrator account** | |
279-
| Authentication type | Select **Password**. |
279+
| Authentication type | Select **SSH public key**. |
280280
| Username | Enter a username. |
281-
| Password | Enter a password. |
282-
| Confirm password | Reenter password. |
281+
| SSH public key source | Select **Generate new key pair**. |
282+
| SSH Key Type | Leave the default of **RSA SSH Format**. |
283+
| Key pair name | Enter **ssh-key**. |
283284
| **Inbound port rules** | |
284285
| Public inbound ports | Select **None**. |
285286

@@ -300,6 +301,10 @@ The simulated NVA acts as a virtual appliance to route all traffic between the s
300301

301302
1. Select **Create**.
302303

304+
1. The **Generate new key pair** dialog box appears. Select **Download private key and create resource**.
305+
306+
The private key will download to your local machine. The private key is needed in later steps for connecting to the virtual machine with Azure Bastion. The name of the private key file is the name you entered in the **Key pair name** field. In this example, the private key file is named **ssh-key**.
307+
303308
# [**Powershell**](#tab/powershell)
304309

305310
# [**CLI**](#tab/cli)
@@ -390,6 +395,8 @@ The IP configuration of the primary network interface of the virtual machine is
390395
| Private IP address | Enter **10.0.0.10**. |
391396

392397
1. Select **Create**.
398+
399+
1. Start the virtual machine.
393400

394401
# [**Powershell**](#tab/powershell)
395402

@@ -451,28 +458,27 @@ The routing for the simulated NVA uses IP tables and internal NAT in the Ubuntu
451458

452459
1. Enter the **Username** that you used when creating the virtual machine. In this example, the user is named **azureuser**, replace with the username you created.
453460

454-
1. In **Local File**, select the folder icon and browse to the private key file that was generated when you created the VM. The private key file is typically named `id_rsa` or `id_rsa.pem`.
461+
1. In **Local File**, select the folder icon and browse to the private key file that was generated when you created the VM. The private key file is typically named `id_rsa` or `id_rsa.pem` or `ssh-key.pem`.
455462

456463
1. Select **Connect**.
457464

458465
1. Enter the following information at the prompt of the virtual machine to enable IP forwarding:
459466

460467
```bash
461-
sudo vim /etc/sysctl.conf
468+
sudo nano /etc/sysctl.conf
462469
```
463470

464-
1. In the Vim editor, remove the **`#`** from the line **`net.ipv4.ip_forward=1`**:
465-
466-
Press the **Insert** key.
471+
1. In the Nano editor, remove the **`#`** from the line **`net.ipv4.ip_forward=1`**:
467472

473+
ex
468474
```bash
469475
# Uncomment the next line to enable packet forwarding for IPv4
470476
net.ipv4.ip_forward=1
471477
```
472478

473-
Press the **Esc** key.
479+
Press **Ctrl + O** to save the file.
474480

475-
Enter **`:wq`** and press **Enter**.
481+
Press **Ctrl + X** to exit the editor.
476482

477483
1. Enter the following information to enable internal NAT in the virtual machine:
478484

@@ -490,23 +496,21 @@ The routing for the simulated NVA uses IP tables and internal NAT in the Ubuntu
490496
exit
491497
```
492498

493-
1. Use Vim to edit the configuration with the following information:
499+
1. Use Nano to edit the configuration with the following information:
494500

495501
```bash
496-
sudo vim /etc/rc.local
502+
sudo nano /etc/rc.local
497503
```
498504

499-
Press the **Insert** key.
500-
501505
Add the following line to the configuration file:
502506

503507
```bash
504508
/sbin/iptables-restore < /etc/iptables/rules.v4
505509
```
506510

507-
Press the **Esc** key.
511+
Press **Ctrl + O** to save the file.
508512

509-
Enter **`:wq`** and press **Enter**.
513+
Press **Ctrl + X** to exit the editor.
510514

511515
1. Reboot the virtual machine:
512516

@@ -696,7 +700,7 @@ A virtual network peering is used to connect the hub to spoke one and spoke one
696700
697701
1. Select **vnet-hub**.
698702
699-
1. Select **Peerings** in **Settings**.
703+
1. Expand **Settings**, then select **Peerings**.
700704
701705
1. Select **+ Add**.
702706
@@ -784,7 +788,7 @@ Create a route table to force all inter-spoke and internet egress traffic throug
784788
785789
1. Select **route-table-nat-spoke-1**.
786790
787-
1. In **Settings** select **Routes**.
791+
1. Expand **Settings**, then select **Routes**.
788792
789793
1. Select **+ Add** in **Routes**.
790794

0 commit comments

Comments
 (0)