MacOS – way to connect to office VPN using parallels (windows) but surf on host Mac OS X

macosparallels-desktopvpn

My office VPN called Juniper does not gets installed on Mac OS X. I am using Parallels to run guest Windows on my macbook pro with OS X Yosemite. I don't know what I am asking, and if it is even logical or not, but here is my question:

Is there a way that I can share my guest operating system's VPN connection with host operating system? What I mean is, that I connect to my office VPN using my guest Parallels Windows OS and that can be shared with my host macbook Mac OS X?

By doing this what I want to achieve is, that I want to just open Windows using Parallels and then connect to my VPN and then minimize it and come back to OS X and then surf all my internet websites on Safari or Chrome (on Mac and not W indows).

Is this possible? Could anybody guide me on how to do this if its possible?

Best Answer

You may be able to share the connection from Windows to Mac, depending upon how it is implemented in Windows. Follow these steps, from this site:

  1. Add a Host-Only network adapter to the guest (Windows).
  2. Launch the Guest (Windows).
  3. Go to a command prompt and type:

    ipconfig /all
    

    Note the IP Address of the Host Only adapter. Likely something like 10.37.129.2.

  4. Assuming the VPN shows as a connection in Windows Network Connections, setup Internet Connection Sharing on this adapter. When setting up ICS, choose the Host Only adapter as the Private Network Adapter.

  5. Once that’s done, connect to the VPN.

  6. On the host, add a route to your VPN, specifying the IP address of the Host Only Adapter as the gateway. In this example, the subnet trying to be reached on the VPN is 192.168.40.0/24, and the IP address of the Host Only Adapter is 10.37.129.2, so in a Terminal window you would type the following:

    sudo route -n add 192.168.40.0/24 10.37.129.3