From 1fcfc8025406e7544811ac3da299e94aba44b0eb Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 27 Jun 2021 09:23:46 -0500 Subject: [PATCH] r/protonvpn: watchdog: Also watch for EAP/FAIL Occasionally, ProtonVPN servers randomly reject the EAP authentication credentials. When this happens, the tunnel fails and is not restarted automatically by strongSwan. As such, the watchdog needs to react to this event as well. --- roles/protonvpn/files/protonvpn-watchdog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/protonvpn/files/protonvpn-watchdog.py b/roles/protonvpn/files/protonvpn-watchdog.py index fec97ad..eee6ba4 100644 --- a/roles/protonvpn/files/protonvpn-watchdog.py +++ b/roles/protonvpn/files/protonvpn-watchdog.py @@ -186,7 +186,7 @@ class AsyncDaemon(BaseAsyncDaemon): if not isinstance(message, str): log.debug('Invalid message: %r', message) return - if message.startswith('giving up'): + if message.startswith('giving up') or 'EAP/FAIL' in message: log.error('VPN tunnel failed!') await self.reconfigure()