Jump to content

Quick background to help explain the situation, I'm a cybersecurity student and i'm used to using virtualbox to learn the ins and outs of pen testing, we using kali and vulnerable OSs like Metasploitable to simulate attacks, this is what I'm trying to set up on hyper-v.

when you're using VMware or Virtual Box you have the option to setup a host-only adapter https://imgur.com/a/TVeZbd3 (screenshot host-adapter in VB), this allows VMs to communicate with each other and access the internet while being isolated from your host computer, this is obviously something you want to do when dealing with vulnerable OS's, u dont what them to create an opening to your host computer or internal network while while simulating pen testing.

I've tired for hours to set and "host-only" equivalent on hyper-v to avail... Any ideas? is this even possible to achieve with hyper-v?  

 

Kind Regards, and thank you in advance for your time.

Link to comment
https://linustechtips.com/topic/1151157-hyper-v-host-only-equivalent/
Share on other sites

Link to post
Share on other sites

I will look into this myself a little bit. Sounds just like NAT. A private network the VMs sit behind so they can talk to each other and the Internet but the clients cannot talk to the host or clients on the host network.

Link to post
Share on other sites

Hyper-V on Win 10 comes with a default virtual switch, this is basically NAT and allows each VM to connect outbound to your gateway and the internet. It's not much use for labs where you want VM's to be to talk to each other or be isolated in some way.

 

You can create additional virtual switches in the Virtual Switch Manager. It sounds like you want a 'private' virtual switch. See here: MS Docs Hyper-V Switches

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×