You are not logged in.
When my laptop goes to sleep, networkmanager suspends, then when it awakes I have to disconnect and reconnect the vpn it which is quite annoying. I use amneziavpn self hosted with xray protocol and also claude code failed several attempts at providing a fix.
Offline
It depends on the chosen VPN in Amnezia.
OpenVPN depends on an cryptographic context held alive by client and server via startup and (normally) hourly restarts ("ping-restart"). After a suspend/resume event the VPN application has to issue a "ping-restart" to reestablish the context. In my case (nm-openvpn) it tries to do that 3 seconds before the underlying network connection is up and subsequently fails.
WireGuard "only" sets up a local WireGuard interface and doesn't rely an any pre-connection traffic. It works after suspend/resume like nothing happened.
Offline
It depends on the chosen VPN in Amnezia.
OpenVPN depends on an cryptographic context held alive by client and server via startup and (normally) hourly restarts ("ping-restart"). After a suspend/resume event the VPN application has to issue a "ping-restart" to reestablish the context. In my case (nm-openvpn) it tries to do that 3 seconds before the underlying network connection is up and subsequently fails.
WireGuard "only" sets up a local WireGuard interface and doesn't rely an any pre-connection traffic. It works after suspend/resume like nothing happened.
I use Xray
Offline
I missed that in your first post - X-Ray is OpenVPN via TCP/HTTPS looking like a legitimate HTTPS request. So the Amnezia App has to issue a "ping-restart".
Offline