IKEv2 VPN Server and Client Setup

 

  1. Create Root CA [EXAMPLE-ROOT-CA]
  2. Create CA subordinate to the Root CA [EXAMPLE-SUBORDINATE-CA]
  3. Create certificate template with EKU
    1. Server Authentication
    2. IP security IKE intermediate    (capitalization matters)
  4. Publish the template in AD [IPSecIKEv2.12]

  5. Generate Certificate signing request on the VPN server using certlm.msc
    1. Request personal certificate -> All Tasks -> Advanced Operations -> Create Custom Request
    2. Select template that was just created [IPSecIKEv2.12]
    3. Click on "Details", "Properties"
    4. In the "Subject Name" add Common name like "VPNServer.EXAMPLE.com"
    5. Add:
      1. "Domain component" (DC) VPNServer
      2. "Domain component" EXAMPLE
      3. "Domain component"  com (order of requests matters)
    6. Add "Alternative name" DNS VPNServer.EXAMPLE.com
    7. Save certificate request file
  6. On CA server select All Tasks->Submit new request
    1. Select certificate request that was created, select certificate file name and process the certificate
  7. On VPN server select: All tasks -> import -> select the certificate file
    1. Import as "Personal"
  8. Install Routing and Remote Access on the VPN server
    1. Restrict VPN server to use IKEv2. Select only IKEv2 ports
    2. Right-click on the server Properties -> Security -> Authentication methods: EAP, MS-CHAP2
    3. Certificate binding. Select the certificate.
  9. Start RRAS
  10. On VPN firewall open UDP:500, 4500 and protocol 50 (ESP)

  11. On client computer create VPN connection
    1. Windows built-in provider
    2. Select connection name and VPN server address
    3. Select connection type IKEv2
    4. If client computer is not member of the domain, install Root CA cert in: local machine, "Root certificate authority store"
    5. Test the connection

    Leave a Reply

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

    Time limit is exhausted. Please reload CAPTCHA.