![]() ![]() However a more robust option that will work for all devices is to use an stubby as an upstream client for the pi. I fixed this on my phone by using Tasker to disable Private DNS when I'm at home. ![]() DoT) will not respect the redirection rules. TL DR: Devices that use DNS over TLS (i.e. I finally got it working! See the detail in this comment. what does "$(nvram get lan_ipaddr)" mean? What does this tell the router to do?)Īnother thought I had was to redirect all DNS from 192.168.0.3 - 192.168.0.238 and for 192.168.0.240 - 192.168.0.254 however I have not been able to determine how to craft the commands to make this a reality.Įdit: After many hours of expletive ridden testing, bashing the desk, forum trawling and despair. I have also tried the access restrictions approach without success, the full gory details of all my failed attempts can be read over on /r/pihole here.Ĭan anyone point out any mistakes in these commands and help me to understand what these commands are/what they do specifically (i.e. If I could understand these commands better I think I would be able to find a way through. I attempted to resolve this with this command from this thread: However I want to re-route the requests to an internal server at 192.168.0.239 which leads to a loop:ĭNS request captured > Sent to Pi > Pi attempts to query OpenDNS > DNS request captured > Sent to pi etc etc. I know this command can be used to route traffic to external DNS servers like so: I understand this to mean "route all traffic on interface br0 to here", however I have no idea what "$(nvram get lan_ipaddr) " means. Iptables -t nat -A PREROUTING -i br0 -p udp -dport 53 -j DNAT -to $(nvram get lan_ipaddr) iptables -t nat -A PREROUTING -i br0 -p tcp -dport 53 -j DNAT -to $(nvram get lan_ipaddr) ![]() I think the key lies in understanding the commands given on this wiki page, specifically: I am attempting to intercept DNS requests and re-route them to my pi-hole and I am not having very much success. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |