Skip to main content

Setup VPN

We created a VPN L2TP server on the Uniquiti ?Dream Machine? and set up the WAN FRITZ!Box 7530 for using it.
We follow this guide on Youtube Tutorial UniFi VPN hinter FritzBox einrichten UDM-Pro & Client VPN


We seperate the Setup in the FRITZ!Box, the UniFI and the client configuration.

FRITZ!Box

Under "Internet/Freigaben/Portfreigaben" we choose "Gerät für Freigaben hinzufügen".
We selected the UDM (name was ubnt) and ticked those boxes:

  • Selbstständige Portfreigaben für dieses Gerät erlauben.
  • Dieses Gerät komplett für den Internetzugriff über IPv4 freigeben (Exposed Host).

We also added a port forwarding for the port 1812 and the protocall TCP.

UniFI

In the Settings/VPN section, we added a L2TP server and created an useraccount.

Client

We set up the VPN in the Networkmanager-applet configuration programm by using the following settings. We added a L2TP VPN (if not avalable download the package) with:

  • Gateway: Public IP (or domain, if assigned)
  • user & password: credentials of user created in UniFi

We also need to set the IPsec Settings with enabled "IPsec tunnel to L2TP host" and the shared key written in the UniFi L2TP server configuration