VPN connection

Dear All,
I bought a new mini mac server 10.6.3. I am trying to setup VPN connection then I can access my files from home. The steps I have done so-for

I have turned on VPN on Server Admin L2TP. typed a sheared secret.
put a range of IP address (those address are not used by any other device in our network)

on the mini server filewall I turned on ports 500, 1701 and 45000 (UDP and TCP)

on our router I did port forwarding and opened the above ports assigned the mini mac server ip address (static IP address).

we have static ip address for our internet connection.

When I try to connect from home. on my mac I created a new connection on System Preferences on Network tab. any time I try to connect I get error message L2TP is not responding.

I will appreciate if any one can help please and tell me step by step or do I need to do more configuration?
Please let me know if you need more information.

Thanks in advance
Tiger07

Mac OS X (10.6.3)

Posted on Jun 3, 2010 2:42 AM

Reply
12 replies

Jun 3, 2010 9:12 AM in response to MrHoffman

Thanks a lot for reply.
I can connect locally from the same network to the VPN. When I try to access it from other network I get the following message.
"The L2TP-VPN server did not respond. Try reconnecting. If the problem continues, veryfy your settings and contact your Administrator."

I did open ports 4500 (instead 45000) and 1723 UDP/TCP.

Jun 3, 2010 2:53 PM in response to tiger07

Are both networks using the same subnet in 192.168.0.0/16 block? (That's one common trigger for IP routing problems; coffee shops and libraries often use the same 192.168.0.0/24 or 192.168.1.0/24 as many home networks, for instance.)

Issues with L2TP VPNs and Airport router devices have been posted around the forums. Try without that device in the path (such as with a server-grade VPN-capable firewall), or see if PPTP works through the Airport. Or if your router supports VPN servers, use that device as the end-point.

Jun 4, 2010 2:42 AM in response to MrHoffman

Dear MrHoffman,
the router is working fine with vpn I have contacted my internet supplier they said " the router firewall is ok and can connect any connection" only I have to do port forwarding. PPTP isn't working too. I get exactly the same problem.

I have two internet connection one with router ip address 192.168.1.x and the other connection with different router with router ip address 192.168.2.x still doesn't work.
Please let me know if you need more information.

on my new server 10.6.3 it seems like I don't have FTP service. Do I need a third party application or it is somewhere else?

Jun 4, 2010 6:25 AM in response to tiger07

Please start another thread for ftp (separate question) and have a look at [configuring ftp on Mac OS X|http://labs.hoffmanlabs.com/node/942].

Trust your ISP. But verify. Test the ports (remotely).

And that you have two parallel connections from your ISP arriving in two subnets? Interesting. That's double the complexity of the usual ISP configuration. But as for testing the ports, that's easy. Shut one down and configure the remaining "primary" router to be your gateway, and test with just the "primary" connection and the other external addressing.

Don't get parallel routing into the mix until you're ready for it, as that'll server to add complexity and errors. Mac OS X doesn't do IP routing without some extra work, and you're trying to get the Mac to use two subnets and a VPN and you're smack in the middle of the two worst subnets to get a VPN going and you have at least one layer of NAT at the ISP routers.

I'd probably get a BGP-capable firewall router (which is what can do load balancing across LANs), and move the Mac inside your own perimeter. But that might require some coordination with your ISP, and of removing those two ISP routers. In your current configuration, one of those two routers is going to be the primary, and only traffic you designate (via static routes and subnet routing) is going over the secondary connection. Which is why (at least for testing) you'll want to get just one connection working, and get your VPN working over that.

Better yet, get somebody in on-site to have a look at this stuff, and to get subnet routing going.

Jun 9, 2010 2:40 AM in response to tiger07

You didn't say what router/firewall you are using or what VPN client you now got working to it.
(I guess it contains a PPTP VPN server? SSL based VPN?)

Well, you could perhaps use the free VPN client/GUI IPSecuritas if it's a IPSec VPN server.
OS X IPSec server/client is Racoon (-based) and can be used for IPSec site-2-site connections too.

But the OS X L2TP client needs a L2TP VPN server and I guess the Apple VPN client Cisco compatibility builds on that too.

Otherwise if you have more than one public IP from either ISP and your router/firewall is capable of 1-1 NAT, you could perhaps forward necessary ports/protocols to the OS X server IP even if it got a IPSec server built-in.

For clarity:

L2TP server behind NAT needs 500, 1701 and 4500 forwarded - all UDP ports.

And PPTP needs TCP 1723 and GRE protocol forwarded.

If it works or not often depends on router/firewall capabilities (can it forward ports/protocols correctly).

If connecting (one or especially when) more than one remote VPN clients from behind the same router/firewall (remote office) to a VPN server especially when it also is behind NAT could mean other kinds of problems.

Jun 9, 2010 3:57 AM in response to tiger07

Your router is seemingly the same (?) as a Thomson TG585n

http://www.thomsonbroadbandpartner.com/dsl-modems-gateways/products/product-deta il.php?id=162

It seems it contains a IPSec VPN server and that's why you can have trouble getting L2TP through it (to a NATed server on it's LAN) because UDP port 500 could be "reserved" for the built-in IPSec server.

And you successfully connected a Windows XP built-in VPN client using PPTP to your OS X Server?

I would expect PPTP passthrough might work but maybe not L2TP, especially if IPSec VPN is on/running in the router.

It's a bit hard to follow your description of what works and what doesn't.

Also beware of the UPnP capability if one machine sends temporary alterations to the router it might not work as expected for others. I would probably turn it off, if possible.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VPN connection

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