Native HAProxy PROXY Protocol (v2) Support for Dedicated Servers

JagerPup

Refugee
Title: Feature Request: Native HAProxy PROXY Protocol (v2) Support for Dedicated Servers

Body:
Please add native support for the HAProxy PROXY Protocol (specifically Version 2) to the 7 Days to Die Dedicated Server binary.

This will allow dedicated servers running behind local tunnel networks and reverse proxies—specifically playit.gg, which community hosts use to safely route traffic without opening ports on their home networks—to read and log the true, real public IP addresses of connecting players instead of the local loopback IP (127.0.0.1).

Why this is important:
- Home Server Security: A large portion of the 7 Days to Die server ecosystem is hosted from residential setups. Admins use playit.gg to host securely without exposing their public IP or opening dangerous router ports.
- Invisibility on the In-Game Public Server Browser: Currently, servers using playit.gg cannot be indexed correctly on the main public server list. Because the engine cannot process proxy layers natively, the server fails its check-in process with the global Master Server, making it impossible for random players to discover the server via the browser.
- Broken Server Administration: Running behind a local tunnel network forces every single connecting player to show up in the server console and logs as 127.0.0.1.
- Inability to Ban Malicious Players: This completely ruins an admin's ability to use IP-based admin tools, block family-shared alt accounts, or issue effective IP bans to protect their bases and worlds from griefers and hackers.

Suggested Implementation:
Adding native PROXYv2 processing would bridge the gap between the local server engine and the remote proxy, allowing the game instance to accurately advertise its public tunnel address to the global Master Server network.

Please add a simple parameter inside the `serverconfig.xml` file:
<property name="EnableProxyProtocol" value="true"/>

When enabled, the server should expect and parse the standard PROXYv2 binary header at the start of incoming UDP connection handshakes to extract the real client IP address for the master server list, internal logs, and admin systems.
 
When it comes to console, all you gotta do is block players on PSN (dunno about Xbox) and they'll be banned from joining any game/server/lobby you're playing on.
 
Back
Top