Page 1 of 1

How don't use the default VPN interface / only on my VM

Posted: Thu Nov 24, 2011 1:09 pm
by alavoler
Hi, I despair

I have a physical machine with a virtual machine, I want to express something simple (but difficult to achieve):
- On my physical machine, when I go on whatismyip.com with any browser/Application, get the IP from my provider
- On my virtual machine, when I go on whatismyip.com with any browser/Application, have the public IP of my VPN (vpntunnel.se) (I want to ensure that this environment, even if the VPN crash all applications don't directly use the IP provider)

Here is my environment:
- Windows 7 Ultimate 64 bit X 2
- TAP-Win32 Adapter V9 on my physical machine
- Home client of vpntunnel.se use OpenVpn (but i belive i can use official openvpn client)
- VMWare 8 (I bind VMnet4 interface with the interface adapter VPN)

I tried to change the order of interfaces and their metrics, use a bridge, creating a persistent router ... but my skills are limited by network

I therefore appeal to you, it is the best way to get there?

Thanks guys !

Re: How don't use the default VPN interface / only on my VM

Posted: Tue Nov 29, 2011 6:43 am
by Mimiko
Do you want the virtual machine always have the public IP of VPN server?

Re: How don't use the default VPN interface / only on my VM

Posted: Fri Dec 02, 2011 6:33 pm
by alavoler
Mimiko wrote:Do you want the virtual machine always have the public IP of VPN server?
Yes, i wish :
Provider IP Public for my physical PC
VPN IP Public for my VM

Re: How don't use the default VPN interface / only on my VM

Posted: Sat Dec 03, 2011 5:17 am
by Bebop
Heya Mimiko I think I know the answer to this.. tell me what you think.

I suggest that avolver should simply install OpenVPN inside the virtual machine OS. Then configure OpenVPN inside the virtual machine OS.

This will achieve the goal that VM will get VPN IP (when you visit whatismyip.com) and PC will get regular ISP ip

Just a note: be aware not to bind the adapter. Instead, set the VM to be DHCP client, so it gets a regular LAN ip from the router.

Re: How don't use the default VPN interface / only on my VM

Posted: Tue Dec 06, 2011 6:45 am
by Mimiko
The OpenVPN server must use 'push "redirect-gateway def1"' and also forward all internet requests to the client.