Dynamic DNS (dyndns) with Namecheap on Unifi Security Gateway Pro 4

Home network users commonly deal with dynamic IP addresses that change unpredictably. This can be troublesome when using a VPN, as the IP can change at any time. Dynamic DNS solves this by running a daemon that updates DNS records whenever the IP address changes, creating the illusion of a static address. Namecheap Configuration Log in to your Namecheap account Select “Manage” for your desired domain Navigate to Advanced DNS Activate the Dynamic DNS service and save the password Add an A+Dynamic DNS Record type Use @ for naked domains or specify a subdomain Set 127.0.0.1 as the initial IP address (the daemon will replace this) Save changes USG Controller Configuration Log in to the USG controller Go to Settings > Services > Dynamic DNS Click “Create new dynamic DNS” Enter these details: WAN Interface: Select your active WAN interface Service: Choose Namecheap Hostname: Use @ or your configured subdomain Username: Your domain name Password: The Dynamic DNS service password from Namecheap Server: dynamicdns.park-your-domain.com Click Save That’s it — the daemon will now keep your DNS record updated whenever your public IP changes.

March 27, 2020 · 1 min · 183 words · Ilari

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. ...

March 23, 2020 · 4 min · 649 words · Ilari