Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

944216

Cancelled
Original poster
Jan 25, 2015
4
0
I am using the SoftEther VPN Client to connect to my VPN provider's SoftEther VPN Server, using their software. I have successfully connected but the problem arises when trying to route all traffic through the VPN.

I have got it to work on Linux but not OS X, these are the steps I took on Linux.

Use sudo dhclient vpn_vpn to assign IP to my Virtual NIC vpn_vpn.
Use sudo ip route add [VPN IP] via [Router gateway IP] dev eth0
Use sudo ip route del default to remove the default gateway routing rule.
Use sudo ip route add default via [vpn_vpn's gateway IP] dev vpn_vpn to replace the default gateway routing rule I just deleted.
I can then go on the internet and everything is working through the VPN. However, on OS X this is not the case. Below are the commands I use for OS X:

Instead of sudo dhclient vpn_vpn I use sudo ipconfig set vpn_vpn DHCP

Instead of sudo ip route add [IP] via [Gateway] dev [Interface] I use sudo route add -ifscope [Interface] [IP] [Gateway]

Here is a comparison of the routing tables after changing them: https://drive.google.com/file/d/0BxASh88vzr9kWk1kNzJ4YlBVQzg/view?usp=sharing
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.