Someone knows the formatting to add these lines in config.gateway.json (for my Ubiquiti USG)
I thought it was something as service dns (forwarding?) options
Now my DHCP hands out my 2 pihole's as DNS, but if I wanted to use it with ECS/EDNS0 I will set the upstream DNS of the router to my 2 pihole's and set dhcp back to auto so that my router handles local dns resoluatin. To prevent hard coded dns I had the following lines in my config.gateway.json:
"nat": {
"rule": {
"1": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth1.10",
"inside-address": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"source": {
"address": "!10.10.50.40-10.10.50.41"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
},
"2": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth1.20",
"inside-address": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"source": {
"address": "!10.10.50.40-10.10.50.41"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
},
"3": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth1.30",
"inside-address": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"source": {
"address": "!10.10.50.40-10.10.50.41"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
},
"4": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth1.50",
"inside-address": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"source": {
"address": "!10.10.50.40-10.10.50.41"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
},
"5": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth1.90",
"inside-address": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"source": {
"address": "!10.10.50.40-10.10.50.41"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
},
"6000": {
"description": "MASQ DNS requests to LAN",
"destination": {
"address": "10.10.50.40-10.10.50.41",
"port": "53"
},
"log": "disable",
"outbound-interface": "eth1",
"protocol": "tcp_udp",
"type": "masquerade"
}
}
}
}
}
Will these continue to work? Or will I need to edit them?