[Bug]: Bug: I2P Boundary interface outbound peer created as Full, allowing I2P announces onto Internal RF interfaces
MeshChatX version
v4.9.2 Stable commit 71d7203 UI build Sep 28, 2026
Release channel
Stable
Platform
Desktop (Electron)
Operating system
Linux
OS details (if Other)
No response
How did you install MeshChatX?
Linux AppImage
What happened?
I configured the I2P interface in MeshChatX 4.9.2 as mode = boundary, with my local Heltec V3 RNode and KISS/Direwolf interfaces configured as mode = internal.
Despite this, announces received through the configured outbound I2P peer were being retransmitted onto the Internal RF interfaces. This resulted in frequent unwanted transmissions on both the LoRa and packet-radio interfaces from Internet/I2P-originated announce traffic.
During debugging, I found that the parent I2P interface eventually received the correct Boundary mode, but its outbound I2P peer was being created as MODE_FULL.
The outbound peer is created inside the I2PInterface constructor, before the configured Boundary mode has been applied to the parent. As a result, the child peer does not have the Boundary mode needed for Reticulum's Boundary-to-Internal forwarding restrictions to take effect.
I tested a modification to I2PInterface.py that resolves the configured Boundary mode before the outbound peer is created and explicitly assigns the parent's mode to the outbound peer.
After that change, I2P-originated announces were correctly prevented from being retransmitted onto the Internal Heltec and KISS interfaces. Normal local LoRa and FM/KISS messaging continued to work bidirectionally.
What did you expect?
I expected traffic arriving through an I2P interface configured as mode = boundary to be treated as Boundary traffic throughout the I2P interface hierarchy, including traffic received through its outbound peer interfaces.
With this configuration:
[[Heltec-V3-RNode]]
type = RNodeInterface
mode = internal
[[Direwolf Serial Bridge]]
type = KISSInterface
mode = internal
[[I2P]]
type = I2PInterface
mode = boundary
I expected unsolicited announces arriving from I2P to be prevented from propagating onto the Internal LoRa and KISS/radio interfaces according to Reticulum's Boundary/Internal forwarding rules.
The outbound I2P peer should therefore have an effective mode of MODE_BOUNDARY, rather than MODE_FULL.
Legitimate local RF communication should continue to operate normally.
Steps to reproduce
-
Run MeshChatX 4.9.2 with an I2P interface and at least one RF interface.
-
Configure the RF interface(s) as Internal. In my case these were a Heltec V3 RNode and a KISS interface connected to Direwolf:
[[Heltec-V3-RNode]]
type = RNodeInterface
enabled = yes
interface_enabled = yes
mode = internal
port = /dev/serial/by-path/pci-0000:00:14.0-usb-0:2:1.0-port0
frequency = 914875000
bandwidth = 125000
spreadingfactor = 8
codingrate = 7
txpower = 22
speed = 115200
[[Direwolf Serial Bridge]]
type = KISSInterface
enabled = yes
interface_enabled = yes
mode = internal
outgoing = yes
port = /tmp/direwolf
speed = 38400
bitrate = 9600
preamble = 350
txtail = 20
persistence = 64
slottime = 20
- Configure I2P as Boundary with an outbound peer:
[[I2P]]
type = I2PInterface
enabled = yes
mode = boundary
connectable = yes
peers = <I2P peer address>
-
Start MeshChatX and allow the outbound I2P connection to establish.
-
Observe announces arriving through the outbound I2P peer.
-
Observe that I2P-originated announces can subsequently result in transmissions on the Internal RF interfaces.
During debugging I found that simply adding:
peer_interface.mode = self.mode
when creating the outbound peer did not solve the problem. At that point in initialization, self.mode was still MODE_FULL.
I then resolved the configured mode inside I2PInterface before outbound-peer creation and assigned that mode to the child:
self.mode = RNS.Interfaces.Interface.Interface.MODE_FULL
configured_mode = None
if "interface_mode" in c:
configured_mode = str(c["interface_mode"]).lower()
elif "mode" in c:
configured_mode = str(c["mode"]).lower()
if configured_mode == "boundary":
self.mode = RNS.Interfaces.Interface.Interface.MODE_BOUNDARY
and during outbound-peer creation:
peer_interface.parent_interface = self
peer_interface.parent_count = False
peer_interface.mode = self.mode
RNS.Transport.add_interface(peer_interface)
After restarting MeshChatX with this test patch, the I2P peer inherited Boundary mode and the unwanted I2P-originated RF transmissions stopped.
Local RF messaging was then tested in both directions and continued to work.
Logs or error output
The following is from the test after applying the I2P Boundary-mode fix. It shows an announce arriving through the outbound I2P peer, Reticulum considering it for rebroadcast, and then correctly blocking that rebroadcast on both Internal RF interfaces:
INFO:meshchatx.rns:[2026-09-29 15:00:01] [Extra] Valid announce for <314c489ef61efa2f494aced28b8171da> 5 hops away, received via <94bfe40e02b95175bded79f8f5dbc941> on I2PInterfacePeer[I2P to wtyqfi3yytdzgmktms767m26zn3c6slwixfzmuu5febj2zvyauka.b32.i2p]
INFO:meshchatx.rns:[2026-09-29 15:00:01] [Pathing] Rebroadcasting announce for <314c489ef61efa2f494aced28b8171da> with hop count 5
INFO:meshchatx.rns:[2026-09-29 15:00:01] [Pathing] Blocking announce broadcast on KISSInterface[Direwolf Serial Bridge] due to boundary-mode next-hop interface
INFO:meshchatx.rns:[2026-09-29 15:00:01] [Pathing] Blocking announce broadcast on RNodeInterface[Heltec-V3-RNode] due to boundary-mode next-hop interface
The same behavior repeats for additional announces received through the I2P peer. For example:
INFO:meshchatx.rns:[2026-09-29 15:00:24] [Extra] Valid announce for <c2a469aa5151f67153e54616ef162b0e> 5 hops away, received via <94bfe40e02b95175bded79f8f5dbc941> on I2PInterfacePeer[I2P to wtyqfi3yytdzgmktms767m26zn3c6slwixfzmuu5febj2zvyauka.b32.i2p]
INFO:meshchatx.rns:[2026-09-29 15:00:24] [Pathing] Rebroadcasting announce for <c2a469aa5151f67153e54616ef162b0e> with hop count 5
INFO:meshchatx.rns:[2026-09-29 15:00:24] [Pathing] Blocking announce broadcast on KISSInterface[Direwolf Serial Bridge] due to boundary-mode next-hop interface
INFO:meshchatx.rns:[2026-09-29 15:00:24] [Pathing] Blocking announce broadcast on RNodeInterface[Heltec-V3-RNode] due to boundary-mode next-hop interface
Before the fix, I2P-originated announce traffic was resulting in transmissions on these Internal RF interfaces. After correcting the outbound I2P peer's effective mode to Boundary, Reticulum began producing the `Blocking announce broadcast ... due to boundary-mode next-hop interface` messages shown above, and the unwanted RF transmissions stopped.
Normal local RF/LXMF communication was tested afterward and continued to work bidirectionally.
Checklist
- [x] I searched existing issues to avoid duplicates
- [x] I included my MeshChatX version, channel, operating system, and install method
- [x] I can reproduce the issue with the steps above
Thanks for the report and the logs.
Referenced by commit 15d0acf0e1 on dev: fix(i2p): outbound peer inherits configured interface mode (fixes #133). If this resolves the issue it will be included in the next release.