WireGuard protocol instructions for VPN to DRAC users

Install WireGuard

Install WireGuard on your device before configuring a VPN connection.

  • Ubuntu: Open Terminal and run:

    sudo apt update
    sudo apt install wireguard-tools
  • macOS: Download and install the WireGuard application from the official WireGuard website. To generate keys using Terminal, also install WireGuard command-line tools with Homebrew:

    brew install wireguard-tools
  • Windows: Download and install the WireGuard application from the official WireGuard website.

WireGuard credentials

To establish a WireGuard VPN connection and access your server's OOB management interface, you need to create VPN credentials and obtain a WireGuard configuration file from the Customer Portal.

To create WireGuard credentials:

  1. In the Customer Portal, go to VPN Access and select the VPN to DRAC tab
  2. Click Create
  3. On the New VPN to DRAC credentials page, enter a name for your credentials in the Name field
  4. In the VPN location list, select the location where you want to access your server's management interface
  5. Under Protocol, select WireGuard
  6. Under WireGuard key source, select one of the following options:
    • Generate new WireGuard key – to generate a new WireGuard key pair in the Customer Portal
    • Use public WireGuard key – to use an existing WireGuard key pair; enter your public key in the Public key field, see Generate your own WireGuard keys (optional) section below
  7. Click Create credentials

After the credentials are created, the Customer Portal displays the WireGuard configuration.

Get the WireGuard configuration

The configuration is available in the Configuration section of the credentials page. The configuration file contains the settings required to establish a WireGuard VPN connection, including the VPN server address and network routes. You do not need to configure these settings manually.

Depending on how you created your credentials:

  • Generate new WireGuard key: the configuration includes the generated private key and is ready to use.
  • Use public WireGuard key: in the configuration, replace the private key placeholder with the private key from the same key pair.

To save the configuration, click Download .conf. Alternatively, click Copy all to copy the configuration to your clipboard.

If you generate a new WireGuard key pair in the Customer Portal, save the configuration before leaving the page. The generated private key is displayed only once. Keep your private key secure and do not share it.

Generate your own WireGuard keys (optional)

Linux or macOS

To generate a WireGuard key pair on Linux or macOS:

  1. Install WireGuard command-line tools if they are not already installed:

    • Ubuntu

      sudo apt update
      sudo apt install wireguard-tools
    • macOS (using Homebrew)

      brew install wireguard-tools
  2. Open Terminal and create a directory for your WireGuard keys:

    mkdir -p ~/.wireguard
    chmod 700 ~/.wireguard
  3. Generate a private key and its corresponding public key:

    wg genkey | tee ~/.wireguard/private.key | wg pubkey > ~/.wireguard/public.key
  4. Restrict access to the private key:

    chmod 600 ~/.wireguard/private.key
  5. Display your public key:

    cat ~/.wireguard/public.key
  6. Copy the public key and enter it in the Public key field when creating VPN credentials in the Customer Portal.

Keep your private key secure. You will need it when configuring your WireGuard connection. Never share your private key.

Windows

You can generate a WireGuard key pair using the WireGuard application.

  1. Open WireGuard
  2. Click Add Tunnel and select Add empty tunnel
  3. WireGuard automatically generates a private and public key pair
  4. Copy the Public key displayed in the tunnel creation window
  5. Copy the PrivateKey value from the configuration editor and save it securely
  6. Click Cancel to close the tunnel creation window without saving the temporary tunnel
  7. In the Customer Portal, select Use public WireGuard key and paste the public key into the Public key field

Keep your private key secure. You will need it when configuring your WireGuard connection. Never share your private key.

Configure WireGuard on Ubuntu

After downloading your WireGuard configuration file from the Customer Portal, import it into NetworkManager to establish a VPN connection.

Import the WireGuard configuration

  1. Open Terminal and import the downloaded WireGuard configuration file into NetworkManager:

    sudo nmcli connection import type wireguard file <path-to-config-file>

    Replace <path-to-config-file> with the path to your downloaded .conf file.

  2. Verify that the connection was imported successfully:

    nmcli connection show

The imported WireGuard connection should appear in the list.

Connect to the VPN

  1. Activate the imported WireGuard connection:

    nmcli connection up "<connection-name>"

    Replace <connection-name> with the name of the imported connection.

  2. Verify that the connection is active:

    nmcli connection show --active
  3. Check the WireGuard connection status:

    sudo wg show

If the connection is established and traffic has been exchanged, the output displays the latest handshake and transfer statistics.

To disconnect, run:

nmcli connection down "<connection-name>"

Replace <connection-name> with the name of the imported connection.

Configure WireGuard on macOS or Windows

After downloading your WireGuard configuration file from the Customer Portal, import it into the WireGuard application to establish a VPN connection.

Import the WireGuard configuration

  1. In the WireGuard application, click Import tunnel(s) from file
  2. Select the .conf file downloaded from the Customer Portal
  3. Confirm the import and approve any system permissions if prompted

Connect to the VPN

  1. Select the imported tunnel and click Activate
  2. Wait until the tunnel status changes to Active

To disconnect, select the active tunnel and click Deactivate.

Access the OOB interface

After activating the WireGuard tunnel, verify the VPN connection by accessing your server's OOB management interface.

To access the OOB management interface:

  1. In the Customer Portal, navigate to Enterprise Bare Metal and select your server
  2. Scroll to the OOB section and click Credentials
  3. Open https://<OOB_IP> in your browser, replacing <OOB_IP> with the IP address from the credentials.
  4. Sign in using the Login and Password from the OOB access credentials.

After signing in, you can manage your server through its OOB management interface.

On this page