WireGuard on Linux

About WireGuard

WireGuard is a modern VPN protocol that aims to be faster, more secure, and more useful than older solutions like OpenVPN or IPsec.

How To

Prerequisites

This article is a continuation of Wireguard Configuration article. Please ensure that you finish all steps described in this article.

Configuration on Linux

  1. Login to the device and run terminal.
  2. Using package manager install WireGuard client:
    • for Ubuntu: $ sudo apt install wireguard
    • for Debian: apt install wireguard
    • for others Unix based systems check official documentation
  3. Install wireguard-quick that helps to managed configuration files.
  4. Log in to the Acreto Portal.
  5. Open your Ecosystem.
  6. From the left menu choose Objects > Gateways and search for previously created Wireguard Gateway.
  7. Click on the name of created Gateway object to see its details.
  8. Click Generate new private and public key and confirm with yes
  9. Click on “Download configuration” (1) button, and then onthe downloaded file to the es** link (2)
  10. Transfer downloaded file to Ubuntu machine.
  11. Using terminal rename the file to wg0.conf or wgnet0.conf.
  12. Import configuration using wg-quick: wg-quick up /path/to/wgnet0.conf
  13. Check connection status by typing wg show.

At this point, the machine is connected to Acreto Ecosystem by the WireGuard gateway. You may confirm that by checking logs available in Acreto Portal > Logs > Gateways.

See also