Alle Dateien
hardening/server-cfg-hardening.cfg
# hoaxeye — FXServer hardening baseline (server.cfg excerpt)## Safe defaults that reduce the blast radius of the advisories on this site. None of# this is secret — it is operator hygiene every FiveM server should already run. # --- Admin surface ---------------------------------------------------------# Never expose txAdmin (default TCP 40120) to the public internet. Bind it behind a# VPN or a reverse proxy with authentication. See HXA-2026-002.# (configure at the OS / firewall level, not in server.cfg) # --- Resource trust --------------------------------------------------------# Only load resources you have reviewed. Native (.node) modules in a third-party# resource are a red flag — see HXA-2026-001.# Audit before ensure: find resources/ -name '*.node' -o -name '*.dll' # --- Event hardening -------------------------------------------------------# Keep server builds current; the net-event handlers receive security fixes there.sv_enforceGameBuild 3095 # Rate-limit connection floods at the edge (values are a starting point).set sv_authMaxVariance 1set sv_authMinTrust 4 # --- Endpoints -------------------------------------------------------------# Do not advertise more than you must; keep the query endpoint scoped.sv_endpointPrivacy true # --- Logging ---------------------------------------------------------------# Ship server logs off-host so an attacker who lands cannot trivially wipe them.set sv_logFile "/var/log/fxserver/server.log"