How to selectively route network traffic through VPN on Mac OS X Leopard?
Problem
I don't want to send all my network traffic down to VPN when I'm connected to my company's network (via VPN) from home. For example, when I'm working from home, I would like to be able to backup all my files to the Time Capsule at home and still be able to access the company's internal network. I'm using Leopard's built-in VPN client. I've tried unchecking "Send all traffic over VPN connection." If I do that I will lose access to my company's internal websites be it via curl or the web browser (though internal IPs are still reachable). It'd be ideal if I can selectively choose a set of IPs or domains to be routed through VPN and keep the rest on my own network. Is this achievable with Leopard's built-in VPN client?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Fix for: How to selectively route network traffic through VPN on Mac OS X Leopard?
Create the file /etc/ppp/ip-up with following content: replacing with subnet, you want to route through VPN (for ex. 192.168.0.0/16) execute as root: This file will be executed each time you connect to VPN. The parameters given to the script: : The VPN interface (e.g. ) : Unknown, was in my case : IP of the VPN server : VPN gateway address : Regular (non-vpn) gateway for your lan connections
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix