Connect to VPN using Wireguard

VPN Wireguard

Connect to VPN on startup

Tutorial for Linux (Ubuntu)

  1. Install Wireguard sudo apt-get wireguard
  2. Download .conf VPN configuration file from your provider
  3. Put this file inside /etc/wireguard
  4. Create a script responsible for connection and save it to your local disk
    sudo wg-quick up <name>
    
    where name is a name of the file inside /etc/wireguard (without .conf extension)
  5. To run this script on startup type in terminal: sudo crontab -e
  6. At the bottom of the opened file add @reboot <your/script/path>

References