WireGuard Connector Tunnel

Prerequisites

A Linux machine with these specifications:

  • Kernel: Any of these packages installed:

    • Ubuntu (Server/Desktop) 16.04 LTS, 18.04 LTS, 20.04 LTS, 22.04 LTS, 23.04

    • CentOS 7, or CentOS 8

    • REHL 7, REHL 8, or REHL 9 (RedHat distributions)

  • Packages installed:

    • Ubuntu - curl; dig; software-properties-common

    • CentOS - curl, bind-utils

  • 20 GB free disk space

  • 2 GB RAM

  • Static internal IP address

  • Network adapter that supports bridge connection

    Note - For Linux deployed on a Windows host, enable virtualization on Windows BIOS.

Configuring a WireGuard Connector Tunnel

Configuring the Connector in the Harmony SASE Administrator Portal

  1. Access the Harmony SASE Administrator Portal and click Networks.

  2. Select the network.

  3. For the gateway to which you want to add the WireGuard Connector tunnel, click and click Add Tunnel.

    The Choose Tunnel Protocol window appears.

  4. Select WireGuard Connector and click Continue.

    The Harmony SASE Connector window appears.

  5. In the Requirements section, read the requirements and make sure they are met. Click Next.

  6. In the Configuration section, enter these:

    1. Name - Name for the connector.

    2. Endpoint - IP address of the Linux server that has the WireGuard Connector installed.

      If you are using a dynamic public IP address, enter 0.0.0.0

      Note - If you do not know the IP address, query the server by running this command in your Linux terminal:

      dig +short myip.opendns.com @resolver1.opendns.com

    3. Subnets - Subnets of your local network.

    4. Click Next.

  7. In the Confirm section, click Apply.

    After deployment, the connector appears in the Networks page.

Installing the WireGuard Connector on a Linux Server

  1. Access the Harmony SASE Administrator Portal and click Networks.

  2. Click for the WireGuard Connector tunnel that you just configured and then click Configuration.

    The Linux Connector window appears.

  3. Click Copy Command.

    Note - The command is unique to each connector.

  4. Open the Linux terminal and connect as Root user.

  5. Run the copied command.

  6. Select Yes at Stage 4 for access or mode - Remote Access only and follow the instructions to install the connector.

Verifying the Setup

  1. Connect to your network using the Harmony SASE Agent on a device.

  2. Open the command line and run:

    ping <Internal resource IP address>

  3. If the command fails, make sure that port UDP/8000 is not blocked in your firewall/router, and that you have followed all the steps.

  4. If the issue persists, on the Linux server, collect these logs and contact Check Point Support. The logs are available in:

    Copy
    ##Configuration file
    /etc/wireguard/wg0.conf

    ##Connection logs
    /tmp/p81-wg-connector.log

Removing the WireGuard Connector

Connect to the command line of Linux server where you have installed the WireGuard Connector and run:

Copy
# Locate the WireGuard packages # (the output of this command will show you all wireguard packages installed on the machine)
dpkg -l | grep wireguard

# Delete all packages found that are associated with WireGuard
# (Run this command for each package found, replace  with the output from the previous command)
apt-get remove --purge # Locate the WireGuard packages # (the output of this command will show you all wireguard packages installed on the machine)
dpkg -l | grep wireguard
Copy
# Locate the WireGuard packages # (the output of this command will show you all wireguard packages installed on the machine)
yum list installed | grep wireguard

# Delete all packages found that are associated with WireGuard# (Run this command for each package found, replace  with the output from the previous command)
yum remove # Locate the WireGuard packages # (the output of this command will show you all wireguard packages installed on the machine)
yum list installed | grep wireguard