Set up a hacking lab based on NAT Networks (VirtualBox Networking)
Before jumping into creating such a Virtual Network, please read my article on the Types of Networks in VirtualBox where I explain in more detail what the Nat Network is.
Now, let’s jump right in.
STEPS
- Navigate to your VirtualBox Manager > Global Tools > Network
- Click Create
- Provide a Name
- Provide IPv4 Prefix
- Enable DHCP
- Click Apply
- Add all the machines to the new Nat Network
- STEPS
- Navigate to Settings > Network (of each independent machine that you want to set up as a Virtual Network Nat Network)
- In the “Attached to” select box, select the name of the newly created Nat Network with the corresponding name of the Nat Network
Good practice: change Shared Clipboard & Drag and drop to: Bidirectional
Testing the Virtual Network
- Validate that the machines are on the same Virtual Network by checking their IP address & pinging machines to see if you get a reply or if they are alive!
- You can also validate this by browsing to the machines via their IP address
Other configs
- Create another Snapshot after you have added all the machines to the Virtual Network
- Set up a password for the root account:
You are all set and done!
Happy learning!
Reference: