Skip to content

Allow repeaters to restrict Flooded REQ, ANON_REQ, and RESPONSE packets#2797

Open
netprince17 wants to merge 1 commit into
meshcore-dev:devfrom
netprince17:feature/limit-request-and-response-hops
Open

Allow repeaters to restrict Flooded REQ, ANON_REQ, and RESPONSE packets#2797
netprince17 wants to merge 1 commit into
meshcore-dev:devfrom
netprince17:feature/limit-request-and-response-hops

Conversation

@netprince17

Copy link
Copy Markdown

In our meshcore region, we are receiving a large number of flooded request, flooded anonymous request, and flooded response packets. We think this is probably from people using automation which is not quite configured properly. There are more flooded anonymous request and flooded response packets than flooded advertisement packets. I have monitored the packets using the 'Rx Log' tool, as well as using the pyMC:Console.

image

This patch allows the repeater owner to configure a maximum number of hops for flooded request, flooded anonymous request, and flooded response packets using the CLI.

set flood.max.response 8
set flood.max.request 8
set flood.max.anon.request 8

All options default to 64, so no changes to the default repeater behavior.

This patch was modeled after the recent flood.max.advert addition to meshcore found here:
74adda6

I have been testing this patch for several days on two repeaters. Using the test repeaters, I can still log-in to further away repeaters, less than the configured 8 hops away.

Dropping these packets will likely prevent logging-in to repeaters/rooms that are further away than the configured hops. There may be other consequences of preventing flooded request, anon request, and response packets further away than the configured hops, but I have not found any other downside yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant