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

Title says it all basicly. I use VMware.

Thanks!
6 answers Last reply
More about block accessing internet host connected vpn
  1. Assign VM' network adapter to the tunnel adapter, not to the physical/NAT one.
  2. 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?
  3. 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.
  4. 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:

  5. 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.
  6. 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!
Ask a new question

Read More

vpn VMware Internet