1.1 KiB
1.1 KiB
Wireguard VPN
Basic configuration
Create config files
cp examples/server/wg0.conf.dist config/wg0.conf
You can edit configuration according to your needs.
Generate keys
Don't forget to set public and private keys for the server and client!
To get the keys you can use genkeys
command:
docker-compose run wireguard genkeys
Output example:
Private Key: aAaAAaaaAAaa+AAaAaAaAA1aa/aaAA1aaaaAa1aaaA1=
Public Key: /11a1aAaA1a/AAa11AAaa1AAa/AaAA1a1aaa11/AaAa=
Not you can use these keys in your configuration file.
Additional requirements
Kernel module
You need to be sure that Wireguard kernel module is installed on the host system.
Ubuntu / Debian
For kernel versions older than 5.6:
apt-get install -y --no-install-recommends wireguard-dkms
See also
You can also check Docker image instructions here.