Автозагрузка Openvpn systemd linux


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):

Description=Private Internet Access VPN (Swiss)

ExecStart=/usr/sbin/openvpn --config /etc/openvpn/PIA/Switzerland.ovpn


sudo systemctl daemon-reload
sudo systemctl enable piavpn.service
sudo reboot

After the reboot your OpenVPN connection should be set up automatically on boot.

Stay Informed

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.

PostgreSQL 10 — Потоковая репликация с отработкой ...
Проброс портов в виртуальную машину KVM