Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using a VPN that runs only on Windows. It's possible to use a virtual machine with Windows and connect the real pc through the virtual machine connection?

I've read about bridged adapter and proxy but I got a bit lost.. any help?

EDIT:

I'm on a Mac and I'm using Parallels.

share|improve this question
    
Some information about your virtualization software and your exact setup would be helpful, but I can tell you that you can't do that with VMware Fusion, and probably with any VMware product, because a virtual network interface is created, and that interface is the one bound to the VPN connection, not the physical one. –  jaume Feb 1 '13 at 19:43
    
Yep, you're right. Edited. –  Enrichman Feb 3 '13 at 19:44
    
Would this apply to your situation: pythian.com/blog/… –  Julien Lamarche Jul 30 '13 at 19:43
    
@jaume: It's possible with VMWare, but you need to create the static routes and the NAT yourself. –  Philip Jul 30 '13 at 20:08

1 Answer 1

I've never used Parallels, so here is only a very high level description how you could do it, in case the bridge doesn't work:

  1. Make sure the Windows system can reach the VPN portal (in your case this probably means: Windows has Internet access)
  2. Make sure the Windows system has a private IP address on a virtual network adapter, e.g. 192.168.12.34 on vmnet0 that you can ping from OS X. It's okay if it's the same virtual network adapter that is used by Windows to access the Internet.
  3. Inside Windows, create a Gateway/NAT. Here's how: http://technet.microsoft.com/en-us/library/dd469812.aspx (ignore the DHCP part, that's overkill)

Now you have all ingredients to reach the VPN from OS X. So imagine this scenario: the VPN allows you to access some private IPs, say 172.16.123.0/24. You need to tell how OS X can reach 172.16.123.0/24 via 192.168.12.34:

route -n add 172.16.123.0/24 192.168.12.34

Read here how to make that permanent: http://blog.irrashai.com/blog/2009/03/how-to-add-static-route-in-mac-os-x/

To troubleshoot and work through this ifconfig (not to change anything, just read the output), man route, route and ping are your friends. ;)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.