fix(left4me): force +sv_lan 0 alongside +ip 0.0.0.0
With +ip 0.0.0.0 (added in previous commit to make TCP RCON reachable via loopback), Source engine can't auto-determine whether the server is public-facing and defaults to LAN mode (sv_lan=1). Clients connecting from public IPs get rejected with "LAN servers are restricted to local clients (class C)". Force sv_lan=0 explicitly so public clients can connect. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f5bce30a4a
commit
6bba2b04f7
1 changed files with 5 additions and 1 deletions
|
|
@ -361,7 +361,11 @@ 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.
|
||||
'ExecStart': '/var/lib/left4me/runtime/%i/merged/srcds_run -game left4dead2 +ip 0.0.0.0 +hostport ${L4D2_PORT} $L4D2_ARGS',
|
||||
# +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',
|
||||
'ExecStopPost': '+/usr/bin/nsenter --mount=/proc/1/ns/mnt -- /usr/local/libexec/left4me/left4me-overlay umount %i',
|
||||
'Restart': 'on-failure',
|
||||
'RestartSec': '5',
|
||||
|
|
|
|||
Loading…
Reference in a new issue