17
13
The need
This question is relevant for all of those who want to bypass their corporate's annoying VPN, and access their work/corporate network from their private computer, especially if the corporate VPN client software can't run on their private computer.
Homework
This question is very similar to this one, which isn't answered :(
The challenge
We can't run the corporate VPN client from the private computer, so we converted the work laptop to a VMWare Virtual Machine. The VPN client works fine inside the guest VM, now we want to share it with the host (the private computer).
The specs:
- The private computer (host OS) is Mac OS X Lion 64bit
- The corporate laptop (guest VM) is WinXP 32bit, running in bridged network mode
- The VPN client on the guest VM is Checkpoint SecuRemote NGX R60 HFA03
- While the VPN is running in the guest VM, the host can still ping the guest and vice versa
How would I do this if my guest were a Linux and my host were Windows instead? – phant0m – 2017-05-24T22:20:58.690
@phant0m It's similar, but not identical. You should really ask a different question to allow room for a proper answer. – MariusMatutiae – 2017-05-25T08:51:30.653
@MariusMatutiae is it possible to do this without changing the default gateway and just adding a route instead? – 13aal – 2019-01-11T22:46:24.327
@13aal Sorry for taking so long to reply, I completely missed your message. Yes, you can do that. Just leave, on the host, the gateway exactly as it is, and add a new route to your routing table via the guest, as follows: suppose you only want to reach the site 1.2.3.4 thru the vpn, do ip route add 1.2.3.4/32 via 192.168.56.2 dev vboxnet0 and you are done, You can do this for networks too, for instance 1.2.3.4/24. Cheers, and apologies for the late answer once again. – MariusMatutiae – 2019-12-27T19:04:26.670