WireGuard

WireGuard is an application used to create secure point-to-point, site-to-point and site-to-site connections utilizing VPN technology. It is considered an alternative to OpenVPN and aims to be fast, simple and lean.

Emerge
Install the wireguard-tools package:

For Linux kernels older than 5.6 also install the modules:

Generate keypair
Before using WireGuard a keypair has to be generated. This can be accomplished using :

Quick configuration
Configuration can be automated using, which created tunnels using configuration files in

For more information on consult man wg-quick.