From 9a4e18437898505719dcc650055519ce7b21c813 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Fri, 15 May 2026 16:56:51 +0200 Subject: [PATCH] left4me: drop +sv_lan 0 from srcds ExecStart MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The original LAN-mode rejection turned out to be a downstream cascade from Steam SDK init failure (.steam dir invisible + cpu.cpp assert on hidden /proc/cpuinfo) — fixed in subsequent commits by binding /var/lib/left4me/.steam + /opt/left4me/steam back through TemporaryFileSystem and dropping ProcSubset=pid. With Steam master- server registration now succeeding ("Connection to Steam servers successful. VAC secure mode is activated."), the server defaults to internet mode (sv_lan=0) on its own. Drop the explicit override. If LAN-mode rejection ever recurs the fix is to identify the upstream Steam-registration issue, not to re-set this cvar. Co-Authored-By: Claude Opus 4.7 (1M context) --- bundles/left4me/metadata.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bundles/left4me/metadata.py b/bundles/left4me/metadata.py index 6313d6f..b6950dc 100644 --- a/bundles/left4me/metadata.py +++ b/bundles/left4me/metadata.py @@ -378,11 +378,7 @@ def systemd_units(metadata): # without this, Source auto-selects the primary IP and the web # app's 127.0.0.1 RCON connect gets ECONNREFUSED. External TCP # on the game port range is firewall-blocked in nftables_input. - # +sv_lan 0 is required alongside +ip 0.0.0.0 — when the bind - # IP is wildcard, Source can't auto-detect "public server" and - # falls into LAN mode, rejecting non-RFC1918 clients with - # "LAN servers are restricted to local clients (class C)". - 'ExecStart': '/var/lib/left4me/runtime/%i/merged/srcds_run -game left4dead2 +ip 0.0.0.0 +sv_lan 0 +hostport ${L4D2_PORT} $L4D2_ARGS', + 'ExecStart': '/var/lib/left4me/runtime/%i/merged/srcds_run -game left4dead2 +ip 0.0.0.0 +hostport ${L4D2_PORT} $L4D2_ARGS', 'ExecStopPost': '+/usr/bin/nsenter --mount=/proc/1/ns/mnt -- /usr/local/libexec/left4me/left4me-overlay umount %i', 'Restart': 'on-failure', 'RestartSec': '5',