Feature Request: Parity with meshcore flood.max.* commands #147

Open
opened 2026-10-27 09:35:27 +01:00 by adam · 2 comments
Owner

MeshCore v1.16.0 brought in some additional commands for scoped and advert max hops

openHop currently allows unscoped (*) as either on, or off - where as having a parity command (even if terminal only) or via UI would allow more consistent configuration to standard meshcore firmware.

New CLI config var ‘flood.max.unscoped’ #2661
New CLI config var ‘flood.max.advert’ #2702

Limiting Unscoped Traffic

The new flood.max.unscoped CLI config variable is specifically for limiting unscoped flood traffic. Like flood.max, it drops unscoped flood packets which have already had a given number of hops. By default it is 64, which is essentially off.
Limiting Advert Traffic

The new flood.max.advert CLI config variable is specifically for limiting adverts. Like flood.max, it drops advert packets which have already had a given number of hops. By default it is 8.

MeshCore v1.16.0 brought in some additional commands for scoped and advert max hops openHop currently allows unscoped (*) as either on, or off - where as having a parity command (even if terminal only) or via UI would allow more consistent configuration to standard meshcore firmware. New CLI config var ‘flood.max.unscoped’ [#2661](https://github.com/meshcore-dev/MeshCore/pull/2661) New CLI config var ‘flood.max.advert’ [#2702](https://github.com/meshcore-dev/MeshCore/pull/2702) > Limiting Unscoped Traffic > > The new flood.max.unscoped CLI config variable is specifically for limiting unscoped flood traffic. Like flood.max, it drops unscoped flood packets which have already had a given number of hops. By default it is 64, which is essentially off. > Limiting Advert Traffic > > The new flood.max.advert CLI config variable is specifically for limiting adverts. Like flood.max, it drops advert packets which have already had a given number of hops. By default it is 8. <!-- github-sync-id:5307449175 -->
Author
Owner

I thinks this can be emulated by policy rules:

policy_engine:
  enabled: true
  default_action: allow
  rules:
  - id: 1
    name: set flood.max.unscoped 16
    enabled: true
    if:
      all:
      - field: hop_count
        op: greater_than
        value: 16
      - field: route_type
        op: equals
        value: 1
    then:
      action: drop
  - id: 2
    name: set flood.max.advert 8
    enabled: true
    if:
      all:
      - field: hop_count
        op: greater_than
        value: 8
      - field: route_type
        op: equals
        value: 1
      - field: payload_type
        op: equals
        value: 4
    then:
      action: drop
[...]
I thinks this can be emulated by policy rules: ``` policy_engine: enabled: true default_action: allow rules: - id: 1 name: set flood.max.unscoped 16 enabled: true if: all: - field: hop_count op: greater_than value: 16 - field: route_type op: equals value: 1 then: action: drop - id: 2 name: set flood.max.advert 8 enabled: true if: all: - field: hop_count op: greater_than value: 8 - field: route_type op: equals value: 1 - field: payload_type op: equals value: 4 then: action: drop [...] ``` <!-- github-comment-id:5637967756 -->
Author
Owner

For anyone who wants this now: SpamGuard 6.0 (an openHop plugin) adds both as settings, a hop limit for unscoped flood packets and one for adverts, with the same meaning as MeshCore's flood.max.unscoped and flood.max.advert. It writes them as openHop policy rules, much like the example above, and leaves your own rules alone. https://github.com/flackrat/openhop-spamguard

For anyone who wants this now: SpamGuard 6.0 (an openHop plugin) adds both as settings, a hop limit for unscoped flood packets and one for adverts, with the same meaning as MeshCore's `flood.max.unscoped` and `flood.max.advert`. It writes them as openHop policy rules, much like the example above, and leaves your own rules alone. https://github.com/flackrat/openhop-spamguard <!-- github-comment-id:6231234773 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/pyMC_Repeater#147