修复以下问题:
-
拦截超过 8,388,608 字节或长度超过 8 字节/宽度超过 21 位的出站数据包
-
过滤大于 1,048,576 字节或 32,767 字节的有效载荷
-
拒绝超过 2,097,152 字节的压缩数据包
-
阻止读取超过 2,097,152 字节的 NBT 标签
-
丢弃尝试在读取时分配过多内存的区块数据包
-
丢弃超出协议限制的 VarInt 和 VarLong 值
-
防止因格式错误或过大的数据包导致的连接超时
-
拦截每 tick 移动超过 10 格的玩家位移
-
限制垂直跳跃高度超过 5 格
-
过滤极端旋转(俯仰角超过 ±90° 或偏航角超出安全每 tick 限制)
-
防止交互滥用(每秒挥动武器或执行方块操作超过 10 次)
PacketShield 在 Netty 层面工作,用于拦截和验证出站数据包,在数据到达服务器之前自动过滤不安全的数据。完全自动化,无需任何设置。
对于在原版或轻度修改服务器上遇到典型客户端错误的普通玩家来说,PacketShield 可将自踢出率降低约 80–95%。
Fixes these problems:
-
Outgoing packets that exceed 8,388,608 bytes or have lengths over 8 bytes/wider than 21 bits are blocked
-
Payloads larger than 1,048,576 bytes or 32,767 bytes are filtered
-
Compressed packets exceeding 2,097,152 bytes are rejected
-
Attempts to read NBT tags larger than 2,097,152 bytes are stopped
-
Chunk packets trying to allocate excessive memory on read are discarded
-
VarInt and VarLong values that exceed protocol limits are dropped
-
Connection timeouts caused by malformed or oversized packets are prevented
-
Player movements over 10 blocks per tick are blocked
-
Vertical jumps higher than 5 blocks are restricted
-
Extreme rotations (pitch beyond ±90° or yaw beyond safe per-tick limits) are filtered
-
Interaction spam (more than 10 hand swings or block actions per second) is prevented
PacketShield works at the Netty level to intercept and validate outgoing packets, automatically filtering unsafe data before it reaches the server. Fully automatic, no settings required.
For a normal player experiencing typical client-side errors on vanilla or lightly-modded servers, PacketShield could reduce self-inflicted kicks by roughly 80–95%.
评论 0
登录后参与评分
还没有评论,来抢沙发吧