MacOS setup Client

WireGuard client configuration for MacOS

To connect to the VPN, install WireGuard. You can download the app from the App Store or install it via brew:

brew install wireguard-tools

Obtaining the Configuration File

  • Connect to the virtual machine via SSH.
  • Navigate to the directory /opt/niflheim/configs/<external_ip>.
  • The directory contains all configuration files for client setup. In this case, you need the configuration file wireguard/<user_name>.conf.
  • Copy the file to your local machine.

Configuration

After copying the configuration file, you need to set up the client.

If you are using the App Store client, simply import the tunnel by clicking “+” and selecting your configuration file.

If you are using the command-line client, open the terminal and follow the steps below.

Create a directory:

mkdir /usr/local/etc/wireguard/

Then, copy your configuration file into it:

cp <user_name>.conf /usr/local/etc/wireguard/wg0.conf

Next, start the tunnel with:

sudo wg-quick up wg0

IPSEC VPN Configuration

Obtaining the Configuration File and Installing the Profile

  • Connect to the virtual machine via SSH.
  • Navigate to the directory /opt/niflheim/configs/<external_ip>.
  • The directory contains all configuration files for client setup. In this case, you need the configuration file ipsec/<user_name>.mobileconfig.
  • Copy the file to your local machine.
  • Open the downloaded file by double-clicking it and install the profile.