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 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-03-12 16:45:13 +01:00
parent 03a6210ba7
commit 2f0dc626ac

View File

@ -423,8 +423,12 @@ lxc_create_debian_rootfs() {
return 1 return 1
} }
# Configure DNS # Configure DNS (use local gateway + fallback)
echo "nameserver 8.8.8.8" > "$rootfs/etc/resolv.conf" cat > "$rootfs/etc/resolv.conf" << 'RESOLV'
nameserver 1.1.1.1
nameserver 8.8.8.8
search lan
RESOLV
# Install Lyrion in the container # Install Lyrion in the container
cat > "$rootfs/tmp/setup-lyrion.sh" << 'SETUP' cat > "$rootfs/tmp/setup-lyrion.sh" << 'SETUP'
@ -481,6 +485,7 @@ if [ ! -f /config/prefs/server.prefs ]; then
--- ---
mediadirs: mediadirs:
- /music - /music
httpaddr: 0.0.0.0
httpport: 9000 httpport: 9000
cliport: 9090 cliport: 9090
PREFS PREFS
@ -488,10 +493,12 @@ PREFS
fi fi
# Run Lyrion (squeezeboxserver drops privileges to nobody when run as root) # 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 \ exec /usr/sbin/squeezeboxserver \
--prefsdir /config/prefs \ --prefsdir /config/prefs \
--cachedir /config/cache \ --cachedir /config/cache \
--logdir /var/log/lyrion \ --logdir /var/log/lyrion \
--httpaddr 0.0.0.0 \
--httpport 9000 \ --httpport 9000 \
--cliport 9090 --cliport 9090
START START