Virtual machines and VPN: On the host? On the guest? On both?

Discussion in 'privacy technology' started by Rambeau, Aug 29, 2018.

  1. Rambeau

    Rambeau Registered Member

    Joined:
    Aug 29, 2018
    Posts:
    2
    Location:
    Spain
    So how do you go about using a VPN from inside a virtual machine? Do you install the VPN software on the host and set the virtual adapter to NAT (easiest to setup, I guess)? Do you install it directly on the guest and set the virtual adapter as bridged (no clutter at all in the host, provided it's even workable)? Do you install it on both the host and the guest and maybe do a crazy multi-cascaded double-chain of VPNs? I never tried to add VMs into the equation, and I'm definitely no VM or networking expert, but I basically have two concerns: whether the guest can connect at all through the VPN and whether the setup could be botched in some way so that your actual IP would still be exposed even when the guest is connected through the VPN. Anyone has done this already and can give me a nudge in the right direction?
     
  2. reasonablePrivacy

    reasonablePrivacy Registered Member

    Joined:
    Oct 7, 2017
    Posts:
    1,268
    Location:
    Member state of European Union
    With Tor I usually set up tor client on host and used iptables (Gnu/Linux) to redirect all traffic from guest OS to host virtual interface on host.
    Ideally it is best to have two guest machines: one for VPN client, second for browser or other software. Host redirects traffic from second machine to first.
     
  3. mirimir

    mirimir Registered Member

    Joined:
    Oct 1, 2011
    Posts:
    9,252
  4. caspian

    caspian Registered Member

    Joined:
    Jun 17, 2007
    Posts:
    2,352
    Location:
    Oz
    I wouldn't want my ISP to know that I am connecting to tor. In fact, Tor is that last thing I would connect to.
     
  5. Rambeau

    Rambeau Registered Member

    Joined:
    Aug 29, 2018
    Posts:
    2
    Location:
    Spain
    Boy, talk about showing your work! Thanks for this, looks like I'll have interesting reading material for days. Might have saved me some blind googling. I'll have to evaluate what solution works best for me, but it's good to know all of the ones I had in mind are possible.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.