NoDDoS v6.2.9 技术概览
NoDDoS 是一款面向 Minecraft 1.21+ 的轻量级安全工具,旨在缓解基于数据包的漏洞利用和自动化机器人加入行为。该系统采用原子滑动窗口(Atomic Sliding Window)算法按玩家监控传入流量,确保攻击者无法通过在秒末发送数据包来绕过速率限制。它使用 ConcurrentHashMap 和 Atomic 变量实现高并发安全性,从而在负载高峰期间维持服务器稳定性。
核心功能:
数据包过滤:专门监控 CUSTOM_PAYLOAD、CHAT 和 WINDOW_CLICK 数据包类型。
加入速率限制:实施两级阈值(正常和突发),以区分服务器重启与机器人攻击。
渐进式惩罚:根据特定 IP 地址的违规频率增加封禁时长。
资源效率:使用异步清理任务和单次踢出调度,以最小化对主线程的影响。
配置 (config.yml):
settings:
# 正常条件下每秒允许的最大玩家加入数
joins-per-second: 5
# 突发加入限制 - 达到此值将触发渐进式封禁系统
burst-limit: 15
# 单个 IP 地址允许的最大同时连接数
max-connections-per-ip: 2
# 每个玩家每秒允许的最大数据包数量(聊天、点击、载荷)
max-packets-per-second: 300
messages:
prefix: "&8[&6NoDDoS&8] "
# 达到正常加入限制时显示的消息
global-cooldown: "&c服务器当前繁忙!请稍等几秒再试。"
# IP 超出连接限制时显示的消息
ip-limit: "&c来自此 IP 的连接过多。请注销其他账号。"
# 数据包洪水攻击的踢出消息
packet-spam: "&c检测到可疑的数据包流量!出于安全考虑已断开连接。"
# 当前被渐进式封禁系统阻止的玩家收到的消息
blacklisted: "&c由于可疑活动,您的 IP 已被暂时屏蔽。请稍候。"
# 插件重载后发送给管理员的消息
reload: "&a配置已重新加载,违规记录已清除!"
技术要求:
Java 21 和 Java 25
需要 ProtocolLib 依赖项用于数据包拦截。
NoDDoS v6.2.9 Technical Overview
NoDDoS is a lightweight security utility for Minecraft 1.21+ designed to mitigate packet-based exploits and automated bot joins. The system uses an Atomic Sliding Window algorithm to monitor incoming traffic per-player, ensuring that rate limits cannot be bypassed by timing packets at the end of a second. It operates with high concurrency safety using ConcurrentHashMap and Atomic variables to maintain server stability during high-load events.
Core Functionality:
Packet Filtering: Specifically monitors CUSTOM_PAYLOAD, CHAT, and WINDOW_CLICK packet types.
Join Rate Limiting: Implements a two-tier threshold (Normal and Burst) to distinguish between server restarts and bot attacks.
Progressive Punishment: Increases ban duration based on the frequency of violations from a specific IP address.
Resource Efficiency: Uses asynchronous cleanup tasks and single-kick scheduling to minimize main-thread impact.
Configuration (config.yml):
settings:
# Maximum allowed player joins per second under normal conditions
joins-per-second: 5
# Burst join limit - Reaching this triggers the progressive ban system
burst-limit: 15
# Maximum simultaneous connections allowed from a single IP address
max-connections-per-ip: 2
# Maximum packets (Chat, Click, Payload) allowed per second per player
max-packets-per-second: 300
messages:
prefix: "&8[&6NoDDoS&8] "
# Message when the normal join limit is reached
global-cooldown: "&cThe server is currently busy! Please wait a few seconds and try again."
# Message when an IP exceeds the connection limit
ip-limit: "&cToo many connections from this IP. Please logout from your other accounts."
# Kick message for packet flooding
packet-spam: "&cSuspicious packet traffic detected! Connection closed for security."
# Message for players currently blocked by the progressive ban system
blacklisted: "&cYour IP has been temporarily blocked due to suspicious activity. Please wait."
# Message sent to admins after reloading the plugin
reload: "&aConfiguration reloaded and violation records cleared!"
Technical Requirements:
Java 21 and Java 25
ProtocolLib dependency required for packet interception.
评论 0
登录后参与评分
还没有评论,来抢沙发吧