You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
os/v3/puppy: the firewall drops every mDNS query, so 1bit-os.local is announced but never answers #1011
Board, c22 stick (rc-2026-11-04-c22), 4 Nov 2026 ~12:5x AST, from TOS3-C23-NOTES.md item 1:
mDNS is announced but unreachable: avahi says "1bit-os.local is announced", yet a raw mDNS query from ryzen gets no
answer.
#952/#953 put the responder in the image (avahi-daemon, started by 18onboard-mdns), and the appliance's own log
line proves the responder is up. What was never opened is the path for a query, and the reason is the same rc.firewall that zz-onboard-ports already had to work around. Read out of the packed c22 puppy SFS
(etc/init.d/rc.firewall):
-P INPUT DROP
-A INPUT -p ALL -d 224.0.0.1 -j DROP # only 224.0.0.1; 224.0.0.251 gets past this
-A INPUT -p ALL -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p UDP -j udp_inbound
udp_inbound: -p UDP --dport 137/138 -j DROP
-p UDP --sport 67 --dport 68 -j ACCEPT
-p UDP -j RETURN # back to the DROP policy
-A INPUT -m pkttype --pkt-type broadcast -j DROP
so a NEW inbound UDP packet is dropped, and an mDNS query is exactly that packet. The announcements reach the wire
(the same file ends with -A OUTPUT -p ALL -j ACCEPT), which is why avahi logged success and nothing answered.
zz-onboard-ports already opens tcp/13305 and tcp/22 for the same reason; mDNS needs the UDP half.
Fix, measured on a booted image (see the PR): an INPUT ACCEPT for udp/5353 from the same LAN ranges the file already
allows through tcpwrappers (10/8, 172.16/12, 192.168/16, plus 169.254/16 for avahi's link-local fallback),
inserted ahead of udp_inbound and the broadcast drop, idempotent via -C, in zz-onboard-ports (not 18onboard-mdns, whose name sorts before rc.firewall and would be wiped by it).
Gate: a U3 mdns rule row in os/v3/puppy/vm-check.sh that fails an image without the rule. The end-to-end half
("a peer on the LAN resolves 1bit-os.local and gets :13305 200") stays a board row - QEMU user networking carries no
multicast, and a udp hostfwd delivers nothing at all (measured twice, with the firewall flushed).
Activity