I follow all of these tutorials line for line that I find on Google and it never sets up wireguard. I’m particularly looking to use wireguard to connect to protonvpn upon boot.
Could someone help me out with this? I have tried several tutorials. I even tried configuring it in network manager GUI and the “automatically connect” option was greyed out.
Terminal tutorials and Qomui don’t seem to work either.
I managed to get it working. Really smoothly, just by fixing a minor syntax error.
You’ve given almost no useful information so that people can actually help you. What OS? How exactly have you tried to get it working so far? Saying things like ‘with Network Manager GUI’ and ‘terminal tutorials’ tells us nothing. What’s going wrong, exactly? It’s very straightforward on Linux (which you didn’t say you use explicitly in the OP, but I did see in a comment - and yes, NetworkManager is available on other OS like *BSD).
Create a WireGuard config on the Proton account dashboard. Download it, and rename it to something you’ll recognise, like proton.conf.
Make sure you have the right tools with (in your case) sudo apt install -y wireguard-tools openresolv.
Move the config you downloaded to the WireGuard folder, with (eg) sudo mv ~/Downloads/proton.conf /etc/wireguard/.
Enable and start the wg service, which is named the same as your config file. For example, sudo systemctl enable --now wg-quick@proton.
Now you can check your IP and test that everything works. As always, you can see the status of the WireGuard connection with sudo wg and sudo systemctl status wg-quick@proton.
If you are using older hardware wireguard will not be an option because it will generally be slower anyway. I have and older desktop running Manjaro and openvpn works very well on it.
No need to install openresolv, since you can just use systemd-resolved (the default) and setup a local symlink /usr/local/bin/resolvconf -> /usr/bin/resolvectl to ensure DNS stuff is set properly in wg-quick.
Thanks for the addition. I avoid systemd where possible, preferring *BSD and Linux with other init systems, so I didn’t know that. Regardless, the OP should be set now!