Skip to content

Instantly share code, notes, and snippets.

@korkmazk
korkmazk / UniFi USG DNS Redirect Setup.md
Last active January 5, 2022 13:00 — forked from terafin/UniFi USG DNS Redirect Setup.md
UniFi USG DNS Redirect Setup
  1. Log into unifi controller web UI
  2. Go to Settings
  3. Search for "Firewall" and click on ""Add New Firewall Group
  4. Enter all your DNS servers here you want to be allowed on the local LAN (Eg, mine is 10.0.1.1 - gateway, 10.0.1.14 - pi-hole)
  5. Name this "Allowed DNS Servers"
  6. Hit OK
  7. SSH into the Gateway - NOT the CloudKey (username/password is whatever you set up)
  8. do this: 'mca-ctrl -t dump-cfg > config.txt'
  9. edit the new file, config.txt 'vi config.txt'
  10. Look for something that has the description field: "description": "customized-Allowed DNS Servers"