Skip to main content

All Questions

Tagged with
1 vote
0 answers
4k views

Run a simple ExecStartPost in a forking systemd service

I have a systemd service that sets up my openvpn tunnel. I also have a bash script that forwards a port for said tunnel. I want to have the script run after openvpn starts and I have been able to do ...
B-plow's user avatar
  • 11
1 vote
0 answers
952 views

Systemd: start/stop service based on networking connectivity

I've been using a VPN heavily recently and would like openvpn to intuitively connect and disconnect based on whether I'm connected to Wi-Fi (or ethernet). Currently, I have a client.conf in /etc/...
user322541's user avatar
3 votes
4 answers
9k views

Remove redundant openvpn config service from Systemd

I used to have a config for openvpn. After upgrading to 18.04 it started behaving differently in relation to systemd, my syslog gets continuously spammed with connection attempts: ovpn-login[5191]: ...
bcmcfc's user avatar
  • 143
1 vote
1 answer
2k views

OpenVPN systemd timeout error but works

I have a file /lib/systemd/system/openvpn.service with those settings : [Unit] Description=OpenVPN client After=network.target [Service] Type=forking PIDFile=/var/run/openvpn/%i.pid ExecStart=/usr/...
Freedo's user avatar
  • 1,285
3 votes
0 answers
509 views

systemd and OpenVPN woes after an Ubuntu upgrade

After updating a VM from Ubuntu Server 14.04 LTS to 16.04 LTS OpenVPN stopped working and I would appreciate help understanding why. Using systemctl status I could see that OpenVPN could not create ...
Krister Renaud's user avatar
2 votes
1 answer
2k views

Starting additional OpenVPN connection under systemd

I have a couple of OpenVPN connections to various servers that are autostarted when I log into my laptop. Other connections, to production servers, have to be set up manually. Until recently I ran ...
Confusion's user avatar
  • 131
2 votes
1 answer
9k views

How to start 2FA-using OpenVPN with systemd?

I have openvpn config that users 2 factor authentication. If I start it manually, by running: /usr/sbin/openvpn --writepid /run/whatever --cd /etc/openvpn/ --config /etc/openvpn/work.conf it asks ...
user70436's user avatar