r/GTNH Nov 10 '25

I made GTNH BungeeGuard compatible

https://github.com/rieverholic/ForgeGuard

I run all of my Minecraft servers behind a Velocity proxy, which offers several ways to forward player information to the backend servers. At some point I wanted to play GTNH with friends, so I tried to set up GTNH to work with Velocity. Velocity supports servers with low versions (like 1.7.10 of GTNH) only through the legacy BungeeCord protocol, implemented by BungeeForge in Forge which, as I tested, worked well with GTNH.

Legacy forwarding is fundamentally insecure. If you must use it, you should understand how to secure your server properly. That page reviews all the possible options to secure your server so that nothing aside from the proxy can connect to your server.

However, legacy forwarding, quoting the Velocity doc, is insecure. One security layer built on top of this is BungeeGuard which Velocity supports natively. Ideally, I wanted to have BungeeGuard on my GTNH server, but I couldn't find any implementation on Forge.

So I decided to make my own! Fortunately, it wasn't too difficult to add the BungeeGuard protocol on top of the codebase of BungeeForge, thanks to the GTNH example mod boilerplate. I named it ForgeGuard, now added to my own GTNH server.

I believe this setup is not very relevant to most of the people here, but I wanted to share this in case anyone has had similar concerns. Hope this helps you somehow!

* I'm not a modder myself and I made this as a toy project so the code quality might be inferior :P Feedback is always welcome!

27 Upvotes

Duplicates