Set up a hacking lab based on NAT Networks (VirtualBox Networking)

Dan Covic
2 min readFeb 23, 2024

--

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
Nat Networks Properties
  • Click Create
  • Provide a Name
  • Provide IPv4 Prefix
  • Enable DHCP
  • Click Apply
Create a new Nat Network
  • 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
Add a machine to the Nat Network

Good practice: change Shared Clipboard & Drag and drop to: Bidirectional

Bidirectional settings

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:
Set up a password for the root account

You are all set and done!

Happy learning!

Reference:

https://www.youtube.com/watch?v=OlHNH_USekw&list=PLTFCpqU24Ce79LMXWsph2yJMIjMwbE1Iz&ab_channel=InstructorAlton

--

--