Repository navigation
Give boot_node its own discovery packet filter limits - #10568
Open
MysticRyuujin wants to merge 1 commit into
Open
MysticRyuujin wants to merge 1 commit into
MysticRyuujin wants to merge 1 commit into
Conversation
|
Tick the box to add this pull request to the merge queue (same as
|
This branch has not been deployed
This file contains hidden or 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
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.
Issue Addressed
#10567
Proposed Changes
boot_nodenow sets its own discv5 packet filter limits afterset_network_config. Before, it used the beacon node defaults fromlighthouse_network::Config::default().RateLimiterhas no setter, so the builder must repeat them.filter_max_nodes_per_ip:Noneinstead ofSome(10). Node IDs per IP do not expire by time, so the limit bans an IP that many nodes share behind NAT, several times a day (see boot_node: discovery packet filter drops traffic on busy networks and bans shared IPs #10567).--disable-packet-filterworks as before. The change does not touchenable_packet_filter.New unit test:
boot_node_packet_filter_raises_total_limit_and_allows_shared_ips.Additional Info
None: one IP can now use any number of node IDs, but only within 9 unsolicited packets per second. The per-IP ban, the per-node limit and its ban,max_bans_per_ip(5), and the routing tableip_limitstill apply. The headersrc_idis not authenticated, so the old limit also let 10 spoofed packets ban a victim IP for one hour. A higher fixed number is an alternative if you prefer it, but any fixed number still bans a large NAT.total_requests_per_second().LimitKindis private to discv5, so a test of the real limiter behaviour would need two liveDiscv5instances.