Site icon eKiwi-Blog.de

FritzBox: Set up WireGuard VPN in Linux

How to set up WireGuard with the FritzBox under Linux.

My new Linux laptop must of course also have the option of accessing the home network on the move using VPN. So in addition to Tailscale, Wireguard is now to be set up.

Creating a WireGuard connection in Fritz!Box

First we create the connection in the Fritzbox. We can do this under Shares – VPN (WireGuard).

We connect a new single unit, assign a name and confirm the new connection. At the end we are given the option to download the configuration file. We do this, of course.

Setting up in Linux

Now let’s move on to Linux. First we install WireGuard:

sudo apt install wireguard resolvconf

Make a wireguard connection

We can copy the configuration file to the “/etc/wireguard/” folder, but any other location will do. We establish the connection with the following command.

sudo wg-quick up /etc/wireguard/wg0-client-01.conf

Here I had another specific error message:

wg-quick: The config file must be a valid interface name, followed by .conf

The message is a bit misleading. My problem was that the file name, without .conf, was longer than 16 characters. After I changed this, the connection was established.

Check the status of the connection

The following command can be used to check the connection status.

sudo wg show

Disconnect

To disconnect, we use the following command:

wg-quick down /etc/wireguard/wg0-client-01.conf

Graphical user interface

If you don’t want to fiddle around on the command line, you can check out the “Wireguird” software. The .deb file is available here for download.

Here we can import the configuration file and then connect at the click of a button. In principle, just like under Windows.

Conclusion

Easier than expected! Works!

SaleBestseller No. 1
FRITZ!Box 7530 AX WI-FI 6 DSL-Router (DSL/VDSL,1.800 MBit/s (5GHz)&600...
  • WI-FI 6 DSL-Router (WLAN AX) bis 1.800 MBit/s (5 GHz) und 600 MBit/s (2,4 GHz) gleichzeitig,...
  • Internet-Geschwindigkeit von bis zu 300 MBit/s durch VDSL-Supervectoring 35b, WLAN-Mesh:...
  • VoIP-Telefonanlage mit bis zu 5 integrierten Anrufbeantwortern und Faxfunktion, integrierte...
SaleBestseller No. 2
FRITZ!Box 7690 (Wi-Fi 7 DSL-Router mit 5.760 MBit/s (5GHz) & 1.376 MBit/s...
  • Für die Verbindung zum Internet mit Geschwindigkeiten von bis zu 300 MBit/s steht ein integriertes...
  • Leistungsstarke WLAN-Mesh Zentrale: automatische Zusammenlegung eingesetzter FRITZ!-Produkte zu...
  • Integrierter Mediaserver (USB, NAS) zur Bereitstellung von Filmen, Musik & Bildern im Heimnetz sowie...
Bestseller No. 3
FRITZ!Box 7590 AX Exclusive Edition (Wi-Fi 6 DSL-Router 2.400 MBit/s (5GHz)...
  • Innovatives Dualband 4x4-Wi-Fi 6 (WLAN AX) mit 2.400 MBit/s (5 GHz) + 1.200 MBit/s (2,4 GHz) für...
  • DSL-Router: Internet-Geschwindigkeit von bis zu 300 MBit/s durch zukunftssicheres...
  • Edition Amazon Exclusive: Inklusive SanDisk Ultra Luxe USB 3.2 Gen 1 Flash-Laufwerk mit...
Exit mobile version