Score:1

OpenVPN restart systemd service if TLS error occured

na flag

I have a systemctl service which starts openvpn command with given config file.
openvpn *filename*
But if somebody uses same certificate to open VPN from another device - service logs TLS errors and VPN stops working. But the service doesn't stop and restart after that. It continues to work even through VPN doesn't.
How can I manage the service to restart after the error occured? Thanks in advance.

vidarlo avatar
ar flag
Why share certificates between systems? I would start by fixing that.
Dmitry avatar
na flag
@vidarlo I want to have guarantees that if this will happen - VPN will be reloaded automatically.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.