Skip to content

Commit

Permalink
Create force-dns-to-pihole
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejenkins committed Jan 18, 2019
1 parent 7aafc60 commit 34b4302
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions config.gateway.json/force-dns-to-pihole
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"_comment1": "Replace 'eth0' with your USG's LAN interface and '192.168.0.105' with your Pi-hole's IP address",
"service": {
"nat": {
"rule": {
"1": {
"description": "Redirect DNS requests",
"destination": {
"port": "53"
},
"inbound-interface": "eth0",
"inside-address": {
"address": "192.168.0.105",
"port": "53"
},
"source": {
"address": "!192.168.0.105"
},
"log": "disable",
"protocol": "udp",
"type": "destination"
},
"6000": {
"description": "MASQ DNS requests to LAN",
"destination": {
"address": "192.168.0.105",
"port": "53"
},
"log": "disable",
"outbound-interface": "eth0",
"protocol": "udp",
"type": "masquerade"
}
}
}
}
}

0 comments on commit 34b4302

Please sign in to comment.