BungeeGuard is a plugin-based security/firewall solution for BungeeCord and Velocity proxies.
This is the RealmsNetwork-maintained fork of BungeeGuard+. It protects Minecraft backend servers against direct proxy bypass and includes compatibility handling for Floodgate-backed Geyser and Minecraft Education Edition connections.
Recognized Floodgate handshakes are passed through without requiring a separate BungeeGuard token. Floodgate's encrypted forwarding payload must still be validated by Floodgate on the backend using the matching key. Install and correctly configure Floodgate on each backend that uses this compatibility path. Non-Floodgate connections continue to require an allowed BungeeGuard token.
BungeeCord installations are insecure by default, and require additional firewall rules to be configured (using iptables or otherwise) to prevent malicious users from bypassing the proxy and connecting using any uuid/username they choose.
This is a well-known issue, and over the years many (even large) servers have been successfully targeted using this attack.
The conventional solution recommended by the BungeeCord author is to configure a firewall rule using iptables or ufw to prevent outside connections to the backend servers.
However, there are two main problems with this:
- Configuring these firewall rules is complicated, especially for inexperienced users.
- Even experienced users sometimes make mistakes or overlook things. Unless the setup is absolutely perfect, rules are prone to being broken during later changes, or reset on system reboot.
- Users on "shared hosting" do not have access to the underlying system and most likely cannot setup their own firewall rules.
Server admins install BungeeGuard (just an ordinary plugin!) on their proxies and backend servers.
- On the proxy, BungeeGuard adds a secret "authentication token" to the login handshake.
- On the backend (Spigot etc. server), BungeeGuard checks login handshakes to ensure they contain an allowed authentication token.
It's really that simple.
Installation is very straightforward.
If you have access to the underlying system and are able to setup firewall rules using iptables (or otherwise), I strongly recommend you do so. Then, install BungeeGuard as well.
See INSTALLATION.md for a detailed install guide.
BungeeGuard is licensed and made available under the permissive MIT license. Please see LICENSE.txt for more information.
Details about vulnerability reporting & security disclosures can be found in SECURITY.md.