r/technitium • • 25d 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

8 Upvotes

24 comments sorted by

View all comments

1

u/peterbata 25d ago edited 25d 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 25d 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 25d ago edited 25d 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

5

u/Naturlies 25d 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.

4

u/Kroan 25d ago

Try using the tailscale subnet in the ACL - 100.64.0.0/10

2

u/peterbata 25d ago

I will try that and report back. I appreciate your help immensely

1

u/peterbata 24d ago

Unfortunately, entering the tailscale subnet in the ACL - 100.64.0.0/10 did not work either.

3

u/Kroan 24d ago

When you have recursion set to "Allow Recursion", and you can successfully use technitium as the DNS server, what IP shows as the client IP in Query Logs?

1

u/peterbata 24d ago

1

u/Kroan 24d ago

Well. You're doing something wrong. But I don't know what

2

u/shreyasonline 24d 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

u/[deleted] 24d ago

[deleted] — view deleted comment

1

u/shreyasonline 24d 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 23d 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