Change piavpn.service for whatever name you would like your startup OpenVPN connection service to have.
cd /etc/systemd/system/
sudo touch piavpn.service
sudo chmod 644 piavpn.service
Type sudo nano piavpn.service and put the following content (make sure to adapt the line starting with ExecStart to match your configuration):
[Unit]
Description=Private Internet Access VPN (Swiss)
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/sbin/openvpn --config /etc/openvpn/PIA/Switzerland.ovpn
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable piavpn.service
sudo reboot
After the reboot your OpenVPN connection should be set up automatically on boot.
When you subscribe to the blog, we will send you an e-mail when there are new updates on the site so you wouldn't miss them.
Просто делюсь интересными на мой взгляд событиями и статьями.