First, prepare your Linux server* with a fresh install of Ubuntu, Debian or etc.
Use this one-liner to set up an Wireguard VPN server:
wget https://raw.githubusercontent.com/JustUnknownDude/wireguard/main/install.sh && bash install.shTo add tunnel on Android/IOS mobile phone enter the following command which will output the QR code to connect
docker exec -it wireguard /app/show-peer 1The command will display data for user peer1. Use different users for different devices
To add a profile on Windows / MacOs devices, download the configuration file /wireguard/config/peer1/peer1.conf (for peer1 user) and add a tunnel through the official client https://www.wireguard.com/install/
- Install the wireguard client
sudo su && apt install -y wireguard- Create connection config & copy the contents of the peer1.conf file into it **
nano /etc/wireguard/wg0.conf** If you have connection problems, you may need to remove the DNS = ... line from the configuration file
- Start the tunnel
wg-quick up wg0- You can check that the tunnel is running with the command
wg show