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
- Login to the device and run terminal.
- 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
- for Ubuntu:
- Install wireguard-quick that helps to managed configuration files.
- Log in to the Acreto Portal.
- Open your Ecosystem.
- From the left menu choose Objects > Gateways and search for previously created Wireguard Gateway.
- Click on the name of created Gateway object to see its details.
- Click Generate new private and public key and confirm with yes
- Click on “Download configuration” (1) button, and then onthe downloaded file to the es** link (2)
- Transfer downloaded file to Ubuntu machine.
- Using terminal rename the file to
wg0.conf
orwgnet0.conf
. - Import configuration using
wg-quick
:wg-quick up /path/to/wgnet0.conf
- 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.