Pi Hole

Posted on April 10th, 2020

test

{
   "service":{
      "nat":{
         "rule":{
            "1":{
               "description":"DNS Redirect",
               "destination":{
                  "port":"53"
               },
               "inbound-interface":"eth1",
               "inside-address":{
                  "address":"192.168.1.160",
                  "port":"53"
               },
               "source":{
                  "address":"!192.168.1.160"
               },
               "log":"disable",
               "protocol":"tcp_udp",
               "type":"destination"
            },
            "6000":{
               "description":"Translate DNS to Internal",
               "destination":{
                  "address":"192.168.1.160",
                  "port":"53"
               },
               "log":"disable",
               "outbound-interface":"eth1",
               "protocol":"tcp_udp",
               "type":"masquerade"
            }
         }
      }
   }
}

https://help.ubnt.com/hc/en-us/articles/215458888-UniFi-USG-Advanced-Configuration

https://community.ui.com/questions/Force-DNS-using-Pihole-with-USG/56888c7b-417d-4081-a42b-e7203629b4a1