I used OpenWRT and Ubiquiti stuffs in the past, but now know I have no idea about networks xD.
I have a Pi-Hole server at home. I want to filter any DNS requet to external DNS servers and redirect them to Pi-Hole.
In the past I used this "simple" rule on my Ubiquiti's device:
Code: Select all
{
"service": {
"nat": {
"rule": {
"1": {
"description": "DNS Redirect",
"destination": {
"address": "!10.0.0.3",
"port": "53"
},
"inbound-interface": "eth1",
"log": "disable",
"protocol": "tcp_udp",
"type": "destination"
}
}
}
}
}
Now I'm trying to translate that to a NAT rule via WinBox with no success: All request (except that made with drill) doesn't work, ie: firefox or ping tools fails to load pages or resolve domains to ping.
Code: Select all
chain=dstnat action=dst-nat to-addresses=10.0.0.3 to-ports=53 protocol=udp src-address=!10.0.0.3 dst-address=0.0.0.0/0 in-interface-list=LAN dst-port=53 log=no log-prefix=""
My network diagram:
hEX @ 10.0.0.1
Pi-Hole @ 10.0.0.3
Any idea what I'm doing wrong?
Thanks!