matomo

Special Offer: Save $144.12 on our annual subscription

Install WireGuard on Fedora

This guide is also available in Svenska, Deutsch and Norsk

Last updated: November 8, 2021

1. Install WireGuard

If you use Fedora 30 or older, execute:

sudo dnf update
sudo dnf copr enable jdoss/wireguard
sudo dnf install wireguard-dkms wireguard-tools
sudo mkdir /etc/wireguard/

If you use Fedora 31 or newer, execute:

sudo dnf update
sudo dnf install wireguard-tools
sudo mkdir /etc/wireguard/

2. Generate the config(s) you want

Use OVPN if security is of importance

Your privacy and security is the core focus of OVPN. That's why we've implemented a multi-layered security model.

Learn more

3. Import configuration

In the terminal, execute:

4. Connect to OVPN

To connect to OVPN, type the following into the terminal:

wg-quick up {{ props.config }}

To disconnect from OVPN, type the following into the terminal:

wg-quick down {{ props.config }}

5. Verify that the connection was successful

In the terminal, execute:

curl https://www.ovpn.com/v2/api/client/ptr

You should see something like:

{"status":true,"ip":"the external ip","ptr":"PTR for the IP address"}

Troubleshooting

In case you get connected to OVPN in the WireGuard application, but don't have any internet connectivity, please read the troubleshooting article for WireGuard.

If your configuration files don't get imported, read our article about adding your private key manually in the configuration files.