I want to build my own PenTest lab and I have only one machine available (with enough memory and disk space resources). My machine is a desktop connected to my Internet router. In my own home network there are only 2 other PCs which are connected to the same Internet router.
I installed VMWare Workstation Player and I have also the following VMWare virtual machines:
1x Kali Linux (= attacker machine)
and
1x Windows XP, 1x Windows 7, 1x Metasploitable (all as victim machines).
I am looking for the best setting for the Network Adapter for each VM. Because the VM machines are located on my own PC desktop, I really don't want to create any damage to my PC and I really don't want that the vulnerable machines are an attack point for my own network.
The PenTest course trainer suggested to have the entire virtual environment contained within the host with only one way (gateway) to the internet, which will be the virtual Kali Linux host. That means that the Kali Linux machine will have 2 NICs:
- 1x set as NAT to allow the guest system to access the broader internet through my host’s connection.
- the other NIC will be set as Host-Only to access the guests from the Kali machine but nothing outside the private network can get into the machines.
All the vulnerable machines should be setup as Host-Only. He explained that in this way it will be created an entirely separate network for the vulnerable machines to sit on where only my host can see them. Only the Kali Linux machine will have a connection to the Internet, all the other vulnerable machines will have no access to the Internet.
I found out that the setup of a PenTest lab could also include a Firewall as per information about "Create a virtual network with a firewall using VMware player":
https://www.youtube.com/playlist?list=PLndqfxA_9SWFGC3uQ6JLOZH-w2FJlvtJP
Unfortunatelly, I could not get the Endian firewall working, i.e. if you choose for the RED interface the routed option (which includes the Ethernet DHCP option). I tried the setup several times with the same result: after I have done all the settings as per video, after you click on "OK, apply configuration" button and the firewall rebooted you are not able to connect to the firewall, i.e. the web interface does not appear any more and you get an error in the browser. I found a lot of similar cases in Internet forums but no solution.
To move further I found out that you could also use another firewall, e.g. from pfSense as per
Setting Up a Pentest Lab with pfSense in VirtualBox
I have not tried until yet with pfSense FW and yet my question is:
-
Is the setting suggested by the trainer from PenTest course the best in this case or it is more secure to have a firewall involved in the PenTest lab architecture?
Thanks in advance!