cancel
Showing results for 
Search instead for 
Did you mean: 

How to share a VPN connection between a VM and the host?

MatthiasG
New Contributor

How to share a VPN connection between a VM and the host?

Hello dear community.
My PC is connected to our company network via PulseSecure (version 9.1.7).
I would like to connect a virtual machine (Hyper-V) running on this PC to our company network as well.
Unfortunately, I haven't found anything about this in the forum or elsewhere on the Internet.
Can anyone give me some hints?

Many greetings
Matthias

9 REPLIES 9
zanyterp
Moderator

Re: How to share a VPN connection between a VM and the host?

you will need to login from that system to connect
my guess is that the admin disabled the ability to route from a vm through the vpn
r@yElr3y
Moderator

Re: How to share a VPN connection between a VM and the host?

@MatthiasG If Hyper-V can create a NAT interface based of Pulse client virtual adapter, then it should be possible to make the connection from the Hyper-V guests through that NAT connection or you can bind the virtual adapter to a dummy interface like MSFT loopback interface and then share the internet through inbuilt Internet Connection Sharing service.

PCS Expert
Pulse Connect Secure Certified Expert
MatthiasG
New Contributor

Re: How to share a VPN connection between a VM and the host?

Hello, and many thanks for your reply.
Unfortunately a NAT Inteface does not help me, because in addition to the VM host I also want to connect the VM to the domain of my company in such a way that the VM also gets a network address from the IP range of the domain.
Is there also a solution for this?

r@yElr3y
Moderator

Re: How to share a VPN connection between a VM and the host?

@MatthiasG Yeah. bridging with virtual interface will not help to get another IP address for the VM, as there's no DHCP thing to get you another IP from VPN. Hence, VM doesn't get IP address from the internal network like your host does.

 

As far I see, NAT'ing is the only way of making your VM to communicate with domain network over VPN tunnel through your host machine, otherwise you have to connect to VPN from the VM itself which I think you don't want to.

PCS Expert
Pulse Connect Secure Certified Expert
shimmer
Occasional Contributor

Re: How to share a VPN connection between a VM and the host?

Hi,

 

I've setup my VM (ubuntu) in hyperv with NAT networking following instructions here: 

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

 

But when Pulse Secure connects, I can no longer connect to the NAT router (my host laptop).  VPN is working fine on the Windows host laptop, the new NIC appeas on it: "Pulse Secure - Juniper Networks Virtual Adapter", and connectivity to remote hosts works fine on it.  The VM's NAT NIC remains up, has an IP assigned, and can ping itself, but can no longer ping the host.

 

A similar setup works fine in virtualbox by following guidance here: https://www.virtualbox.org/manual/ch06.html#network_nat_service

 

Any ideas?

shimmer
Occasional Contributor

Re: How to share a VPN connection between a VM and the host?

Hi,

 

I've setup my VM (ubuntu) in hyperv with NAT networking following instructions here: 

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

 

But when Pulse Secure connects, I can no longer connect to the NAT router (my host laptop).  VPN is working fine on the Windows host laptop, the new NIC appeas on it: Pulse Secure - Juniper Networks Virtual Adapter, and connectivity to remote hosts works fine on it.  The VM's NAT nic remains up, has an IP assigned, and can ping itself, but can no longer ping the host.

 

A similar setup works fine in virtualbox by following guidance here: https://www.virtualbox.org/manual/ch06.html#network_nat_service

 

Any ideas?

shimmer
Occasional Contributor

Re: How to share a VPN connection between a VM and the host?

Hi,

 

I've setup my VM (ubuntu) in hyperv with NAT networking following instructions here: 

https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network

 

But when Pulse Secure connects, I can no longer connect to the NAT router (my host laptop).  VPN is working fine on the Windows host laptop, the new NIC appeas on it: Pulse Secure - Juniper Networks Virtual Adapter, and connectivity to remote hosts works fine on it.  The VM's NAT nic remains up, has an IP assigned, and can ping itself, but can no longer ping the host.

 

A similar setup works fine in virtualbox by following guidance here: https://www.virtualbox.org/manual/ch06.html#network_nat_service

 

Any ideas?

zanyterp
Moderator

Re: How to share a VPN connection between a VM and the host?

i am not sure
i would expect that it is a configuration choice by the admin
r@yElr3y
Moderator

Re: How to share a VPN connection between a VM and the host?

@shimmer VPN tunnel is enforcing a mode called "Tunnel route precedence" meaning the local subnet routes on the host machine would get pointed over to the tunnel network so no local network access is possible until we disconnect the VPN i.,e, all the traffic destined to the host from the local network are being replied over the virtual interface.

 

It's a server side configuration which is used to prevent network sharing/file sharing with local devices.

PCS Expert
Pulse Connect Secure Certified Expert