Repeater: filter flow holds 24 rules and an r rule can match one requester on any destination
Changelog: Repeater: `filter flow` holds 24 rules (was 16), and an `r` rule with a 3-byte key (source + first hop) blocks one requester on any destination Changelog-cs: Repeater: `filter flow` pojme 24 pravidel (bylo 16) a pravidlo `r` s 3bajtovým klíčem (zdroj + první hop) zablokuje jednoho tazatele pro libovolný cíl Changelog-topic: filter-flow Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5fe599c5b6
commit
ae8d5057da
8 files changed
+163
-21
No files matched your search
@@ -71,7 +71,7 @@ message: anyone can rename around it.
|
||||
|
||||
### Forward-deny rules -- `filter flow` (every repeater)
|
||||
|
||||
One table of keyless rules (max 16) that replaces the former `filter hash` and
|
||||
One table of keyless rules (max 24) that replaces the former `filter hash` and
|
||||
`filter path` (both remain as aliases, below). A rule makes this node not
|
||||
re-air a matching **flood** packet; reception, rxlog and the pktfeed are
|
||||
unaffected. Match is on what is in the clear:
|
||||
@@ -79,11 +79,16 @@ unaffected. Match is on what is in the clear:
|
||||
| kind | key (hex) | matches |
|
||||
|---|---|---|
|
||||
| `c` | 1 B channel byte | GRP_TXT / GRP_DATA. One byte is coarse: every other channel hashing to it is hit as well |
|
||||
| `r` | `dest src` (2 B), optionally + first hop (4 B) | REQ / RESPONSE / TXT_MSG / PATH |
|
||||
| `r` | `dest src` (2 B), optionally + first hop (4 B); or `src first-hop` (3 B), **any destination** | REQ / RESPONSE / TXT_MSG / PATH |
|
||||
| `n` | `dest` (1 B), optionally + first hop (3 B) | ANON_REQ (login flood) |
|
||||
| `a` | pubkey prefix, 4-8 B | ADVERT |
|
||||
| `p` | relay pubkey prefix, 2-4 B | any hop of the path (a hop matches on the shorter of its width and the entry) |
|
||||
|
||||
The 3-byte `r` form is `src` (1 B) + first hop (2 B): `payload[1] == src` and the
|
||||
path's first hop equals the two hop bytes, whatever the destination. One
|
||||
requester asking many destinations through the same first relay thus takes one
|
||||
entry instead of one per destination. The 2 B and 4 B forms are unchanged.
|
||||
|
||||
"First hop" is the 2-byte hash at the start of the path. **0-hop packets and
|
||||
1-byte hops never match a rule that has it**, and kind `p` never matches a
|
||||
1-byte hop (one byte is shared by most repeaters of a mesh).
|
||||
@@ -171,8 +176,8 @@ keep working; they act on static kind `c` / `p` entries.
|
||||
| `filter path add <hex>` | `filter flow add p <hex>` (2-4 bytes = 4-8 hex digits) |
|
||||
| `filter path del <hex>` / `clear` | remove one entry / all STATIC `p` entries |
|
||||
|
||||
The table is shared: 16 entries in all, where `filter hash` had 8 and
|
||||
`filter path` 8. The list order is now the sorted order, not the order of adding.
|
||||
The table is shared: 24 entries in all (it was 16 before; prefs records
|
||||
`f_fl0..f_fl23`), where `filter hash` had 8 and `filter path` 8. The list order is now the sorted order, not the order of adding.
|
||||
|
||||
### Message age -- `filter age` (repeater with channel keys)
|
||||
|
||||
|
||||
Reference in new issue
Block a user