Setup Wireguard VPN on Docker

In this tutorial, I will demonstrate how to setup a Secure VPN using Wireguard on Docker using docker-compose and then we will use a Windows PC to connect to our Wireguard VPN using the Wireguard Client to access our Private Network in a secure way. Wireguard Configuration The following configurations should be changed, depending on your setup: TZ - timezone SERVERURL - this will be set where your client will connect to SERVERPORT - this will be set in your client config (the listen port is hardcoded to 51820) PEERDNS - this is the dns server that will be set in the client config (I use PiHole for DNS to block ads) PEERS - this is used to create configs for your clients INTERNAL_SUBNET - this is optional, but this is the subnet the connected clients will use Start the Wireguard Server The content of our docker-compose....

June 8, 2021 Β· 3 min Β· Ruan Bekker