[SPLIT] Close But Cannot get Stubby Working

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
stillaround2024
DD-WRT Novice


Joined: 25 Jan 2024
Posts: 22

PostPosted: Mon Mar 18, 2024 17:40    Post subject: [SPLIT] Close But Cannot get Stubby Working Reply with quote
Router PITA - RT-AC68U C1 & A1 (using C1 with working usb) fw ver r55109.

Installed entware using this howto https://github.com/Lanchon/ddwrt-secure-entware. Entware installed ok but stubby would only work on port 53 in tcpdump. Wiped /opt and started over 3 times. The last entare errored out on install so I opted to use the http site for entware install.

Currently stubby will only work with this default config.
--------
# Note: by default on OpenWRT stubby configuration is handled via
# the UCI system and the file /etc/config/stubby. If you want to
# use this file to configure stubby, then set "option manual '1'"
# in /etc/config/stubby.
resolution_type: GETDNS_RESOLUTION_STUB
round_robin_upstreams: 1
appdata_dir: "/opt/var/lib/stubby"
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 128
edns_client_subnet_private: 1
idle_timeout: 10000
listen_addresses:
- 127.0.0.1@5453
- 0::1@5453
dns_transport_list:
- GETDNS_TRANSPORT_TLS
upstream_recursive_servers:
- address_data: 2606:4700:4700::1111
tls_auth_name: "cloudflare-dns.com"
- address_data: 2606:4700:4700::1001
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.1.1.1
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.0.0.1
tls_auth_name: "cloudflare-dns.com"
#back up file org config working

But it will not work when quad9 is added in..
------
# Note: by default on OpenWRT stubby configuration is handled via
# the UCI system and the file /etc/config/stubby. If you want to
# use this file to configure stubby, then set "option manual '1'"
# in /etc/config/stubby.
resolution_type: GETDNS_RESOLUTION_STUB
round_robin_upstreams: 1
appdata_dir: "/opt/var/lib/stubby"
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 128
edns_client_subnet_private: 1
idle_timeout: 10000
listen_addresses:
- 127.0.0.1@5453
- 0::1@5453
dns_transport_list:
- GETDNS_TRANSPORT_TLS
upstream_recursive_servers:
- address_data: 2606:4700:4700::1111
tls_auth_name: "cloudflare-dns.com"
- address_data: 9.9.9.9
tls_auth_name: "dns.quad9.net"
- address_data: 2620:fe:fe
tls_auth_name: "dns.quad9.net"
- address_data: 2606:4700:4700::1001
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.1.1.1
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.0.0.1
tls_auth_name: "cloudflare-dns.com"

I have looked at this for hours and see no issue but it will only work with the original config above..

and to answer why I don not use the smart dns in the cli - have tried with that as well, so conclusion is there is something a miss with this router.. from the various threads it should not be this difficult to set up.

Fresh eyes on the above or any help wold be much appreciated.

using vpn to puch through at the moment.
Sponsor
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2038

PostPosted: Mon Mar 18, 2024 18:10    Post subject: Reply with quote
The forum software erases unwanted spaces therefore we cannot see if you are doing this correctly.
The spaces preceding these lines is critical.

Code:
# Quad 9 'insecure' service - No filtering, no DNSSEC, doesn't send ECS
  - address_data: 9.9.9.10
    tls_auth_name: "dns.quad9.net"
# Quad 9 'secure' service - Filters, does DNSSEC, doesn't send ECS
  - address_data: 9.9.9.9
    tls_auth_name: "dns.quad9.net"

_________________
Forum Guide Lines (with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips!)
How to get help the right way

Before asking for help - Read the forum guidelines AND Upgrade DD-WRT!
Adblock by eibgrad (1.1M blocked) + Blocklist Collection

stillaround2024
DD-WRT Novice


Joined: 25 Jan 2024
Posts: 22

PostPosted: Mon Mar 18, 2024 18:53    Post subject: Thank You Reply with quote
Will the stubby.yml files suffice. They look the same to me, even when I inserted quad9 details with nano and made sure they were lined up correctly (lost that bet). I will see if dd-wrt will let me up load - last time the log files did not post..
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Mon Mar 18, 2024 19:03    Post subject: Reply with quote
as the others noted, spacing is vital for stubby .yml config..
here is my old quad9 config... do notice there are few extra lines that are must for stubby to operate correctly


Code:
# Note: by default on OpenWRT stubby configuration is handled via
# the UCI system and the file /etc/config/stubby. If you want to
# use this file to configure stubby, then set "option manual '1'"
# in /etc/config/stubby.
resolution_type: GETDNS_RESOLUTION_STUB
round_robin_upstreams: 1
appdata_dir: "/opt/var/lib/stubby"
tls_ca_path: "/opt/etc/ssl/certs"
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_min_version: GETDNS_TLS1_3
tls_query_padding_blocksize: 128
edns_client_subnet_private: 1
idle_timeout: 10000
tls_connection_retries: 1
listen_addresses:
  - 127.0.0.1@5053
dns_transport_list:
  - GETDNS_TRANSPORT_TLS
upstream_recursive_servers:
  - address_data: 9.9.9.9
    tls_auth_name: "dns.quad9.net"
    tls_port: 853
  - address_data: 149.112.112.112
    tls_auth_name: "dns.quad9.net"
    tls_port: 853

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
stillaround2024
DD-WRT Novice


Joined: 25 Jan 2024
Posts: 22

PostPosted: Mon Mar 18, 2024 19:14    Post subject: stubby.yml files Reply with quote
The stubby.yml is the file I added quad9 details too, but stubby will not work with it.

The subby.yml.bck is a copy of the original stubby.yml made in ssh secession it works, but only with cloudflare (obviously).

Curious I do not have i.pv6 activated on router so that kind of raised an eyebrow.

lets see if dd-wrt will take the 2 uploaded config files.

Thanks again for having a look, this has been a Huge PITA.
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Mon Mar 18, 2024 19:31    Post subject: Reply with quote
so, if you just copy paste my config, make sure in DNSmasq you have

no-resolv
server=127.0.0.1#5053

I just tested this config it is working...
Unless your ISP is blocking 9.9.9.9....

also i dont mix clouflare with other resolvers...its either one or another Razz
as both have a different filtering policy's

and yes sometimes when you clear .yml config and paste another it wont work...so manually edit/add all lines that are needed or contain different data Razz make sure you wont screw the spacing....

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
bushant
DD-WRT Guru


Joined: 18 Nov 2015
Posts: 2038

PostPosted: Mon Mar 18, 2024 19:48    Post subject: Re: stubby.yml files Reply with quote
stillaround2024 wrote:
this has been a Huge PITA.


Just my 2 cents: SmartDns in the GUI is easy and works great with the same results and does not require a USB device that may fail.

That happened to me twice and takes a while to figure out what is wrong.

_________________
Forum Guide Lines (with helpful pointers about how to research your router, where and what firmware to download, where and how to post and many other helpful tips!)
How to get help the right way

Before asking for help - Read the forum guidelines AND Upgrade DD-WRT!
Adblock by eibgrad (1.1M blocked) + Blocklist Collection

stillaround2024
DD-WRT Novice


Joined: 25 Jan 2024
Posts: 22

PostPosted: Mon Mar 18, 2024 20:09    Post subject: Thank You Both Reply with quote
Thanks again bushant and Alozaros..

This config worked..
--------------
# Note: by default on OpenWRT stubby configuration is handled via
# the UCI system and the file /etc/config/stubby. If you want to
# use this file to configure stubby, then set "option manual '1'"
# in /etc/config/stubby.
resolution_type: GETDNS_RESOLUTION_STUB
round_robin_upstreams: 1
appdata_dir: "/opt/var/lib/stubby"
tls_authentication: GETDNS_AUTHENTICATION_REQUIRED
tls_query_padding_blocksize: 128
edns_client_subnet_private: 1
idle_timeout: 10000
listen_addresses:
- 127.0.0.1@5453
- 0::1@5453
dns_transport_list:
- GETDNS_TRANSPORT_TLS
upstream_recursive_servers:
- address_data: 2606:4700:4700::1111
tls_auth_name: "cloudflare-dns.com"
- address_data: 2606:4700:4700::1001
tls_auth_name: "cloudflare-dns.com"
- address_data: 1.1.1.1
tls_auth_name: "cloudflare-dns.com"
tls_port: 853
- address_data: 1.0.0.1
tls_auth_name: "cloudflare-dns.com"
tls_port: 853
- address_data: 9.9.9.9
tls_auth_name: "dns.quad9.net"
tls_port: 853
#back up file org config working added quad9 and tls_port:853

I can not say it enough "Thank You"
stillaround2024
DD-WRT Novice


Joined: 25 Jan 2024
Posts: 22

PostPosted: Mon Mar 18, 2024 20:14    Post subject: Re: stubby.yml files Reply with quote
bushant wrote:
stillaround2024 wrote:
this has been a Huge PITA.


Just my 2 cents: SmartDns in the GUI is easy and works great with the same results and does not require a USB device that may fail.

That happened to me twice and takes a while to figure out what is wrong.


Bushant - seriously I tried to get smart dns working on several new builds to no effect.. thanks again
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12922
Location: Netherlands

PostPosted: Mon Mar 18, 2024 20:32    Post subject: Reply with quote
I run smartdns on several routers.

So perhaps you are doing something wrong.

SmartDNS guide is a sticky in this forum

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Mon Mar 18, 2024 20:49    Post subject: Reply with quote
yeap people are rushy and never spend time to research and read...all need to be in a one go, otherwise its not fun...anymore...if its not on the first page nobody goes to the last Razz Razz

I can see some oddys of people still posting, how to use SmartDNS in DDWRT old way....via usb and ect...
good luck to them ....

stillaround2024 I can see that you still didn't read Stubby guide in my signature or bushant signature, nor follow my config advise...

tls_ca_path: "/opt/etc/ssl/certs"
tls_min_version: GETDNS_TLS1_3


those lines are must...
first line is the path to ssl certs, that are needed for verification and ect.
second line is to force stubby to use tls 1.3 only...
default config is very bear...anyway...

Stubby and SmartDNS are working as intended...read the guides... Razz

_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum