Skip to content

UnifiOS

Olivier Poitrey edited this page Apr 5, 2024 · 9 revisions

Install instructions for UDM and UXG families routers.

Install

Enable SSH:

  • Go to your unifi admin interface and select your device
    (not the controller settings, but the Dream Machine settings)
  • Click on "Settings" at the bottom of the page
  • Go to the "Advanced" section on the left pan
  • Enable SSH
  • Set a SSH password

Connect to your router using ssh root@setup.ui.com with the password you configured.

Run the following command and follow the instructions:

sh -c 'sh -c "$(curl -sL https://nextdns.io/install)"'

Note: Queries from the UDM itself won’t be routed to NextDNS nor encrypted due to current system limitation. All traffic from other devices on then network will.

Upgrade

To upgrade to the last version, simply re-run the installer above. If a new version is available, the upgrade action will added to the list of possible actions.

Uninstall

To uninstall, re-run the installer above and select "Remove" in the menu.

Troubleshooting

If the installation fail, please the installer in debug mode and contact us at team@nextdns.io with the transcript of the installation:

sh -c 'DEBUG=1 sh -c "$(curl -sL https://nextdns.io/install)"'

Content Filtering Conflict

NextDNS CLI and the UDM Content Filtering or the Ad Blocking features are incompatible. If you want to use NextDNS CLI, please make sure they are disabled.

To disable Content Filtering, go to Settings > Network, then for each network, set the Content Filtering feature to None

To disable Ad Blocking, go to Settings > Application Firewall. In the General tab, uncheck the Ad Blocking checkbox.

APT Error

If you get an apt error as follow:

E: Failed to fetch http://security.debian.org/dists/stretch/updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.70.132 80]

You may try to following:

sed -i -e 's/deb.debian.org/archive.debian.org/g' \
       -e 's|security.debian.org|archive.debian.org/|g' \
       -e '/stretch-updates/d' /etc/apt/sources.list

Clone this wiki locally