-
-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update ratelimit logic #616
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accurate ratelimit calculation.
aggressive rate limiting.
wcawijngaards
approved these changes
Feb 1, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from default value and spelling fix, the code looks good as is.
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
Thanks! |
gthess
added a commit
that referenced
this pull request
Feb 2, 2022
- Merge PR #616: Update ratelimit logic. It also introduces ratelimit-backoff and ip-ratelimit-backoff configuration options.
jedisct1
added a commit
to jedisct1/unbound
that referenced
this pull request
Feb 11, 2022
* nlnet/master: (33 commits) - Fix NLnetLabs#618: enabling interface-automatic disables DNS-over-TLS. Adds the option to list interface-automatic-ports. - Fix NLnetLabs#624: Unable to stop Unbound in Windows console (does not respond to CTRL+C command). Release 1.15.0 on 10 feb 2022. The repository continues with version 1.15.1. And Changelog note. Note 1.15.0rc1 tag creation in Changelog. - Tag for 1.15.0rc1 created. - Fix that TCP interface does not use TLS when TLS is also configured. - Fix NLnetLabs#412: cache invalidation issue with CNAME+A. - Fix for NLnetLabs#611: Integer overflow in sldns_wire2str_pkt_scan. - Update contrib/aaaa-filter-iterator.patch with diff for current software version. - Fix docker splint test to use more portable uname. - please clang analyzer for loop in test code. - Changelog entry clarification. - Fix header comment for doxygen for authextstrtoaddr. - Update version number in repo to 1.15.0 for upcoming release, since it changes the aggressive-nsec default and the ratelimit change. - Update stream_ssl.tdir test to also use the new forward-host notation. - Merge PR NLnetLabs#617: Update stub/forward-host notation to accept port and tls-auth-name. Don't accidentaly introduce a troff macro - Change aggressive-nsec default to yes. Changelog entry for NLnetLabs#616 - Merge PR NLnetLabs#616: Update ratelimit logic. It also introduces ratelimit-backoff and ip-ratelimit-backoff configuration options. Changelog entry for NLnetLabs#532 - Merge PR NLnetLabs#532 from Shchelk: Fix: buffer overflow bug. Changelog note for NLnetLabs#603: - Merge PR NLnetLabs#603 from fobser: Use OpenSSL 1.1 API to access DSA and RSA internals. ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR updates the ratelimit logic to work with the newly introduced changes to serviced_query and the logic that sends a query to the network. It also introduces ratelimit-backoff and ip-ratelimit-backoff for an optional more aggressive countermeasure when the limit is reached.
@wcawijngaards: this changes the function signature for send_query. I don't remember if for that change I have to also address something else than what is already addressed here.