2

How can I configure Mac OS X such that it can only allow an internet connection (both downloads and uploads) through a given VPN connection?

If the VPN connection disconnects, the internet should stop working.

I need to do this due to security reasons. Sometimes I use ISPs that I have no reason to trust. Especially on wifi hotspots.

How do I do this? I'm sure there is nothing I can do through the Mac OS X GUI, but is there any hack I can do via the Terminal?

Enchilada
  • 345

2 Answers2

0

If you are making a VPN connection, isn't the default route for all traffic to use that connection?

Anyway, set a default route to the VPN. Traffic should stop when the link dies.

It's late and I might not be interpreting your question clearly :D

0

I doubt this is possible with the VPN stuff in OS X. Correct me if I'm wrong.

However, I was able to solve this by using OpenVPN and Tunnelblick.app. Tunnelblick has capabilities for running scripts when the VPN connection dies. So I just run a script that turns off the Ethernet/AirPort when the VPN dies. Seems to be working.

Enchilada
  • 345