ho-ansible / wireguard

Ansible role: WireGuard VPN
MIT License
0 stars 0 forks source link

OpenVZ #4

Open seanho00 opened 4 years ago

seanho00 commented 4 years ago

May need to pre-compile wireguard-go and copy binary to host.

seanho00 commented 4 years ago

To compile (only needed on one host):

debian pkg golang-go has the compiler, linker, and precompiled stdlib, probably enough to compile wireguard-go. The metapackage golang also pulls in docs and src files.

Download latest src release of wireguard-go: https://git.zx2c4.com/wireguard-go/refs/tags

Adjust PreallocatedBuffersPerPool if desired, to limit RAM usage.

Add WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1 to an *.env file for systemd-networkd, or an Environment= entry in the systemd service drop-in.

Hope that systemd-networkd knows to use the wg binary.

Thanks to Daniel