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