mirror of
https://github.com/hickory-dns/hickory-dns.git
synced 2026-04-25 03:05:51 +03:00
[PR #2126] [MERGED] Add option to specify a restricted set of networks capable of accessing the Hickory DNS server #2828
Labels
No labels
blocked
breaking-change
bug
bug:critical
bug:tests
cleanup
compliance
compliance
compliance
crate:all
crate:client
crate:native-tls
crate:proto
crate:recursor
crate:resolver
crate:resolver
crate:rustls
crate:server
crate:util
dependencies
docs
duplicate
easy
easy
enhance
enhance
enhance
feature:dns-over-https
feature:dns-over-quic
feature:dns-over-tls
feature:dnsssec
feature:global_lb
feature:mdns
feature:tsig
features:edns
has workaround
ops
perf
platform:WASM
platform:android
platform:fuchsia
platform:linux
platform:macos
platform:windows
pull-request
question
test
tools
tools
trust
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hickory-dns#2828
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hickory-dns/hickory-dns/pull/2126
Author: @bluejekyll
Created: 1/7/2024
Status: ✅ Merged
Merged: 2/6/2024
Merged by: @bluejekyll
Base:
main← Head:deny-list-on-request-addrs📝 Commits (10+)
70bceafadd access check for IP networks7da8193wire up Access to check request IP addr before servicing the IPe4a8484add config option for allow_networksb191f16add deny networks to access679c2e9add deny networks config option and exampleseca5f05use get_or_insert_with to clean up code144a89dfix typos in Access usage1e66a9brenamce Access to AccessControl8f2e523cleanup evaluation of access listsb568dacremove single add access control methods, only allow slice📊 Changes
18 files changed (+547 additions, -57 deletions)
View changed files
📝
Cargo.lock(+24 -0)📝
Cargo.toml(+1 -0)📝
bin/src/hickory-dns.rs(+3 -1)📝
bin/tests/named_tests.rs(+101 -7)📝
bin/tests/server_harness/mod.rs(+21 -8)📝
crates/proto/src/error.rs(+5 -0)📝
crates/server/Cargo.toml(+2 -0)➕
crates/server/src/access.rs(+184 -0)📝
crates/server/src/config/mod.rs(+17 -0)📝
crates/server/src/lib.rs(+1 -0)📝
crates/server/src/server/h2_handler.rs(+14 -2)📝
crates/server/src/server/h3_handler.rs(+8 -2)📝
crates/server/src/server/quic_handler.rs(+7 -2)📝
crates/server/src/server/server_future.rs(+116 -35)📝
tests/test-data/test_configs/example.toml(+11 -0)➕
tests/test-data/test_configs/example_allow_networks.toml(+10 -0)➕
tests/test-data/test_configs/example_deny_allow_networks.toml(+12 -0)➕
tests/test-data/test_configs/example_deny_networks.toml(+10 -0)📄 Description
See
github.com/hickory-dns/hickory-dns@3a1b74eabd/tests/test-data/test_configs/example_allow_networks.tomlfor an example. Of how this would be used.fixes: #1719
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.