Q: VPN no longer connecting on OSX Server
A few weeks ago I set up a local network controlled by a single mac mini on which I installed the OSX Server app. I had it all configured, and it seemed to be working.
2 days ago I updated the Server app to version 5.2.
Since then I have been unable to create new VPN connections from imacs outside the local network. Nothing in the configuration has changed. On connecting, the client first asks for a username/password (so I'm assuming an initial connection has been made), but after supplying this, the client runs for a few seconds and returns "The L2TP-VPN-server is not responding. Please try to reconnect.".
The odd thing is that when I'm on the local network I can use the VPN tunnel without any problems. From outside, it no longer works. However, I can still connect to the webserver, so I'm assuming there is nothing wrong with the DNS, nor with the actual username/password of the user.
Looking at the server logs I see a ton of messages from outside users trying to break in, perhaps this has something to do with it? I mean messages like:
Sep 28 14:11:45 --- last message repeated 3 times ---
Sep 28 14:11:45 server-1 ARDAgent[292]: Packet length invalid. Got 0 should be -4
Sep 28 14:11:45 server-1 ARDAgent[292]: MassagePacket failed.
Sep 28 14:11:45 server-1 kernel[0]: l2tp_rfc_lower_input mbuf_pullup len 8 failed 12
Sep 28 14:11:45 server-1 com.apple.xpc.launchd[1] (com.apple.screensharing[61839]): Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.screensharing.server
Sep 28 14:11:45 server-1 sshd[61838]: Did not receive identification string from 17.151.38.200
Sep 28 14:11:45 server-1 com.apple.xpc.launchd[1] (com.openssh.sshd.54E77ED0-00F1-428E-9EFE-1D3CCB818784[61838]): Service exited with abnormal code: 255
Sep 28 14:12:01 server-1 sshd[61843]: error: PAM: authentication error for root from 221.229.172.76 via 192.168.2.10
Sep 28 14:12:02 --- last message repeated 2 times ---
OSX Server 5.2 (build 16S1195)
Posted on Sep 28, 2016 5:29 AM