Launch Server.app, and click on the “DNS” section of the sidebar, under “Advanced”:Īll DNS defaults in Server.app should be fine, so let’s switch DNS service on: To accomplish that, you’d substitute that alternate network info here, as well as a few other places further along in this walkthrough.)Īfter pressing “Apply”, you should see an something like this, indicating that your newly-created VLAN is active:
(Advanced: We’ll be using a 10.0.0.1 private IP for the server and 10.0.0.0/24 private network in this walkthrough, but note that the technique documented here will work with any private IP addressing scheme. Make sure to choose “Manually” for “Configure IPv4”, and set the IP Address, Subnet Mask, and Router as shown below. Let’s just name our VLAN something like “LAN”, and all other defaults here should be fine:Īfter pressing “Create”, you’ll see this:Īfter pressing “Done”, you’ll be able to enter network info for your new VLAN. In System Preferences, go to Network, and choose “Manage Virtual Interfaces…” If you do proceed beyond this point, which shall be exclusively at your own risk, then please proceed carefully, and as always, don’t ever proceed without a backup of your server and other irreplaceable data. The procedures discussed in PART II are intended for those who are looking to route internet traffic from their VPN clients over the VPN and out to the internet via their server’s public internet connection at Macminicolo.Īlso, it should be mentioned that server administration (particularly at the command line level) can be tricky. That’s right: you can jump straight from PART I to PART III. If you are simply looking to enable VPN service on your macOS Server for secure connection(s) between your server and client(s), you can skip PART II. He’s broken it down in a few parts so be sure to take the steps that are best for your situation: We asked Rusty Ross to help us put together a tutorial that will help MacStadium customers setup their Mac minis to serve as VPNs. This doesn’t work well in a facility like MacStadium where each Mac mini has a static WAN IP address.
By default, Sierra Server VPN will distribute IP addresses in the same range the Mac itself uses. This continued in Mountain Lion and Mavericks, Yosemite, El Capitan, and remains the case in Sierra. When Apple released Lion, they changed the setup a bit so we wrote a tutorial. This works great when you need an IP address in the US, or a secure internet connection on the road, or a number of other reasons. We have a lot of customers who use their Mac mini as a VPN server.