New Build - 11/09/2022 - r50841

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3005
Location: Germany

PostPosted: Wed Nov 09, 2022 13:58    Post subject: Reply with quote
I have reproduced your problem with the custom NTP entry and am talking to the developer about it.
Sponsor
IONK
DD-WRT Guru


Joined: 19 Aug 2011
Posts: 967

PostPosted: Wed Nov 09, 2022 14:10    Post subject: Reply with quote
Router/Version: D-Link DIR-868L Rev.A1
File/Kernel: dir868a-webflash.bin (r50841) / Linux 4.4.302-st25 #8205 SMP Tue Nov 8 23:53:52 -00 2022 armv7l
Previous/Reset: DD-WRT v3.0-r50814 std (11/05/22) / no
Mode/Status: Repeater Bridge on 5GHz AC/N-Mixed (wl0 is purposely turned off) + CTF + SSH (public key) + DDNS (Dynu.com) + USB Storage (guide by egc) + WireGuard server + Cron / working
Issues/Errors: none

_________________
▫ RSS feed for DD-WRT releases (2024): https://rsseverything.com/feed/7d36ab68-7733-46c3-bd8a-9c54c5cef08c.xml
easyddup - A simple upgrade/downgrade utility by yoyoma2 --- as featured in 📌 Reference Links, stickies retired back to forum (Moderator's Pick 🌟)
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Wed Nov 09, 2022 14:18    Post subject: Reply with quote
ho1Aetoo wrote:
I have reproduced your problem with the custom NTP entry and am talking to the developer about it.


yep me too

egc wrote:

the-joker wrote:


enabling dnscrypt causes ntp_server to be ignored wheres the code for that?
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Nov 09, 2022 14:30    Post subject: Reply with quote
portsup wrote:
egc wrote:

[code]server=/pool.ntp.org/9.9.9.9
server=/pool.ntp.org/1.0.0.1[/code


I had to change them to 2.pool.ntp.org to work btw


Interesting, that should not be necessary according to the man page:
Quote:
-S, --local, --server=[/[<domain>]/[domain/]][<ipaddr>[#<port>]][@<interface>][@<source-ip>[#<port>]]
Specify IP address of upstream servers directly. Setting this flag does not suppress reading of /etc/resolv.conf, use --no-resolv to do that. If one or more optional domains are given, that server is used only for those domains and they are queried only using the specified server. This is intended for private nameservers: if you have a nameserver on your network which deals with names of the form xxx.internal.thekelleys.org.uk at 192.168.1.1 then giving the flag --server=/internal.thekelleys.org.uk/192.168.1.1 will send all queries for internal machines to that nameserver, everything else will go to the servers in /etc/resolv.conf. DNSSEC validation is turned off for such private nameservers, UNLESS a --trust-anchor is specified for the domain in question. An empty domain specification, // has the special meaning of "unqualified names only" ie names without any dots in them. A non-standard port may be specified as part of the IP address using a # character. More than one --server flag is allowed, with repeated domain or ipaddr parts as required.

More specific domains take precedence over less specific domains, so: --server=/google.com/1.2.3.4 --server=/www.google.com/2.3.4.5 will send queries for google.com and gmail.google.com to 1.2.3.4, but www.google.com will go to 2.3.4.5

Matching of domains is normally done on complete labels, so /google.com/ matches google.com and www.google.com but NOT supergoogle.com. This can be overridden with a * at the start of a pattern only: /*google.com/ will match google.com and www.google.com AND supergoogle.com. The non-wildcard form has priority, so if /google.com/ and /*google.com/ are both specified then google.com and www.google.com will match /google.com/ and /*google.com/ will only match supergoogle.com.

For historical reasons, the pattern /.google.com/ is equivalent to /google.com/ if you wish to match any subdomain of google.com but NOT google.com itself, use /*.google.com/


My log also seems to indicate it works:
Quote:
Jan 1 01:00:53 R7800 daemon.info dnsmasq[981]: using nameserver 9.9.9.9#53 for domain pool.ntp.org
Jan 1 01:00:53 R7800 daemon.info dnsmasq[981]: using nameserver 1.0.0.1#53 for domain pool.ntp.org
Jan 1 01:00:58 R7800 daemon.info dnsmasq[1408]: using nameserver 9.9.9.9#53 for domain pool.ntp.org
Jan 1 01:00:58 R7800 daemon.info dnsmasq[1408]: using nameserver 1.0.0.1#53 for domain pool.ntp.org
Jan 1 01:01:00 R7800 daemon.debug ntpclient[1620]: Connecting to 2.pool.ntp.org [46.243.26.34] ...
Nov 9 10:10:23 R7800 daemon.info ntpclient[1620]: Time set from 2.pool.ntp.org [46.243.26.34].

_________________
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
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Wed Nov 09, 2022 14:35    Post subject: Reply with quote
I think you are right looks like maybe another bug.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3005
Location: Germany

PostPosted: Wed Nov 09, 2022 14:36    Post subject: Reply with quote
portsup wrote:
ho1Aetoo wrote:
I have reproduced your problem with the custom NTP entry and am talking to the developer about it.


yep me too

egc wrote:

the-joker wrote:


enabling dnscrypt causes ntp_server to be ignored wheres the code for that?


I am not quite sure if you have understood me correctly.
I have been able to reproduce your problem with the custom NTP Server and dnscrypt and have forwarded all details and logs to Brainslayer.

I'm pretty sure it doesn't need any further action.

except a little patience Smile
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Nov 09, 2022 14:43    Post subject: Reply with quote
It is ignored, I have taken a look:

Code:
   if (*servers == 0 || nvram_matchi("dns_crypt", 1)) {
      servers = "2.pool.ntp.org 212.18.3.19 88.99.174.22";
   }


So it is ignored by design Smile

Who would have guessed

Not sure why though, not a DNScrypt expert, glad I use SmartDNS

_________________
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
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Wed Nov 09, 2022 14:49    Post subject: Reply with quote
egc wrote:
It is ignored, I have taken a look:

Code:
   if (*servers == 0 || nvram_matchi("dns_crypt", 1)) {
      servers = "2.pool.ntp.org 212.18.3.19 88.99.174.22";
   }


So it is ignored by design Smile

Who would have guessed

Not sure why though, not a DNScrypt expert, glad I use SmartDNS


Yes I just found that on github, very annoying, I don't see any reason for it to be that way?

Where is the official repo btw?
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1958

PostPosted: Wed Nov 09, 2022 15:00    Post subject: Reply with quote
Main code repo: https://svn.dd-wrt.com/browser

GitHub Mirror: https://github.com/mirror/dd-wrt

If you have a patch solution, it's easier to do a pull request via github.

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Nov 09, 2022 15:04    Post subject: Reply with quote
dale_gribble39 wrote:
Main code repo: https://svn.dd-wrt.com/browser

GitHub Mirror: https://github.com/mirror/dd-wrt

If you have a patch solution, it's easier to do a pull request via github.


It is easy to patch but there must be a reason for this (or maybe not Smile )


Edit: Thinking about it the reason might be that if you set your own URL it will not work but the same holds true for other secure DNS services but I guess they were not in the picture when this code was made.

_________________
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Wed Nov 09, 2022 15:19    Post subject: Reply with quote
Maybe this applies:

https://www.snbforums.com/threads/using-ntp-server-protected-by-dnssec.60507/

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Nov 09, 2022 15:29    Post subject: Reply with quote
Problem is if we remove that check there will be users with dnscrypt who set an URL, not knowing it is not used, will not have internet after removal Sad
_________________
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
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Wed Nov 09, 2022 15:42    Post subject: Reply with quote
It's almost as if there's a Bill Murray comical moment here, but I don't know how to execute it. Anyway, we have a workaround for dnssec/dnscrypt in relation to NTP, and I am pretty sure this has been the situation for quite some time?
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Nov 09, 2022 15:51    Post subject: Reply with quote
kernel-panic69 wrote:
It's almost as if there's a Bill Murray comical moment here, but I don't know how to execute it. Anyway, we have a workaround for dnssec/dnscrypt in relation to NTP, and I am pretty sure this has been the situation for quite some time?


This code is there from long ago: https://svn.dd-wrt.com/changeset/32045

_________________
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
portsup
DD-WRT User


Joined: 20 Oct 2018
Posts: 210

PostPosted: Wed Nov 09, 2022 15:52    Post subject: Reply with quote
egc wrote:
Problem is if we remove that check there will be users with dnscrypt who set an URL, not knowing it is not used, will not have internet after removal Sad


But I don't have internet with the check because all 3 defaults can fail
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next Display posts from previous:    Page 2 of 7
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware 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 can attach files in this forum
You can download files in this forum