I was wondering what the easiest setup would be to route the traffic from a Windows/Linux virtual machine (VMWare) through the Mullvad VPN?
I saw that Mullvad created a Network adapter, can I just use that when setting up the Virtual machine so If my Host PC is connected to mullvad all the traffic goes through the tunnel adapter and tthrough the VPN?
Or would it be a solution to install the Mullvad App inside the VM? But in theory the traffic will always go through the hosts Network right? so that probably wouldn’t help me?
I run Mullvad on a VM. (i.e. in the VM)
I place the VM on a VLAN which only has access to a Mullvad server IP address. I also added a DNS server so that it can resolve the IP address (but this can be optional).
So, the VM has no internet access unless it is connected to the Mullvad server. This solution works very well.
You can use the host’s Network on the hypervisor, or you can add a dedicated LAN card for the VM connected to a VLAN, like I did. This is however optional.
Note, I am not using VMWare, but I have done this on Proxmox, Unraid and on a QNAP box…they all work the same. I’m sure VMWare is also this way.
I place the VM on a VLAN which only has access to a Mullvad server IP address
How exactly do you achieve this? Is there a guide for dummys anywhere by any chance?
I created a seperate Network interface in VMWare, set it to host only. Now I can see it in my Host windows Network center. I would assume that adapter I need to change the settings so it connects to a Mullvad IP? Like connecting to a server and see what IP it has? and what subnetmask to choose?
The use of a VLAN is optional. For me this is just an additional security/safety measure to prevent the VM from accidently going online without the VPN. It also might protect my LAN from malware/virus which come down through the VPN.
VLANS need to be configured in your router, assuming you have a router which is capable of VLANS…basic consumer routers do not support VLANs.
To learn about VLANs you will need to learn about your router, and about VLANs - YouTube has so many guides. I assumed that since you are using VMWare, that you might know this already. Most people who know about VMs, also know some of this networking stuff.
I don’t know much about VMWare so I cannot help you on your specific questions. I believe you only need to ensure that your VM has internet access, once it does just install the Mullvad app and use it like you would on any PC.