Hi is it possible to set up Wireguard to connect to a random VPN server automatically every time an Internet connection is established? I’m looking to do this on Proton

I’m looking to do this in the latest Ubuntu. I have looked and there doesn’t seem to be a tutorial on how. I’m thinking if I download all Wireguard configuration files from Proton’s website this should be doable.

The idea is to recreate autoconnect.

Thanks.

I think I saw something like this on this subreddit. May you search

Do you mean this?

They only explain how to set a single wireguard connection with a systemd service. If you want to set up multiple servers and have it choose one at random, you will need to write some bash/python/whatever script that does that.