GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — RTNode-HeltecV4/CORE_PRINCIPLES.md at main · jrl290/RTNode-HeltecV4

Expand file tree

/

CORE_PRINCIPLES.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (37 loc) · 4.92 KB
/

CORE_PRINCIPLES.md

Copy path

File metadata and controls

65 lines (37 loc) · 4.92 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Core Principles

FIREWALL_MODE Transport

The key to allowing transport to work reliably on the ESP32 is that all WAN traffic, meaning backbone-side traffic, must be filtered immediately at the point of reception. This is the purpose of FIREWALL_MODE.

The ESP32 cannot safely accept arbitrary backbone traffic and then decide later whether it should be retained, cached, routed, rebroadcast, or processed. Unfiltered WAN traffic can exhaust internal heap, flood transport state, trigger LoRa rebroadcast storms, and cause watchdog resets. The firewall must therefore make a fast accept-or-drop decision before normal transport processing.

Required Whitelists

FIREWALL_MODE must maintain two whitelists:

  1. LAN device addresses

    Every address belonging to a device observed on the LAN side must be remembered. These are local-side identities, destinations, link identifiers, and other packet addresses that identify LAN-originating devices or flows.

  2. LAN-mentioned addresses

    Every destination referred to by a LAN-side packet must be remembered. If a LAN device sends, requests, proves, links to, or otherwise references a destination, that destination is considered relevant to LAN traffic and may be allowed back through the firewall.

    This rule is destination-centric, not wrapper-centric:

    • for normal packets, the relevant destination is packet.destination_hash()
    • for path requests, the relevant destination is the requested hash carried in the first 16 bytes of the payload, not the path.request control destination
    • packet type does not narrow the rule; if the LAN mentioned the destination, it belongs in the whitelist

Together, these whitelists define the only WAN-side traffic that is allowed to enter normal transport handling.

WAN-Side Rule

Every packet received from the WAN or backbone side must be inspected immediately.

If the packet does not contain an address from either whitelist, it must be deleted at reception and must not continue into transport processing.

This applies before the packet can populate routing tables, path tables, announce tables, packet hash lists, caches, link state, receipt state, or outbound queues.

Backbone announces require special care. They must not be accepted merely because they are announces. In FIREWALL_MODE, unsolicited WAN announces may be retained only in bounded holding state; they are not promoted into live path state and do not cross to LAN clients unless the destination is already whitelisted or the announce is a directly solicited response to LAN-originating discovery.

LAN-Side Rule

All packets that originate from the LAN side are trusted to pass freely through all configured interfaces.

LAN-originating traffic is what teaches the firewall what is relevant. As LAN packets pass through the system, the firewall must update both whitelists so that valid return traffic from the WAN side can be admitted later.

LAN-side packets should not be blocked just because they reference unknown destinations. Instead, those references are the signal used to permit corresponding WAN-side return traffic.

Once a destination is whitelisted, WAN-side packets for that destination may cross the firewall regardless of whether they arrive as announces, path requests, proofs, or ordinary messages. The packet-type-specific handling still happens afterwards, but the whitelist decision is always keyed to the destination the LAN actually mentioned.

LAN-side trust applies to endpoint traffic. A LAN-connected Reticulum node that is itself running transport mode can relay WAN-scale announces and routed packets into RTNode through the LAN interface. That traffic must be treated as a topology hazard, even if it arrives on a local TCP connection, because it can recreate the same unbounded routing workload that MODE_BACKBONE is designed to prevent on the WAN side.

Local TCP clients should therefore be configured as clients/endpoints, not transport nodes, unless the firmware has an explicit policy for bounded LAN-side transport peers.

Implementation Contract

In FIREWALL_MODE, the transport layer must preserve these invariants:

  • WAN packets are filtered before normal transport state is mutated.
  • WAN packets without whitelisted destinations are dropped immediately.
  • LAN packets are allowed to traverse all interfaces.
  • LAN packets update the LAN-device and LAN-mentioned whitelists based on the actual destination they referenced.
  • LAN-connected transport routers are not ordinary endpoint traffic and must not be allowed to reintroduce unbounded WAN routing state through the LAN side.
  • WAN announces are heavily filtered, may only live in bounded holding state when unsolicited, and are never allowed to become an unbounded announce, cache, or rebroadcast workload.
  • The firewall must protect internal heap and watchdog health on ESP32-class devices.

Any change that weakens these rules risks turning RTNode into an unbounded backbone router, which is not the purpose of this firmware mode.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.