Script managing WireGuard ProtonVPN for Linux using CLI only
I've put together a POSIX shell script allowing you to use ProtonVPN in Linux using only the native wireguard and Linux core utils having the script managing all aspects of the network such as routing and which DNS server to use when the VPN is up or not.
It works very well for me so I brushed it up with more thorough error handling, documentation and examples in case more people have an interest in it.
Basically it allows you to generate any number of protonvpn-wg-configurations you like and put them in your /etc/wireguard folder, the script selects up one of them based on certain criterias you decide (it can for example automatically determine the peer with lowest latency to you) and brings up the VPN fixing DNS (if you wish) and routing, cleaning everything up when the VPN is brought down.
I've written it with network managers in mind and am using it with ifupdown in Debian.
I've put it github for download:
https://github.com/fraxflax/proton-wg
Feel free to use, modify and distribute as you like.
Proton is welcome to put it on their pages if they like.