Set Up Wireguard on Linux
Debian/Ubuntu
-
Run this commands in the terminal:
sudo apt update
sudo apt install wireguard
-
Download .conf file from MyVPN.Host and save in this path:
/etc/wireguard/wg0-client.conf
or copy configuration content and paste in wg0-client.conf. -
Run wireguard:
wg-quick up wg0-client
- That's all!
-
You can stop wireguard via:
wg-quick down wg0-client
Or you can control the service through systemd:systemctl restart wg-quick@wg0-client.service