OS X: connect to a VPN using the same subnet on local and remote network

Hi,

I'm trying to connect a MacBook Pro using OS X to a Windows PPTP VPN at work with the same subnet on both sides.

In XP I would just uncheck the box "use default gateway for remote network" in TCP/IP-settings to get it work.

The option "send all traffic through VPN-connection" in OS X doesn't seem to help.

I am aware that this can be avoided by using different subnets, but that is not what I'm asking for.

Any idea how I can make this work?
alexandrusAsked:
Who is Participating?
 
et01267Connect With a Mentor Commented:
Try this:  Set your network interface ("service order") to have the VPN connection on top, as follows:

1. Go to System Prefs -> Network and click the gear icon at lower left.
2. Select the "Set Service Order" choice from that menu, and then drag the VPN to the top.

Now experiment with the "send all traffic..." option in the vpn settings.
0
 
et01267Commented:
Which aspect of the connection is failing?  There are a zillion things that can go wrong with a VPN connection, particularly between different vendors.  The subnet issue may be a red herring; there may be some protocol setting mismatch or something more fundamental.  Usually, I find that I need to use a payware VPN client, like VPN Tracker

What errors or messages do you see?  Have you checked the console logs (Applications/Utilities/Console) to see what's happening?
0
 
alexandrusAuthor Commented:
As i wrote, the problem is the same subnet, making the IPs on the remote site unreachable (i.e. I can only ping local IPs). The VPN connection is working perfectly fine (from a network with a different subnet).

It's just a routing problem. How to make this work on a Mac?
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
alexandrusAuthor Commented:
To make it clearer:

The behaivor I look for (and which I achieve in Windows using the setting mentioned above) is disabling the local network and routing all TCP/IP to the remote network.
0
 
et01267Commented:
And you are sure that it works on the Mac when you have different subnets?
0
 
alexandrusAuthor Commented:
Yes
0
 
et01267Commented:
What IP address is your Mac using on the local Lan?  Are you sure this address is not being used on the remote network?  
0
 
alexandrusAuthor Commented:
Local IP: 192.168.0.3
Remote IP: 192.168.0.115

both unique.

But why would the local IP matter? Only the virtual adapter IP is part of the remote network. So as long I don't want to access exactly this IP on the remote net it might also be present on both nets.

I think you didn't understand my problem.. Right now I can still ping my local network when I am connected trough VPN. If subnets are the same in local and remote net, how should the OS know how to route a packet to let's say 192.168.0.50 (which might be even present in both nets). All I want is to force routing on the mac through the VPN-adapter.
0
 
njxbeanCommented:
Have you tried using another VPN client?
0
 
alexandrusAuthor Commented:
No, but I would try it if I knew one which can fix that routing problem.
0
 
njxbeanCommented:
Only one way to find out.

Give this a try.  its free  Maybe there will be an equivalent setting to force it to use the remote networks default gateway.  

http://openvpn.net/
0
 
njxbeanCommented:
fyi it looks like openvpn does have that option.


One interesting capability of the OpenVPN tunnel is to optionally allow the client to pass all traffic through the VPN tunnel when connected. For example, when you are using an unsecure WiFi hotspot, you might want to ensure that eavesdroppers are not able to monitor your WiFi traffic. One way to do this is to route all your WiFi traffic through the encrypted VPN tunnel, using the "redirect-gateway" option on the server or the client. When configured on the server, all clients will reroute all their traffic through the VPN. The "redirect-gateway" option requires pushing two pieces of information from the server to the client, the remote gateway and DNS IP addresses.
0
 
alexandrusAuthor Commented:
Had a short try with OpenVPN, but it seemed like to much of a hassle and I ended up changing one of the subnets.

Still, the initial question stands.

Does anyone know how to fix this issue with the OS X built-in VPN client?
0
 
alexandrusAuthor Commented:
Thanks for your suggestion.

Unfortunately I don't have the MacBook anymore to try it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.