Falaxy HaProxy Support is a Minecraft Forge 1.20.1 mod that adds PROXY Protocol v1/v2 support, flood protection, connection metrics, and TCPShield integration, preserving real IP addresses behind reverse proxies.
Professional PROXY Protocol implementation for Minecraft Forge 1.20.1. Get real player IPs behind reverse proxies, load balancers, and DDoS protection services.
When your server is behind a proxy (HAProxy, Nginx, TCPShield), all players appear to connect from the proxy's IP. This breaks:
This mod reads PROXY protocol headers and restores real player IPs.
mods/ folderconfig/falaxy_haproxy.json{
"enableProxyProtocol": true,
"proxyServerIPs": ["10.0.0.1"],
"directAccessIPs": ["127.0.0.1"],
"whitelistTCPShieldServers": false,
"enableRateLimiting": true,
"maxConnectionsPerSecond": 10,
"verboseLogging": false
}
| Option | Description |
|---|---|
proxyServerIPs |
Trusted proxy IPs (must send PROXY headers) |
directAccessIPs |
IPs allowed without PROXY headers |
whitelistTCPShieldServers |
Auto-fetch TCPShield IPs |
enableRateLimiting |
Enable per-IP rate limiting |
maxConnectionsPerSecond |
Max connections per IP/second |
verboseLogging |
Enable debug logging |
backend minecraft
mode tcp
server mc1 YOUR_SERVER:25565 send-proxy-v2
stream {
server {
listen 25565;
proxy_pass YOUR_SERVER:25565;
proxy_protocol on;
}
}
[advanced]
proxy-protocol = true
{
"enableProxyProtocol": true,
"whitelistTCPShieldServers": true,
"directAccessIPs": ["127.0.0.1"]
}
{
"enableProxyProtocol": true,
"proxyServerIPs": ["YOUR_PROXY_IP"],
"directAccessIPs": [],
"enableRateLimiting": true,
"maxConnectionsPerSecond": 3
}
proxyServerIPsverboseLoggingsend-proxy or send-proxy-v2 in proxy configproxyServerIPsIncrease maxConnectionsPerSecond or disable rate limiting temporarily.
MIT License - free for commercial and private use.
Author: SSbaxyS
Version: 1.0.0