HOW TO CREATE A VIRTUALBOX NAT NETWORK
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.
Go to VirtualBox’s preferences as shown in the figure below
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
Double-click the “NatNetwork” to view its settings as shown in the following figure
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.
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.