From 40abf0979f93771ccfb58eecb8a6fcc5863ec604 Mon Sep 17 00:00:00 2001 From: Christophe Besson Date: Fri, 4 Sep 2026 14:10:16 +0200 Subject: feat(packaging): ship a node firewall profile for inbound WebRTC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The packages carried a profile for LAN casting and none for the node's own peer traffic, on the reasoning that the node exposes only a loopback admin API. That is true of its administration surface and false of its transport. WebRTC binds an ephemeral UDP port per connection, so there is no fixed port to open, and a connection succeeds only if one side can initiate. Browsers publish their host candidate as an mDNS `.local` name, which aioice cannot resolve on any platform and discards — so the node can never call a browser back, and the browser must call the node. A node that refuses unsolicited inbound UDP is unreachable from every browser on its own LAN, leaving reflexive candidates, which fail whenever both peers share one public IP and the router will not hairpin. Hit twice in one session on two different hosts: a firewalld zone narrowed to mdns + 19550-19553/tcp, and a ufw host with default deny-incoming. Both presented as "the app cannot connect", neither as a firewall message. Passive like the cast profile: packaged, not activated. The guide says to scope it to a LAN zone or source, including the libvirt case, where traffic from a guest to its own hypervisor is not masqueraded and so must be scoped to the guest subnet rather than the LAN. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01DtfG7z6wHWj8RKHCvxQtY1 --- packaging/rpm/meshbay-node.spec | 1 + 1 file changed, 1 insertion(+) (limited to 'packaging/rpm') diff --git a/packaging/rpm/meshbay-node.spec b/packaging/rpm/meshbay-node.spec index 2bebb26..7910a83 100644 --- a/packaging/rpm/meshbay-node.spec +++ b/packaging/rpm/meshbay-node.spec @@ -43,6 +43,7 @@ fi %{_unitdir}/meshbay-node@.service %{_userunitdir}/meshbay-node.service /etc/ufw/applications.d/meshbay +/usr/lib/firewalld/services/meshbay-node.xml %changelog * Sun Aug 31 2026 MeshBay Team - %{version}-1 -- cgit v1.2.3