Skip to content

fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users#9958

Merged
thebentern merged 5 commits into
meshtastic:developfrom
NomDeTom:fix_ham
Mar 22, 2026
Merged

fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users#9958
thebentern merged 5 commits into
meshtastic:developfrom
NomDeTom:fix_ham

Conversation

@NomDeTom

Copy link
Copy Markdown
Collaborator

I've seen reports that ham nodes are rebroadcasting packets from non-ham users.

Looking at the logic, it appears that if non-licensed senders aren't in the nodedb (so UserLicenseStatus::Unknown) and are broadcasting to a known (but not necessarily licensed) node, the packets will be relayed.
This change requires either the sender or recipient to be a known licensed user. The local_only setting will then make sure that no other packets are relayed.

@github-actions github-actions Bot added needs-review Needs human review bugfix Pull request that fixes bugs labels Mar 20, 2026
@NomDeTom

Copy link
Copy Markdown
Collaborator Author

@GUVWAF does this make sense?

@GUVWAF GUVWAF left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I guess it makes sense to make it more strict like this.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates routing-level packet filtering for licensed (“ham”) nodes to reduce unintended rebroadcasting of traffic involving unlicensed users.

Changes:

  • Extend the licensed-node rebroadcast drop condition to also block packets addressed to known-unlicensed users (not just packets from them).
  • Update the associated debug log message and inline comment to reflect “to or from” behavior.

Comment thread src/modules/RoutingModule.cpp
Comment thread src/modules/RoutingModule.cpp
@thebentern thebentern merged commit bfaf6c6 into meshtastic:develop Mar 22, 2026
69 of 70 checks passed
@NomDeTom NomDeTom deleted the fix_ham branch March 23, 2026 00:01
oumike pushed a commit to oumike/firmware that referenced this pull request Mar 25, 2026
…r from unlicensed users (meshtastic#9958)

* fix(routing): prevent licensed users from rebroadcasting packets from unlicensed or unknown users

* fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
oumike pushed a commit to oumike/firmware that referenced this pull request Mar 27, 2026
…r from unlicensed users (meshtastic#9958)

* fix(routing): prevent licensed users from rebroadcasting packets from unlicensed or unknown users

* fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
thebentern added a commit that referenced this pull request Mar 31, 2026
…r from unlicensed users (#9958)

* fix(routing): prevent licensed users from rebroadcasting packets from unlicensed or unknown users

* fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
skrashevich pushed a commit to skrashevich/meshtastic-firmware that referenced this pull request Apr 4, 2026
…r from unlicensed users (meshtastic#9958)

* fix(routing): prevent licensed users from rebroadcasting packets from unlicensed or unknown users

* fix(routing): prevent licensed users from rebroadcasting packets to or from unlicensed users

---------

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants