docker-stacks/wireguard
Alexey Skobkin 7fecc9b707
Adding Wireguard prototype.
2020-07-26 23:03:17 +03:00
..
config Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00
examples Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00
.env.dist Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00
.gitignore Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00
README.md Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00
docker-compose.yml Adding Wireguard prototype. 2020-07-26 23:03:17 +03:00

README.md

Wireguard VPN

Wireguard Logo

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.