HOW TO CREATE A VIRTUALBOX NAT NETWORK

0. Disclaimer

​The instructor(s) are not responsible for any loss, incidental or consequential damage, or loss arising out of installation, use (unauthorized or otherwise), errors, mistakes, accident, theft or fraud, destruction, or any part of the provision of services.

 

If you have questions, consult a lawyer.

1.

Go to VirtualBox’s preferences as shown in the figure below

01-NAT-NETWORK-MAC.png

2.

Navigate to the "Network" option, make sure you are in the "NAT Networks" section, and click on the icon with a “+” sign as shown in the following figure.​
 

This will create a network names “NatNetwork” as you can see in the following figure

02-NAT-NETWORK-MAC.png

3.

Double-click the “NatNetwork” to view its settings as shown in the following figure

4.

Change the Network Name from “NatNetwork” to “MITM” and change the Network CIDR from “10.0.2.0/24” to “10.10.10.0/24” as shown in the following figure then click “Ok















 

 


The "Network" window will display the renamed NAT Network as shown in the following figure

















Click "Ok" and you are ready to connect VMs to the new "MITM" NAT Network.

5.

To connect a VM to a NAT Network, go to the settings of that VM and click on "Network" then change  "Adapter 1" to attach to a "NAT Network" then choose the name of the NAT Network (which is MITM in the figure below)

 

 

 

 

 

 

 

 

 

 



 

Click “Ok” and go to VM to check the IP.

On Windows: open a terminal, type “ipconfig”, and ensure you get a "10.10.10.*" IP address. 

On Linux: open a terminal, type “ifconfig”, and ensure you get a "10.10.10.*" IP address.

If the IP address is not changed to a "10.10.10.*" address, restart the VM.