NeoForged Velocity 支持
为 Velocity 的现代转发(Modern Forwarding)功能添加对 NeoForge 的支持。Velocity 的现代转发协议能够直接将用户数据从代理传输至服务器,在防火墙之上提供第二层防护,抵御恶意行为者的攻击。更多详细信息请参阅官方文档:这里。
本实现力求与 Paper 的现代转发实现保持一致,以提高兼容性并简化代码。
如有任何问题,请在 我的 Discord 的 #velocity-support 频道中提问。
开始使用
首先,你需要设置一个 Velocity 代理。如果你已经查看到这个模组,我假设你已经完成了代理的设置。如果没有,关于如何设置代理的详细步骤,请参阅官方文档:这里。
当你准备将 NeoForge 服务器连接到代理时,请将对应版本的模组安装到你的服务器上。之后,只需将代理的 forwarding.secret 文件复制到你的 NeoForge 服务器目录中。当然,请确保你的服务器处于离线模式(在 server.properties 中设置 online-mode=false)。启动你的服务器即可!
故障排除
如果你在连接服务器时遇到问题,并且 Velocity 报告数据包解码错误,请在代理的启动脚本中添加以下参数:
-Dvelocity.packet-decode-logging=true
这将使 Velocity 提供更详细的数据包解码错误信息。
NeoForged Velocity Support
Adds support for Velocity's Modern Forwarding in NeoForge. Velocity's Modern
Forwarding protocol transfer user data directly from the proxy to the server, which acts as a second layer of
protection against bad actors on top of your firewall. For more detailed information, see the official documentation
here.
This implementation strives for consistency with Paper's implementation of modern
forwarding. This helps with compatibility and keeps the code simple.
For any questions, please ask in the #velocity-support channel on my discord.
Getting Started
First, you will need a Velocity proxy set up. I assume if you are already looking at this mod, you already have this
set up. If not, for detailed steps on setting up a proxy, see the official documentation
here.
Once you are at the point where you want to connect your NeoForge server to the proxy, install the mod of the
appropriate version to your server. After that, simply copy your proxy's forwarding.secret file into your NeoForge
server's directory. Of course, make sure your server is in offline mode (online-mode=false in server.properties).
Launch your server and you are good to go!
Troubleshooting
If you are having troubles connecting to your server and Velocity is giving a packet decoding error, add the following
argument to your proxy's startup script:
-Dvelocity.packet-decode-logging=true
This will make Velocity give more information regarding packet decoding errors.
评论 0
登录后参与评分
还没有评论,来抢沙发吧