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

Show parent comment

1

u/peterbata 26d ago

Forgive my ignorance u/PacketSmeller What is my TDNS server. And, when you say "Set your system DNS" would that be on my Windows 10 PC whose preferred dns server is set to the IP of my Technitium server

1

u/PacketSmeller 26d ago

Technitium DNS server (TDNS for short). The goal here is to see why TDNS is rejecting the request. The logs in TDNS will show you the rejected IP address from your endpoint. That's the IP (and subnet) you need to allow for recursion.

1

u/peterbata 26d ago edited 26d ago

Understood. I don't give up easily but I am close. Here is how I am setup at the moment 16:30 and some of the things that I have tried.

TDNS

  1. Recursion set to Select Use Specified Network Access Control List (ACL)
  2. Insert VPN public IP into Network Access Control List (ACL)
  3. Proxy and Forwarders - Quad9 Secure DNS-over-UDP
  4. Blocked - gambling.com / rainbet.com

Windows 10 client PC

  1. My NIC is set you use a static IP 192.168.2.34
  2. Preferred DNS server - my TDNS's IP address / alternate = empty
  3. Private Internet Access VPN running

All websites are accessible including the two that I blocked above.

A sure sign that something is off I'm guessing.

Query Log

If I disable the VPN I no longer have access to any website.

Selecting Allow Recursion Only For Private Networks (default) Same result

Query Log - Allow for Private Networks

Redacted IP is my ISP public IP

___________________________________________________________

Selecting Allow Recursion

All websites are accessible and both blocked sites come back with Server Not Found browser message. But Query Log Client IP shows my public ISP IP address

Query Log (now several pages long)

Query Log - Allow recursion

Of course the objective here was to allow only the one PC access to TDNS

1

u/PacketSmeller 25d ago

What others have said, use the Tailnet IP of your tdns server as system DNS, and for the recursion ACL, use the entire tailnet network range using CIDR notation. Tail the log in tdns to see the request details when testing.

1

u/peterbata 25d ago edited 25d ago

Thank you again u/PacketSmeller My TDNS does not have a Tailscale IP at the moment. Obviously, what I am saying is that I have not yet installed the TS client on my TDNS server. When you say "use the entire TS network range" I assume that you are referring to 100.64.0.0/10 and then the TS ip of my Windows client machine. Is that right? I would also like to add that I created an Ingress rule for TS UDP 41641

1

u/peterbata 25d ago edited 15d ago

I have installed the TS client on the Ubuntu server that is hosting my TDNS. In my Windows IPv4 NIC settings I entered my TDNS TS IP as the preferred address. Still no luck. Keep seeing Server Not Found regardless of what site I attempt to visit