Sign in with
Sign up | Sign in
Your question

How to block VM accessing the internet when the host is not connected to VPN

Last response: in Networking
Share
July 20, 2014 5:34:55 PM

Title says it all basicly. I use VMware.

Thanks!
July 20, 2014 8:32:33 PM

Assign VM' network adapter to the tunnel adapter, not to the physical/NAT one.
m
0
l
July 21, 2014 9:26:34 AM

Alabalcho said:
Assign VM' network adapter to the tunnel adapter, not to the physical/NAT one.


Could you please explain this in layman's terms?
m
0
l
Related resources
July 21, 2014 12:56:18 PM

When you configure VM' network adapter, you assign it either to physical network card on the host (Bridge mode), to a NAT, or nowhere.

When your host is connected over VPN, there is another network adapter (tunneling), which caries on the traffic over to the VPN server. If you assign your VMs to that adapter, they will have connection only if this adapter is connected.
m
0
l
July 21, 2014 3:10:53 PM

Alabalcho said:
When you configure VM' network adapter, you assign it either to physical network card on the host (Bridge mode), to a NAT, or nowhere.

When your host is connected over VPN, there is another network adapter (tunneling), which caries on the traffic over to the VPN server. If you assign your VMs to that adapter, they will have connection only if this adapter is connected.


I am starting to get what you say, but I dont find the option in the VM adapter settings for the VPN adapter.
This is what I see:

m
0
l
July 21, 2014 3:33:18 PM

My skills in reading Hungarian (or Finish, or Tagalog, can't decide) are close to zero, but I think you have to choose "Bridged" network connection. If you are connected to the VPN at that time, probably this network will be shown as well.

I am not using VMWare, and I am afraid I cannot be of much help here. My idea was more like "generic". It might turn you have to resort to some scripting / VMWare SDK to change network configurarion during VPN startup / shutdown.
m
0
l
July 21, 2014 3:45:04 PM

Alabalcho said:
My skills in reading Hungarian (or Finish, or Tagalog, can't decide) are close to zero, but I think you have to choose "Bridged" network connection. If you are connected to the VPN at that time, probably this network will be shown as well.

I am not using VMWare, and I am afraid I cannot be of much help here. My idea was more like "generic". It might turn you have to resort to some scripting / VMWare SDK to change network configurarion during VPN startup / shutdown.


I think I have found what you are talking about. Only problem is that its not working. I will fool around with it for a while. Anyways thanks for the help!
m
0
l
!