Adds HAProxy protocol support to Forge servers. See real player IPs behind Velocity, TCPShield, FRP, and Nginx proxies. Features hot-reload config, status command, and connection logging.
Adds HAProxy PROXY protocol support to your Minecraft Forge server.
See real player IP addresses when your server is behind a proxy like Velocity, TCPShield, FRP, Nginx, or any other HAProxy-compatible reverse proxy.
192.168.0.0/16)| Command | Permission | Description |
|---|---|---|
/proxyprotocol reload |
OP Level 4 | Reload config without restart |
/proxyprotocol status |
OP Level 4 | View current config and active rules |
Config file: config/proxy_protocol_support.json
{
"enableProxyProtocol": true,
"proxyServerIPs": ["127.0.0.1"],
"directAccessIPs": ["127.0.0.1", "192.168.0.0/16"],
"whitelistTCPShieldServers": false,
"logConnections": true
}
| Option | Description |
|---|---|
enableProxyProtocol |
Enable/disable the mod entirely |
proxyServerIPs |
IPs of your proxy servers (Velocity, HAProxy, etc.) — PROXY headers will only be accepted from these IPs |
directAccessIPs |
IPs allowed to connect directly without PROXY headers |
whitelistTCPShieldServers |
Auto-fetch TCPShield IPs and add them to proxy whitelist |
logConnections |
Log real IP and proxy IP to logs/proxy_connections.log |
Player → Proxy (Velocity/HAProxy/FRP) → Forge Server (with NG Proxy Support)
↓
Reads PROXY header
Extracts real IP
Sets player address
NG Proxy Support uses a fail-closed model:
proxyServerIPs → PROXY header is read, real IP is extracteddirectAccessIPs → Allowed without PROXY headerThis prevents players from bypassing your proxy to connect directly and spoof their IP.
velocity.toml:[advanced]
haproxy-protocol = true
proxyServerIPs in the mod configproxyServerIPsMade by xylos | © 2024-2026 All rights reserved