Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to share VPN connection from Guest virtual machine to Host machine

My at my work I'm using VPN, but the problem is that the connection is not supported split tunneling and connection to other resources has not access.

I'm able to access only company resources;

 

I had a Guest Machine(Windows 10 x64) on VMWare Workstation in this machine I had installed VPN client; also I had added 2 network cards(NAT and Bridge);

So I need to create a route from Host machine that will send all traffic not via Default gateway but to Guest machine that has VPN connection;

 

Bellow are my setting:

Host machine:

C:\Users\User01>route print

===========================================================================

Interface List

 36...64 5d 86 e9 a9 03 ......Intel(R) Wireless-AC 9560

  9...e4 b9 7a 2d 31 77 ......Intel(R) Ethernet Connection (7) I219-LM

 40...00 ff e9 3d 3c 0e ......VMware SSL VPN-Plus Client Adapter

  4...e4 b9 7a b1 2b 43 ......231P4U USB Ethernet

 22...64 5d 86 e9 a9 04 ......Microsoft Wi-Fi Direct Virtual Adapter #6

 43...66 5d 86 e9 a9 03 ......Microsoft Wi-Fi Direct Virtual Adapter #7

 39...00 50 56 c0 00 01 ......VMware Virtual Ethernet Adapter for VMnet1

 37...00 50 56 c0 00 08 ......VMware Virtual Ethernet Adapter for VMnet8

  1...........................Software Loopback Interface 1

===========================================================================



IPv4 Route Table

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0                   0.0.0.0     192.168.20.1    192.168.20.64     35

        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331

        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331

  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331

     192.168.19.0    255.255.255.0         On-link      192.168.19.1    291

     192.168.19.1  255.255.255.255         On-link      192.168.19.1    291

   192.168.19.255  255.255.255.255         On-link      192.168.19.1    291

     192.168.20.0    255.255.255.0         On-link     192.168.20.64    291

    192.168.20.64  255.255.255.255         On-link     192.168.20.64    291

   192.168.20.255  255.255.255.255         On-link     192.168.20.64    291

     192.168.70.0    255.255.255.0         On-link      192.168.70.1    291

     192.168.70.1  255.255.255.255         On-link      192.168.70.1    291

   192.168.70.255  255.255.255.255         On-link      192.168.70.1    291

        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331

        224.0.0.0        240.0.0.0         On-link      192.168.19.1    291

        224.0.0.0        240.0.0.0         On-link      192.168.70.1    291

        224.0.0.0        240.0.0.0         On-link     192.168.20.64    291

  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331

  255.255.255.255  255.255.255.255         On-link      192.168.19.1    291

  255.255.255.255  255.255.255.255         On-link      192.168.70.1    291

  255.255.255.255  255.255.255.255         On-link     192.168.20.64    291

===========================================================================

Persistent Routes:

  None

Guest Machine:

C:\Users\MD036>route print

===========================================================================

Interface List

 16...00 0c 29 a5 31 89 ......Intel(R) 82574L Gigabit Network Connection

 11...00 0c 29 a5 31 93 ......Intel(R) 82574L Gigabit Network Connection #2

 14...00 ff ea a0 10 e2 ......VMware SSL VPN-Plus Client Adapter

  1...........................Software Loopback Interface 1

===========================================================================



IPv4 Route Table

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0     192.168.70.2   192.168.70.131     26

          0.0.0.0          0.0.0.0     192.168.20.1   192.168.20.122     26

          0.0.0.0          0.0.0.0      10.18.9.161      10.18.9.172     26

         10.1.9.0    255.255.255.0      10.18.9.161      10.18.9.172     26

       10.1.9.255  255.255.255.255      10.18.9.161      10.18.9.172     26

      10.18.9.160  255.255.255.224         On-link       10.18.9.172    281

      10.18.9.172  255.255.255.255         On-link       10.18.9.172    281

      10.18.9.191  255.255.255.255         On-link       10.18.9.172    281

    94.127.86.138  255.255.255.255     192.168.20.1   192.168.20.122     26

        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331

        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331

  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331

     192.168.20.0    255.255.255.0         On-link    192.168.20.122    281

   192.168.20.122  255.255.255.255         On-link    192.168.20.122    281

   192.168.20.255  255.255.255.255         On-link    192.168.20.122    281

     192.168.70.0    255.255.255.0         On-link    192.168.70.131    281

   192.168.70.131  255.255.255.255         On-link    192.168.70.131    281

   192.168.70.255  255.255.255.255         On-link    192.168.70.131    281

        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331

        224.0.0.0        240.0.0.0         On-link       10.18.9.172    281

        224.0.0.0        240.0.0.0         On-link    192.168.20.122    281

        224.0.0.0        240.0.0.0         On-link    192.168.70.131    281

  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331

  255.255.255.255  255.255.255.255         On-link       10.18.9.172    281

  255.255.255.255  255.255.255.255         On-link    192.168.20.122    281

  255.255.255.255  255.255.255.255         On-link    192.168.70.131    281

===========================================================================

Persistent Routes:

  None

 

From Guest Machine I see that I can create a route in Host Machine with gateway "192.168.70.2" but the traffic to resources " 10.1.9.0" I'm not able to access from Host machine.

What settings I should do on both machine to send all traffic from Host machine to access the VPN resources from Guest Machine;

 

I know that I need to add some routes on Host and on Guest machine; but I cannot find until now the right solution;

 

Use on Host machine VPN connection is not a solution; now this is working, but it's very hard.

The company resources are not so  much, just acces to some DB and file servers;

Comments