From 53170d87113c245691cd917fc985be9392131998 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Thu, 9 Nov 2023 16:44:28 +0300 Subject: [PATCH] Pull request 2060: 6368-conf-ratelimit-subnet-len Updates #6368. Squashed commit of the following: commit def3bd7c746c671efaf655c3cfbb1a7664becd85 Merge: 59d678c95 d3862614e Author: Stanislav Chzhen Date: Thu Nov 9 16:27:36 2023 +0300 Merge branch 'master' into 6368-conf-ratelimit-subnet-len commit 59d678c95978d4ab21b952ef0cae70cad1ad50d8 Author: Stanislav Chzhen Date: Wed Nov 8 18:16:40 2023 +0300 all: imp chlog commit 69d6a57d7facbdc6038612f31796f727adcb107f Author: Stanislav Chzhen Date: Wed Nov 8 17:48:19 2023 +0300 all: upd chlog commit fa1998352618c839e248eb86c84e75933e0a5d0f Merge: 236ba3bce f8fe9bfc8 Author: Stanislav Chzhen Date: Wed Nov 8 16:22:31 2023 +0300 Merge branch 'master' into 6368-conf-ratelimit-subnet-len commit 236ba3bceefbe6f9eeb6c70150f5a371f014f60d Author: Stanislav Chzhen Date: Wed Nov 8 16:21:09 2023 +0300 all: upd dnsproxy commit 771af632f7795af6cdd53ffd81d0294165441439 Merge: 5a23b039e cbcc17a58 Author: Stanislav Chzhen Date: Tue Nov 7 17:51:56 2023 +0300 Merge branch 'master' into 6368-conf-ratelimit-subnet-len commit 5a23b039e59d1ec5cb2bfea3942da7104db3b9bd Author: Stanislav Chzhen Date: Tue Nov 7 17:49:27 2023 +0300 all: upd dnsproxy commit 8b7aca3fbd21897183378470fd687380630602eb Author: Stanislav Chzhen Date: Fri Nov 3 16:37:41 2023 +0300 all: upd chlog commit bd7d23bacc08d8f907e0e7e07a48259bb9ed17e8 Author: Stanislav Chzhen Date: Fri Nov 3 15:52:06 2023 +0300 all: conf ratelimit subnet len --- CHANGELOG.md | 8 +++++ go.mod | 3 +- go.sum | 4 +-- internal/confmigrate/migrator_test.go | 5 +++ internal/dnsforward/config.go | 46 ++++++++++++++++----------- internal/home/config.go | 10 +++--- 6 files changed, 50 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 11ce8ef5..85fd714b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,8 @@ NOTE: Add new changes BELOW THIS COMMENT. ### Added +- Ability to specify subnet lengths for IPv4 and IPv6 addresses, used for rate + limiting requests, in the configuration file ([#6368]). - Ability to specify multiple domain specific upstreams per line, e.g. `[/domain1/../domain2/]upstream1 upstream2 .. upstreamN` ([#4977]). @@ -33,6 +35,11 @@ NOTE: Add new changes BELOW THIS COMMENT. - The height of ready-to-use filter lists has been increased ([#6358]). - Improved authentication failure logging ([#6357]). +#### Configuration Changes + +- New properties `dns.ratelimit_subnet_len_ipv4` and + `dns.ratelimit_subnet_len_ipv6` in the configuration file ([#6368]). + ### Fixed - Average request processing time calculation ([#6220]). @@ -52,6 +59,7 @@ NOTE: Add new changes BELOW THIS COMMENT. [#6338]: https://github.com/AdguardTeam/AdGuardHome/issues/6338 [#6357]: https://github.com/AdguardTeam/AdGuardHome/issues/6357 [#6358]: https://github.com/AdguardTeam/AdGuardHome/issues/6358 +[#6368]: https://github.com/AdguardTeam/AdGuardHome/issues/6368