UniFi Cloud Gateway Ultra - Let NextDNS overwrite VPN Client DNS?
Hey everyone,
I am using a wireguard VPN client on my UCG Ultra. Together with this I am running the NextDNS CLI.
My intention was to have the VPN running for privacy & let NextDNS filter everything.
I can’t seem to figure out how to get NextDNS to overwrite the DNS provided by the VPN. Was hoping I could get some help here •ᴗ•
Thanks for your time in advance!
9 replies
-
Did you ever find a solution to this? I have the exact same issue - with no VPN NextDNS CLI works perfectly but as soon as a VPN client is configured I loose NextDNS. I tried updating the DNS settings in the Wireguard config but that made no difference. I also tried removing the DNS settings completely from the Wireguard config but the Unifi interface fails to validate the Wireguard config in this case. Would love to get these working together.
-
It looks like there is a hardcoded DNS, below is a snippet from udapi json file.
See here for more explanation on the udapi server and json file.
"vpn/wireguard/clients": [ { "dnsServers": [ "8.8.8.8" ],
-
wirrguaed allowes to include custom dns replace the DNS that pre configured with DNS IP V4/V6 of Nextdns as shown in my.nextdns.io and allow ddns client to link your IP .
-
Replace the dns in the wireguard config before you upload the file to UniFi . Make sure you use the correct next loud address so it reflects in Nexdns
-
To clarify, I have replace the DNS config in the wireguard config file before uploading to Unifi. No matter what DNS settings I put in this file, they are ignored and whenever the VPN connection is active the DNS will revert to the VPN providers own default DNS servers.
-
Let’s think about this, are you setting up a vpn client for the ucg to connect to? Or are you setting up a wireguard vpn server on ucg for your phone to connect to.
two very different things -
Two Scenerios
VPN on Device directly
VPN on connected shared Device
if first than just by configuring your VPN wireguard config file DNS will solve it .
if You wanted to Share The VPN with lot more other device inside the network than you have to create a Proxy .
Read Any documents where You can find Proxy to share internet through single user VPN connection
Content aside
-
1
Likes
- 1 mth agoLast active
- 9Replies
- 393Views
-
5
Following