3

I have two users accounts on my computer, one needs to stay connected to a VPN while the other account, both being logged in, is not supposed to use the VPN. OS X 10.9 seems to only give me global VPN access or none. Does anyone know a solution?

  • You are talking about a single machine with a single network connection with a single MAC address, etc.. Using multiple accounts on the same machine does not change that but using Virtual Machines does... With Parallels you could setup a MacOS VM that connected via VPN, that would be better than Virtual Box... Or maybe there is a way to use the WiFi or a Thunderbolt to Ethernet dongle to use a separate network connection and VPN over just that... interesting. – Dave Nelson May 8 '14 at 14:11
  • Is the second user an adminstrator account or a standart unpreviledged one? – Max Ried May 9 '14 at 6:38
  • User 1 is administrator. User 2 can be either or. Currently it is an administrator account – elmalto May 9 '14 at 11:30
  • You might be able to do something about this by setting up different network 'locations' for each one and then setting up a launchd User Agent to run networksetup -switchtolocation $NAME_OF_LOCATION at log-in (though I'm not sure yet what you might set up to run when it's time to log off to switch your location back, and I also haven't yet figured out how to stop VPN service settings from being global, either, so there's that…) – RandomDSdevel Nov 14 '17 at 22:58
1

I have a very dirty work around. So I hope someone will come up with a better solution.

What I did is setup a Virtual Box virtual machine with some minimalistic Linux that can do VPN. Once the virtual machine is connected the user can use the VPN inside the machine (but other users not). Since I needed to use some apps in the host system I finally set up a proxy in the virtual machine that would forward my VPN users data.

As I said dirty...

  • 1
    Dirty indeed, I was considering a Raspberry PI solution, but am actually hoping for a 'proper' solution – elmalto May 8 '14 at 13:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .