Start a conversation

Configuring IPsec VPN client on macOS

Overview 

VPN connection for macOS users can be established using Kerio Control IPSec VPN server. VPN authentication can be configured by importing an SSL certificate or by using a Preshared Key (PSK).

This article provides details on how to connect to your company network through IPsec VPN and authenticate with an SSL certificate or Preshared Key.

Solution

Configuring Kerio Control

  1. Make sure to enable the IPSec VPN server in Kerio Control Webadmin > Interfaces > double-click VPN server.
    • For SSL certificate authentication: Enable Use certificate for clients, choose valid SSL certificate from the dropdown.
    • For PSK authentication: specify the PSK in Use preshared key. This password needs to be shared with Kerio Control users.
      Screenshot_2021-03-17_at_17.45.44.png

      Note: enabling MS-CHAP v2 authentication is also recommended.

  2. Make sure to enable "User can connect using VPN" in Configuration > Users > Template.
    Screenshot_2021-03-17_at_18.12.51.png
  3. For SSL certificate authentication, export the certificate in the PKCS#12 format from Configuration > SSL Certificates > right-click on certificate and Export.
    Screenshot_2021-03-17_at_17.43.24.png
    In the Export Certificate in PKCS#12 Format dialog, use a password without national characters.
    Screenshot_2021-03-17_at_17.56.45.png
    Check Include all certificates in the certification path if possible. The certificate should be distributed across Kerio Control Mac users.

Configuring built-in VPN on Mac

  1. Go to System Preferences > Network.
  2. In the Network dialog, click the + icon and add VPN.
  3. Select the VPN interface and  L2TP over IPsec type. Click Create.
    Screenshot_2021-03-17_at_18.03.53.png
  4. Specify Kerio Control server address (IP or FQDN) together with the Account Name (Kerio Control username).
    Screenshot_2021-03-17_at_18.06.21.png
  5. Click Authentication Settings and specify Kerio Control user's password and PSK (Shared Secret) or select the imported certificate. Click OK to close the window.
    PSK Auth
    Screenshot_2021-03-17_at_18.09.09.png
    SSL certificate auth
    Screenshot_2021-03-17_at_18.36.04-mod.png
  6. Click Apply.
  7. Click Connect. The VPN is now connected.
    Screenshot_2021-03-17_at_18.17.12-mod.png

Important: this is a valid workaround for the latest M1-based Macbooks.
ipsec_vpn_m1.png

Importing the certificate

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments