This is an automated archive.
The original was posted on /r/wireguard by /u/umairshariff23 on 2023-12-29 18:52:56+00:00.
I have recently purchased a VPS server with the intention to create a private VPN that I can connect to during my linux iso download sessions. I was under the impression that wiregurad would drop the connection if the remote VPS goes offline and have been trying to write a bash script to pause the VM network in such a case.
Once I was done with the script and testing it, I shutdown the VPS but the connection didn't drop. All traffic out of the VM stopped, but the connection didn't drop. So all of my effort was in vain! However, this is something that I wanted to check with other users of wireguard.
Is this behaviour expected? Can I simply scrap my bash script and leave the connection on indefinitely without worrying about my IP being publicly shared during my sessions?