You would think VPN, being a vital part of net­work secu­rity, that Apple would have given you a ton of options and unlim­ited con­trol over it's set­ting. But no, in Lion Server this is not the case. The PPTP pro­to­col has been axed from Server App and the L2TP set­tings are a shadow of their for­mer self.

Lion VPN Settings.

Click Image To Enlarge 

Now com­pare this to the VPN set­tings in 10.6 server.

Snow Leop­ard Snow Leopard

Click Images To Enlarge

 

As you can see, the Lion VPN con­fig­u­ra­tion options are –for lack of a bet­ter term– slim to none. Now, as Dave men­tioned in his post Chang­ing VPN and DNS in Lion Server, the auto setup has it's prob­lems, but it does gets the job done; for bet­ter or worse. And if need be, some of the set­tings like the "Client Con­fig­u­ra­tion" set­ting, can be han­dled by edit­ing the: com.apple.RemoteAccsessServers.plist. Other L2TP set­ting are han­dled by new ser­vices like, SSL Cer­tifi­cates, or other options in Server App. But what about PPTP? Maybe you have some older Macs and Win­dows clients. Do you need to setup a dif­fer­ent server or router for those clients? The good news is, no; no you don't. As fate would have it, Apple hasn't removed the PPTP server from the OS, just from the GUI.

You now need to use the Com­mand Line server­ad­min tool to setup PPTP. The com­mands are below, as well as a link to the online Admin Guide page where I found the set­tings. And before you ask, yes, I set this up on Lion server and was able to con­nect with Win­dows 7, Win­dows XP and Ubuntu 11. You have to read the logs in Ter­mi­nal or Con­sole, but at least the ser­vice works, right.

Ter­mi­nal Setup.

  1. Type the fol­low­ing in to Terminal.
    $ sudo serveradmin settings

    Authen­ti­cate if requested.

Enter the following:

vpn:Servers:com.apple.ppp.pptp:enabled = yes
vpn:Servers:com.apple.ppp.pptp:IPv4:DestAddressRanges:_array_index:0 = value
vpn:Servers:com.apple.ppp.pptp:IPv4:DestAddressRanges:_array_index:1 = value
vpn:Servers:com.apple.ppp.pptp:PPP:AuthenticatorProtocol:_array_ index:0 = value
vpn:Servers:com.apple.ppp.pptp:PPP:AuthenticatorPlugins:_array_index:0 = value
vpn:Servers:com.apple.ppp.pptp:Radius:Server:_array_index:0:Address = value
vpn:Servers:com.apple.ppp.pptp:Radius:Server:_array_ index:0:SharedSecret = value
vpn:Servers:com.apple.ppp.pptp:Radius:Server:_array_index:1:Address = value
vpn:Servers:com.apple.ppp.pptp:Radius:Server:_array_index:1:SharedSecret = value
vpn:Servers:com.apple.ppp.pptp:PPP:MPPEKeysize40 = value
vpn:Servers:com.apple.ppp.pptp:PPP:MPPEKeysize128 = value

Tagged with →  
Share →

10 Responses to PPTP Setup in Lion Server.

  1. Ernst Mulder says:

    a) there's a typo: there should NOT be a space in "AuthenticatorProtocol:_array_ index:0"

    b) even with­out the typo it just does not work even though Apple says it does. Apple's 10.7 Server vpn server can't find its MPPE keys.

    • Seth says:

      Hi Ernst,

      You know, that doesn't suprise me, Lion server has proven to be unpre­dictable and tem­pera­men­tal. Not sure what your server con­fig­u­ra­tion is, but the Mac Mini I set this up on was built in a style that would be more appro­pri­ate for 10.6. It has a USB to Eth­er­net adapter that allows the server to be on the inter­net, while the built-in eth­er­net does LAN duty. The users were built with Work­group Man­ager and not Server App, and the other ser­vices run­ning at the time of VPN con­fig were AFP, Fire­wall, OD and DNS. Not sure if any of that will help. Our time with Lion Server has been frus­trat­ing at best, and lets just say it has lots of room for improve­ment. That said, it did work for me, so don't throw in the towel.

      And thanks for the heads-up on the typo.

      • Ernst Mulder says:

        Today, Apple has finally fixed the typo in HT4748 (the erro­neous space is no longer there).

        http://​sup​port​.apple​.com/​k​b​/​H​T​4​748

        Even so, when fol­low­ing the instruc­tions men­tioned in HT4748 we have not been able to get PPTP to work, even on a vanilla Lion server.

        Apple wants us to use the saver L2TP/IPSec solu­tion which would be great if Apple had actu­ally imple­mented the UDP port 4500 NAT Tra­ver­sal fall­back prop­erly so that it would be pos­si­ble for NAT­ted users in the same sub­net to simul­ta­ne­ously use VPN (instead of being kicked out when some­one else logs in as is what hap­pens now).

        Very frus­trated with Lion server…

        • Seth says:

          Hi Ernst,

          Again not a sur­prise, we have sev­eral 10.7 Lion Servers in the field and they all react dif­fer­ently to the same setup. Not sure what the deal is, but the only server that the PPTP setup worked on was the test server we build. Hope­fully Apple will take the same path with Lion Server as they have with Final Cut X.

  2. Ernst Mulder says:

    The referred kb arti­cle http://​sup​port​.apple​.com/​k​b​/​H​T​4​748 does not longer exist. It's gone gone gone. We can only hope that this means a soli­ton is imminent?

    • Seth says:

      Wow, your right, but I noticed that the page is still in the Admin guide. I have been using iVPN to get the PPTP to work. Have had 99% suc­cess, and it's not to expen­sive. But I agree, lets hope we see a GUI update in the OS.

  3. hford says:

    Thanks for this. I've been bang­ing my head try­ing to fig­ure out why the PPTP con­nec­tion wasn't work­ing. Still hav­ing "MPPE required" errors when using Authen­ti­ca­tion but that's another story. Also wanted to point out that you copied the L2TP ver­sion of the ter­mi­nal com­mands not the PPTP version.

    • Seth says:

      HI hford,

      Glad we could be of some help. As for the link, I have fixed it like five times now and keeps switch­ing back on me. But thanks for the heads-up. I'll fix it again.

  4. Ernst Mulder says:

    Good news, 10.7.3 Server brings PPTP back to the GUI. One caveat, for servers upgraded from 10.7.2 some extra han­dling is required as stated in (the new ver­sion of) http://​sup​port​.apple​.com/​k​b​/​H​T​4​748 and PPTP is only avail­able for Open Direc­tory users, not local users (which is not an issue of course).

    Basi­cally it's just a mat­ter of set­ting the cor­rect pol­icy for the vpn keya­gent user (which might work with 10.7.2 as well).

    • Seth says:

      HI Ernst,

      Thanks for the return the visit. The remer­gence of PPTP, is a great sign. We spent all last week at an advanced train­ing camp held by Apple, and all I can say (we are bound by an NDA) is that Apple is aware that 10.7 Server is light on func­tion­al­ity. How long it takes them to change that is unknown, but the addi­tion PPTP and some other miss­ing tools that were rein­tro­duced in the last up date are a good start.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Archives