Inunte-macOS custom vpn configuration

tn-57-gs 31 Reputation points
2021-09-06T20:25:11.543+00:00

I am trying to create a custom VPN profile for macOS in Intune portal, not using any third-party VPN client and, trying to use the in-built mac VPN app "com.apple.vpn.managed" to connect but it fails not getting any response back neither from the device nor from the Intune portal.

129712-aovpn-msforum.png

I used a custom VPN profile using IKEv2 Dictionary Keys still not able to establish a connection to our RRAS VPN server.

please assist.

Microsoft Security | Intune | Configuration
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Lu Dai-MSFT 28,501 Reputation points
    2021-09-07T01:43:07.177+00:00

    @tn-57-gs Thanks for posting in our Q&A.

    Based on my research, currently, IKEv2 is only supported iOS/iPadOS and Windows 10 in intune. With the limitation resource, I'm not sure if IKEv2 can establish a connection to our RRAS VPN server via a custom VPN profile on MacOS.

    With Q&A limitation, it is better to create an online support ticket to handle this issue more effectively. It is free. Here is the online support link and hope it helpful.
    https://learn.microsoft.com/en-us/mem/get-support

    Thanks for understanding.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. David Frith 1 Reputation point
    2021-10-05T12:19:18.53+00:00

    Interested to see if you have had any luck with this.

    I have the inbuilt macOS VPN client connecting to RRAS using IKEv2 now. It is also using a certificate payload pushed by intune for authentication - so happy with that. but I have to set it up manually on each device. This is not ideal.
    For reference, RRAS has radius setup for auth, and only EAP enabled for authentication protocol
    The NPS server has a custom network policy to pick up calls from the RRAS server, and has 'Smart card or certificate" setup as the only EAP type
    lots of standard cert stuff needed to be done (trusted Root CA on RRAS/NPS and device)
    But - if you have got any closer with the Intune payload... that would be awsome
    I've had a hack too - and failed
    tks


  3. tn-57-gs 31 Reputation points
    2021-12-13T09:57:15.87+00:00

    @David Frith , I tried my best to get the IKE to work on windows devices and my colleague found a workaround which is, creating PORT Forwarding rule (due to NAT-Traversal) on the client's local DSL router but the same tried for mac no luck. it would be much appreciated if you can let me know how are you connecting your mac devices to RRAS IKE. (accordingly to MS premium support, most of the routers are IPSEC Passthrough supported but in my opinion you can't expect end-users to have such routers especially during these times most of the people are working from home and its really a pain to ask the end-users to set up this port forwarding rule to make IKE to work)

    some of my suggestion to bring it to your notice on how we can deploy VPN profiles to mac remotely, I used SCEP user certificate for authentication and that is deployed using device configuration profile in Intune and there is no special payload is required. please see the screenshot below FYI

    157109-msforum-screenshot-1.png

    and the same goes to trusted certificate, you can do it using Intune itself but to make use of built-in mac VPN app we need a payload and having it can be easily deployed using custom configuration profile. you can create the payload using either profile manager "https://github.com/ProfileCreator/ProfileCreator" or apple configurator. please see the screenshot for your reference.

    I would really appreciate if you can share your method connecting Mac clients to RRAS IKE because I am still not able to connect.

    0 comments No comments

  4. tn57chgs-3733 6 Reputation points
    2022-03-23T20:25:40.663+00:00

    Finally it worked for me. there are two things did the trick for me, 1) missing SAN name in the VPN certificate 2) I used EAP-TLS instead of PEAP-TLS because mac VPN native client does not support PEAP-TLS (whereas from Apple's official website says it is supported).

    The main reason why the request from mac did not reach NPS was because mac did not trust the VPN certificate due to a missing extension in the certificate "DNS entry (Subject Alternative Name Extension)".

    Ref: https://support.apple.com/en-us/HT210176

    I tested a couple of times and it works like charm now and in order to push VPN profile remotely to mac devices via Intune Ref to the payload I used- https://github.com/sujith-cy/Intune-macOS-Custom-VPN-Profile/commit/b25f2b8aa395c9c32341c055234589db26eb1a92. it can be created easily with the Apple configurator.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.