COWMODSКаталог модов

HAProxyDetectorPaper

HAProxyDetector for Paper and Velocity

Автор: TendoArisu6650обновлён 11 окт. 2026 г.
Управление

Описание

HAProxyDetector

A lightweight plugin designed to support both native HAProxy / Proxy Protocol and direct player connections simultaneously on Paper/Folia and Velocity.

Key Features

  • Hybrid Connection Support: Simultaneously handles genuine HAProxy/frp proxy traffic and direct player connections.
  • Native Parser Compatibility: Probes protocols on a per-connection basis; direct connections bypass the native HAProxy decoder directly.
  • Domain / IP / CIDR Whitelisting: whitelist supports individual IPs, CIDR subnets, and domain names.

Supported Platforms

  • Paper / Folia: Theoretically supports any version with native HAProxy / Proxy Protocol functionality.
  • Velocity: Targeted at 3.3.0+, compatible with Velocity 4.x's current connection initialization architecture.

Configuration

Both Paper and Velocity share the same config.yml structure:

language: # detect and save the OS/JVM language; or set en_US / zh_CN
enable-whitelist: true
whitelist:
  - 127.0.0.1
  - "::1"
  - frps.example.com
  - 203.0.113.0/24

Whitelist Rules

  • IP: Exact match.
  • CIDR: Subnet matching, e.g., 203.0.113.0/24.
  • Domain Name: Automatically resolved to IP addresses when the plugin loads the configuration to participate in matching.

Domain Whitelist Notes

  • Domain names are resolved when the plugin loads or reloads the configuration, not dynamically on every connection.
  • If DNS resolution changes later, a server restart or plugin reload is required to refresh the cached IPs.
  • If a domain temporarily fails to resolve, the plugin will not fail to start.

Logging Behavior

Intercept log field descriptions:

  • frps: The real source IP of the upstream proxy server.
  • client: The client source IP carried in the HAProxy header.

Example:

[HAProxyDetectorPaper] Blocked non-whitelisted frps connection: frps=91.78.69.13, client=91.78.69.13

Usage

  1. Configure the Platform:
    • Paper / Folia: Set proxy-protocol to true in config/paper-global.yml (newer versions) or paper.yml (legacy versions).
    • Velocity: Set haproxy-protocol to true under [advanced] in velocity.toml. The plugin reuses Velocity's native HAProxy decoder.
  2. Install the Plugin: Place the plugin JAR into the respective platform's plugins folder.
  3. Configure Whitelist (Optional): If you only want to allow specific frps sources, configure whitelist in config.yml.
  4. Restart Server / Proxy.

Последние версии

Все версии →
release

HAProxyDetectorPaper 1.5

1.5
11 окт. 2026 г.320Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11, 26.1, 26.1.1, 26.1.2, 26.2, 26.3bukkit, folia, paper, purpur, spigot, velocity
Скачать
release

HAProxyDetectorPaper 1.4

1.4
3 июл. 2026 г.168Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11folia, paper, purpur, velocity
Скачать
Что нового
修复间歇泉玩家被当成 frps 错误拦截
release

HAProxyDetectorPaper 1.3

1.3
8 апр. 2026 г.94Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11folia, paper, purpur, velocity
Скачать
Что нового
添加 frps 白名单功能
release

HAProxyDetectorPaper 1.2

1.2
7 мар. 2026 г.32Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur, velocity
Скачать
Что нового
增加 proxy-protocol 自动检测功能并修复 IPv6
release

HAProxyDetectorPaper 1.1

1.1
9 февр. 2026 г.24Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur, velocity
Скачать
Что нового
Fix Geyser
release

HAProxyDetectorPaper 1.0

1.0
5 февр. 2026 г.25Minecraft: 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11paper, purpur, velocity
Скачать
Что нового
Initial Release