Skip to content

Instantly share code, notes, and snippets.

@BenMatheja
Last active December 5, 2020 21:21
Show Gist options
  • Save BenMatheja/9876da1c4f47c2abf634b68ec32e217e to your computer and use it in GitHub Desktop.
Save BenMatheja/9876da1c4f47c2abf634b68ec32e217e to your computer and use it in GitHub Desktop.
This USG configuration Redirects DNS traffic to my pihole at .9, .10 and .11. In addition forwarded traffic is disguised so the client will not recognize that he did not hit 8.8.8.8
{
"service": {
"nat": {
"rule": {
"1": {
"description": "DNS Redirect to pihole",
"destination": {
"address": "!192.168.1.1-192.168.1.11",
"port": "53"
},
"source" : {
"address": "!192.168.1.1-192.168.1.11"
},
"inbound-interface": "eth1",
"inside-address": {
"address": "192.168.1.9-192.168.1.11",
"port": "53"
},
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment