Hello,
Am wondering how to ensure that my VM connects over VPN to the internet.
Can I set up VM as bridged mode, set up static IP on my wireless router, then run VPN inside the VM. Will that do the trick?
Or
Do I need to run VPN on host and then connect VM to VPN adapter? Do not know how to do this.
Would prefer first option.
Both host and guest using windows OS - Host - Win-10Pro, Guests-Win-7Pro and Win-10Pro
Any ideas?
Thank you
Hi,
I always use the first version, VPN in the VM.
Both NAT as well as Bridged networking can work, but you might have most chances it works with bridged networking.
A static IP should not be required.
--
Wil
Thank you for your reply.
Yes, did not want to restrict my host to use VPN on guest.
On my router only a specific range of IPs can access the internet. So, to connect my VM in bridged mode, I'd need a static IP for VM.
When using bridged mode and VPN, would my Internet Provider IP be public or my VPN IP?
Will I see the VM IP/Mac as a connected device on my router, if I use bridged mode?
Don't know if I explained/asked accurately. Please let me know if I'm not making any sense here.
Thanks,
Hi,
I'm not following here.
Do you want to
1. Use a VPN client and connect to an external VPN host (which I understood you were after)
or
2. Setup a VPN host within a VM
If 1) then the IP doesn't matter much as the VPN sets up its own tunnel in a predefined network range. As long as that range is different from your local network it will work. The IP address from your actual network connection is only used to run the tunnel over. Your router will see the bridged IP/Mac of your guest OS and not the tunneled one. From within the guest the VPN IP will be used to communicate with the VPN host.
If 2) then you will have to setup some port forwarding for your VPN host and this all depends on the VPN software used. As a router usually performs NAT, some of the VPN solutions don't even work for that.
--
Wil
Not a problem, I think I didn't explain properly.
My scenario:
Router with selected IP range allowed to connect to internet.
Need to run VPN on Guest that would mask the ISP IP as seen from the host.
Does the bridged mode mask my ISP IP?
thanks,
Both NAT and bridged would mask your IP if your VPN software is working as it should.
Depending on the level of "paranoia" here there are a few more things to take into consideration.
Beware for:
- leaking of DNS lookups, eg. if you visit a host via the VPN, but lookup the address of that host via local DNS then your ISP (or the DNS provider) could still correlate via meta data that you visited that particular host.
- Many VPN Providers Leak Customer's IP Address via WebRTC Bug
edit: I already wondered why I did not remember this thread. ... turns out I answered a 1 year old one that got bumped up by a spam post (that I removed earlier today) :smileysilly: Oh well perhaps it still helps somebody.
--
Wil
know this is an old thread
Set up VPN with Bridged option.... get DNS leaks
Set up networking as NAT... VPN seems to be working..
thought bridged was the recommended option
Hey. Just clarifying, did you got it working the best using a VPN client inside the VM configured with NAT networking?
Sorry, never saw the question
Yes, I was able to get it to work
