Set Up Wireguard on Linux

Debian/Ubuntu

  1. Run this commands in the terminal: sudo apt update sudo apt install wireguard
  2. 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.
  3. Run wireguard: wg-quick up wg0-client
  4. That's all!
  5. 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