From 2f0dc626ace6c17e3354137c73d99b0d3a839868 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Thu, 12 Mar 2026 16:45:13 +0100 Subject: [PATCH] fix(lyrion): Listen on all interfaces for WAN device streaming - Add --httpaddr 0.0.0.0 to squeezeboxserver startup args - Set httpaddr in default server.prefs - Improve DNS config with multiple nameservers and search domain Fixes Squeezebox devices on WAN network (192.168.1.x) getting "connection reset by peer" when trying to stream from Lyrion bound only to LAN IP (192.168.255.1). Co-Authored-By: Claude Opus 4.5 --- .../secubox-app-lyrion/files/usr/sbin/lyrionctl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/package/secubox/secubox-app-lyrion/files/usr/sbin/lyrionctl b/package/secubox/secubox-app-lyrion/files/usr/sbin/lyrionctl index c36d6e50..7d1608a4 100755 --- a/package/secubox/secubox-app-lyrion/files/usr/sbin/lyrionctl +++ b/package/secubox/secubox-app-lyrion/files/usr/sbin/lyrionctl @@ -423,8 +423,12 @@ lxc_create_debian_rootfs() { return 1 } - # Configure DNS - echo "nameserver 8.8.8.8" > "$rootfs/etc/resolv.conf" + # Configure DNS (use local gateway + fallback) + cat > "$rootfs/etc/resolv.conf" << 'RESOLV' +nameserver 1.1.1.1 +nameserver 8.8.8.8 +search lan +RESOLV # Install Lyrion in the container cat > "$rootfs/tmp/setup-lyrion.sh" << 'SETUP' @@ -481,6 +485,7 @@ if [ ! -f /config/prefs/server.prefs ]; then --- mediadirs: - /music +httpaddr: 0.0.0.0 httpport: 9000 cliport: 9090 PREFS @@ -488,10 +493,12 @@ PREFS fi # Run Lyrion (squeezeboxserver drops privileges to nobody when run as root) +# Listen on all interfaces (0.0.0.0) to allow WAN devices to stream exec /usr/sbin/squeezeboxserver \ --prefsdir /config/prefs \ --cachedir /config/cache \ --logdir /var/log/lyrion \ + --httpaddr 0.0.0.0 \ --httpport 9000 \ --cliport 9090 START