r/technitium • u/peterbata • 12d ago
Recursion
Hello all. When I select Settings / Recursion / Use Specified Network Access Control List (ACL) then enter for example: 192.168.2.0/24 I am unable to access any website. The only way that all sites are accessible is by selecting Allow Recursion instead. Would someone kindly clarify. I would appreciate it very much. Peter
1
u/peterbata 12d ago edited 12d ago
u/PacketSmeller u/MrAbzDH Thank you both for the prompt response. Much appreciated. My apologies for not providing more details: I have Technitium installed on Ubuntu 24.04.5 LTS running in Oracle Cloud Free Tier. As far as forwarding goes I have chosen Quad9 Secure (DNS-over -UDP). An earlier response (in another one of my posts) suggested that I "Lock it down to your source IPs at least.)
3
u/Naturlies 12d ago
That's probably it: the cloud. How are you accessing that DNS server? It sounds like it is on the open internet. You should consider setting up a VPN between your clients and the DNS server; my advice is Netbird. Recursion does not work because you are not connecting to the DNS server with that IP range; you are connecting through your external IP.
1
u/peterbata 12d ago edited 12d ago
I also have Tailscale installed. I access the DNS server from a Windows 10 Pro PC and have entered my DNS server’s IP address as my primary dns address in my network adapter’s IPv4 settings. I also have access to Private Internet Access VPN. If possible I would like to use Tailscale. I tried entering that PC’s Tailscale IP but that didn’t work
4
u/Kroan 12d ago
Try using the tailscale subnet in the ACL - 100.64.0.0/10
2
1
u/peterbata 12d ago
Unfortunately, entering the tailscale subnet in the ACL - 100.64.0.0/10 did not work either.
5
u/Naturlies 12d ago
Then input your Tailscale subnet or IP into that setting, then try again; if it works, yay, and if it doesn't, I hope you find a solution soon.
2
u/shreyasonline 11d ago
Your clients are reaching the DNS server on its public IP since you have configure clients to use the public IP on the server. Thus when you restrict recursion ACL to just one private subnet, the DNS server is going to refuse to answer since client request is not coming from the subnet you configured.
Since you have Tailscale, you need to ensure that the clients are configured to use the private IP range that is configured with it and that the clients can reach the DNS server over Tailscale using the private IP. You can then have the recursion ACL configured to allow the client subnet that comes from Tailscale.
0
11d ago
[deleted]
1
u/shreyasonline 11d ago
I saw your client DNS config screenshot where primary DNS was a public IP. I don't have experience using Tailscale so not sure what default IP range it uses. If its using 100.64.0.0/16 range then you need to enter it exactly in the recursion ACL. Not including the /16 will cause it to be assumed as /32 and will only allow one single IP and not the subnet.
1
u/peterbata 11d ago
Thank you for your response @shreyasonline Actually the primary DNS address is the IP of my Technitium server. Obviously I would not have entered the actual IP. I’m sure you understand
2
3
u/mystiquebsd 12d ago
You could just look in the logs when it worked..
And see what’s in there
My 0.02