WireGuard with Unifi Security Gateway Pro 4
As part of my home network I have setup VPN connectivity so that I can access my stuff also when I’m not at home. Unifi Security Gateway offers PPTP and L2TP VPN servers out of the box but there are better alternatives available like WireGuard and OpenVPN. As with everything I wanted to learn new stuff so I chose WireGuard for this task. “WireGuard is an extremely simple yet fast and modern VPN” that “aims to be as easy to configure and deploy as SSH.” A VPN connection is made simply by exchanging very simple public keys — exactly like exchanging SSH keys — and all the rest is transparently handled by WireGuard. Unfortunately the information on how to get WireGuard up & running and make the installation persistent after USG upgrades could not be found from one single place. This is why I decided to gather the data under this one post. ...