VPN Server for Mojave?

Discussion in 'Mac OS X Server, Xserve, and Networking' started by MBHockey, Sep 25, 2018.

  1. MBHockey macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #1
    Since Apple has neutered OS X Server for Mojave, i'm curious which alternatives Mojave users are moving to for VPN access.

    I have used OS X Sever to run a VPN server to my home iMac for several years, so I'm not even sure what else is out there.
     
  2. MBHockey thread starter macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #3
    Thanks. But i think I’ve found a better option. You can just re-enable the built in VPN server via Terminal.

    Seems they left vpnd in Mojave. It’s just not part of Server anymore (there’s no front end GUI for it). It took me five minutes to get it running. It’s using the settings previously set up in OS X server.

    You can look at its activity the usual way, by tailing /var/log/ppp/vpnd.log

    https://developer.apple.com/support/macos-server/macOS-Server-Service-Migration-Guide.pdf
     
  3. solaris macrumors 6502a

    solaris

    Joined:
    Apr 19, 2004
    Location:
    Oslo, Norway
    #4
    Thanks, MBHockey.
    The migration guide helped me get the VPN server quickly up and running on Mojave. :)
     
  4. MBHockey thread starter macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #5
    No problem, glad they still left it in there!
     
  5. cyberblood macrumors newbie

    cyberblood

    Joined:
    Aug 19, 2017
    #6
    Thank you , but this thread doesn't give any useful information.The official Apple "guide" says: Hey, become a system administrators of Linux or OS X.OS X server without GUI = Linux in sense of administration.
     
  6. hobowankenobi macrumors 6502a

    Joined:
    Aug 27, 2015
    Location:
    on the land line mr. smith.
    #7
    Have you considered a router with VPN capability?
     
  7. nealc5 macrumors newbie

    Joined:
    Feb 22, 2015
    #8
    I tried to set that up in High Sierra before migrating, and I could not get it to work at all. There were file permission problems (I could not set the file ownership of the plist to root:wheel.)

    Do I need to go to Mohave first before doing this?

    Thanks,
    Neal
     
  8. MBHockey thread starter macrumors 68040

    MBHockey

    Joined:
    Oct 4, 2003
    Location:
    New York
    #9
    I think it should work. Are you talking about Step 3?

    Code:
    sudo chmod root:wheel /Library/LaunchDaemons/ vpn.ppp.l2tp.plist
    If you had trouble here it’s because it should be “chown” not “chmod”. Someone at Apple had a brain fart when writing out this step ;)
     
  9. zahuh macrumors regular

    Joined:
    Oct 22, 2004
    #10
    Can someone, please, I beg, make a youtube tutorial to do this? I'm not very confident or skilled with these things. Thank you whoever you are.
     
  10. hobowankenobi macrumors 6502a

    Joined:
    Aug 27, 2015
    Location:
    on the land line mr. smith.
    #11
    Just bumped into this nice GUI. Never used it, but I used to (years ago) use some of this Dev's other tools, and they were always solid, reliable, and well worth the cost.
     
  11. zahuh macrumors regular

    Joined:
    Oct 22, 2004
    #12
    You’re amazing! I’m gonna try it.
     
  12. hobowankenobi macrumors 6502a

    Joined:
    Aug 27, 2015
    Location:
    on the land line mr. smith.
    #13
    It looks good at a quick glance. Like I said, other tools (email related) were really good. Good luck...report back for others!
     
  13. i_a_f_m macrumors newbie

    Joined:
    Nov 9, 2018
    #14
    Hi! Did it work as expected? I'm thinking of trying it myself.
     
  14. zahuh macrumors regular

    Joined:
    Oct 22, 2004
    #15
    I’ll be trying in 2 weeks. Will report back then.
     
  15. i_a_f_m macrumors newbie

    Joined:
    Nov 9, 2018
    #16
  16. bigalow macrumors member

    Joined:
    Feb 16, 2012
    #17
    after following the above instructions should I see VPN and the option to turn it on similar to how it was in the past? I went through the instructions above, received no errors and still dont see anything related to VPN. Thanks.
     
  17. i_a_f_m macrumors newbie

    Joined:
    Nov 9, 2018
    #18
    Starting from the release of Mojave, the Server app no longer includes any VPN features. What the instructions above does (assuming you meant my post) is to migrate your previous Server app settings for VPN to another Mac program "vpn.ppp.l2tp" that still supports VPN features. This new program has no GUI (Graphical User Interface), but is running in the background as a service.

    Run the command "sudo launchctl list | grep vpn" in the terminal. If the service is running correctly the command should return a message similar to "131 0 vpn.ppp.l2tp" (the numbers may not be the same).

    Hopefully, your VPN still works, it just doesn't have a GUI.
     
  18. reptilou, Jan 26, 2019
    Last edited: Jan 27, 2019

    reptilou macrumors newbie

    Joined:
    Jan 16, 2012
    #19
    Hi everyone. I really hope you can help me.

    Before Mojave, I had the macOS Server installed, and I followed this tutorial (https://blog.macstadium.com/blog/setup-a-vpn-server-with-macos-sierra-server-10-12) to set up a VPN server with all Internet traffic going through it. I'm not sure I did the DNS part, as my VPN host name was my public IP address, not a domain name.

    Since Mojave, I have removed the Server app totally.

    I followed the PDF (https://developer.apple.com/support/macos-server/macOS-Server-Service-Migration-Guide.pdf) VPN section and at first, it seems it's working. The VPN is running, I can connect to it with my devices and access local services remotely.

    But when I try to access the Internet (surfing Google or whatever), nothing happens.

    I don't get what's wrong. Probably some routing stuff but I check again the "Internet routing" section of the initial tutorial I followed (https://blog.macstadium.com/blog/setup-a-vpn-server-with-macos-sierra-server-10-12) and everything is still in place.

    Any help would be greatly appreciated :)

    Regards
     
  19. soujuk macrumors newbie

    Joined:
    Feb 27, 2019
    #20
    How you change shared secret key?
     
  20. Idgit macrumors 6502

    Idgit

    Joined:
    Mar 14, 2004
    #21
    There are a couple of GUIs that will allow you to re-enable the VPN server in macOS Mojave. Neither is free, however.

    iVPN

    VPN Enabler for Mojave
     
  21. BigMac786 macrumors newbie

    Joined:
    Jun 7, 2019
    #22
    ---

    Thanks, I got this working. However, after a couple of weeks it working, the VPN client from my iOS devices are no longer working. I receive the following error - see attached.

    upload_2019-6-7_16-6-29.png

    I tried it manually, L2TP connection with the shared key that I configured when the GUI option was available but same issue.

    Can you help?

    macOS 10.14.5
    Server App 5.8


    Cheers
     

Share This Page

21 September 25, 2018