Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

VPN connection works, but can't ping or access any other device on remote network

I have an OS X Lion server at work (uses a static IP of 192.168.2.10). VPN is setup and works.


The work network's router has an IP of 192.168.2.1 and hands out IPs of 192.168.2.100-149. The VPN service is configured to hand out IPs of 192.168.2.150-170.


My home network uses a router with an IP of 192.168.1.1 and hands out IPs from 192.168.1.2-49


Both routers are using subnet mask of 255.255.255.0


The problem is, I can connect to the VPN just fine and access all services running on that same OS X server like iChat and AFP file sharing. But, I cannot directly access any other device on the office network like client machines or even trying to log into the router's GUI interface. Pings timeout, etc.


Example:


At my home, I have a local IP of 192.168.1.12 and I connect to the work VPN. It assigns me an IP address of 192.168.2.151 and I'm able to connect to iChat on the OS X server that has a static IP of 192.168.2.10


In terminal, I try to ping the router on the work network (192.168.2.1) and I get no response (even though ICMP response is turn ON). I try to ping another OS X workstation on the work office, and get no response.


---------------


I'm not sure how to fix this, or whether I need to change settings on either router or the server.


Would greatly appreciate any insight or help on this. Thanks.

Mac Mini Server w/ OS X Lion

Posted on Jun 6, 2012 11:36 AM

Reply
19 replies

Aug 13, 2012 7:10 AM in response to danimalapple

I have the same problem while setting up a MBA for one of our employees.


I have confirmed that the VPN is working through one ISP via a hotspot connection or home Internet (Rogers). I can ping hosts on the remote network. Outlook for Mac works through the VPN. We can map shared drives.


But when I connected it through another ISP via hotspot connection (WIND Mobile), I cannot ping any hosts. Outlook cannot connect. Shared drives are unavailable. I assumed that maybe there was something wrong with the WIND Mobile network.


However, the employee took the laptop to Austria and is experiencing the same problem: The VPN is running, but he cannot ping any of the clients on the remote network. Outlook for Mac cannot connect. Shared drives are unavailable. Could it be that the ISP is blocking PPTP traffic?

Aug 13, 2012 7:37 AM in response to BrownBrady

Can't be blocked traffic if you can connect to the VPN. Run a port check from a website like this to be sure: http://www.yougetsignal.com/tools/open-ports/


Also, here is a list of frequently used ports for the Apple services: http://support.apple.com/kb/TS1629


Additionally, look at the DNS settings on the OSX server. If you have DNS setup on it and your gateway that could be causing some issues. If you have DNS turned on in the OSX server verify that it's setup properly. Additionally, setting up a VPN server and then changing addressing information can cause a lot of stability issues with OSX server services, including VPN.

Aug 13, 2012 8:31 AM in response to Kurt.Nicklow

Thanks.


To clarify: we were able to ping, retrieve mail, and access files through Rogers Internet via VPN on the MacBook Air when I was setting it up here in Toronto. We have employees in Toronto that are still connected through the VPN this way with no issues. Now that the MBA is in Austria, the VPN connects, the connection counter appears beside the VPN icon, but is unable to ping, mail, and share through the VPN.


Do I run the port check from the computer trying to connect to the VPN?


Also, we don't have an OSX server. We are connecting to our router which has a VPN server.


On the client, I have configured to have all traffic go through the VPN connection when it is connected. This setting fixed our internal DNS resolution issue in the past.

Aug 13, 2012 11:12 AM in response to BrownBrady

When you're testing ports you always want to run the port check from the outside looking in. I'd advise running any tests you want to run on all the three scenarios (if possible). Even if one of the scenarios is working it's worth making sure the results of a port test, ping, or the like are logically consistent.


My understanding is the WIND is a mobile Broadband card so it sort of adds up that there might be some limitations. Given the Austrian endpoint is international I suppose it could be subject to the same shortcomings, but I'm honestly not sure. Start with the port checks, that out to give you some hard data.

Aug 13, 2012 11:14 AM in response to BrownBrady

BrownBrady wrote:


Thanks.


To clarify: we were able to ping, retrieve mail, and access files through Rogers Internet via VPN on the MacBook Air when I was setting it up here in Toronto. We have employees in Toronto that are still connected through the VPN this way with no issues. Now that the MBA is in Austria, the VPN connects, the connection counter appears beside the VPN icon, but is unable to ping, mail, and share through the VPN.


Do I run the port check from the computer trying to connect to the VPN?


Also, we don't have an OSX server. We are connecting to our router which has a VPN server.


On the client, I have configured to have all traffic go through the VPN connection when it is connected. This setting fixed our internal DNS resolution issue in the past.


Also, Telnet can be used to test some ports.

Aug 13, 2012 11:15 AM in response to danimalapple

danimalapple wrote:


I have an OS X Lion server at work (uses a static IP of 192.168.2.10). VPN is setup and works.


The work network's router has an IP of 192.168.2.1 and hands out IPs of 192.168.2.100-149. The VPN service is configured to hand out IPs of 192.168.2.150-170.


My home network uses a router with an IP of 192.168.1.1 and hands out IPs from 192.168.1.2-49


Both routers are using subnet mask of 255.255.255.0


The problem is, I can connect to the VPN just fine and access all services running on that same OS X server like iChat and AFP file sharing. But, I cannot directly access any other device on the office network like client machines or even trying to log into the router's GUI interface. Pings timeout, etc.


Example:


At my home, I have a local IP of 192.168.1.12 and I connect to the work VPN. It assigns me an IP address of 192.168.2.151 and I'm able to connect to iChat on the OS X server that has a static IP of 192.168.2.10


In terminal, I try to ping the router on the work network (192.168.2.1) and I get no response (even though ICMP response is turn ON). I try to ping another OS X workstation on the work office, and get no response.


---------------


I'm not sure how to fix this, or whether I need to change settings on either router or the server.


Would greatly appreciate any insight or help on this. Thanks.


Check the DNS settings on the server (see my earlier post in this thread).

Aug 13, 2012 11:27 AM in response to danimalapple

danimalapple wrote:


Anything in particular I should be looking for?


The DNS settings look fine to me. They work in the office just fine. But from outside, via VPN, I'm having the problems as described.


I just don't know what could potentially cause this, so not sure what I should be looking for.

Is the OSX Server the DNS for your entire office, or do you have DNS being run off something else and the OSX server just sort of exists in the same envrionment?

Aug 13, 2012 11:30 AM in response to Kurt.Nicklow

OS X server powers DNS for entire office. The router/gateway is configured to use the OS X server as the DNS that get's handed out in the DHCP leases (which come from the router).


Any requests made for outside resources are set to use the ISPs DNS (I think this is configured in the DNS settings area). We have a fully qualified domain set up for the server.

Aug 13, 2012 11:55 AM in response to danimalapple

From my experience, you can have that setting turned off but you must:


1) Use the full hostnames when referencing internal hosts. For example:


mailsvr.domain.local <-- will resolve

mailsvr <-- will not resolve


2) In VPN Properties > DNS tab: Add at least 1 internal DNS server and 1 Search Domain. In the example above, the search domain is "domain.local"

Aug 13, 2012 11:56 AM in response to danimalapple

danimalapple wrote:


OK - is that the only way to make this work?


But like I said, previously, it worked WITHOUT doing that. I don't really want to send all traffic over the VPN.


It seems like something isn't configured right, but I'm just not sure what.

I'd be curious to hear how it would of worked without that setting enabled. The various services you're looking to use aren't necessarily going to know to go over the VPN vs. another gateway unless you specify so.

Aug 13, 2012 12:01 PM in response to Kurt.Nicklow

Previously, I was using DD-WRT firmware at office. We changed to Tomato. When I did that, this stopped working. I can't be 100% sure that is the reason, but it seems it could be related. But I think that if it is, I should be able to find a way to configure it similarily so that it works the same.


Is there a way to send all traffic for 192.168.2.x over VPN? Perhaps the other firmware more intelligently routed based on destination.

Aug 13, 2012 12:09 PM in response to Kurt.Nicklow

I also just found this: http://www.jms1.net/osx-vpn-routing.shtml


quote:


The VPN client built into Mac OS 10.5 has a single checkbox saying "Send all traffic over VPN connection". If you turn this on, the VPN becomes the default route. If you turn this off, the only IP block which gets routed through the VPN is the one IP block in which the VPN server resides. Since the office has multiple IP blocks, neither option is suitable for my needs.


The last sentence is important. It says all traffic in the IP ranges of the VPN server should go over the VPN, even if it is not checked. In my case, this doesn't happen.

VPN connection works, but can't ping or access any other device on remote network

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.