Securing Your Minecraft Network: Mastering Velocity's Player Forwarding for Performance and Protection
Published 2026-11-27 20:19 UTC · by PixelRaid Owner
Running a successful Minecraft server, especially a network with multiple game modes or versions, often necessitates a proxy server. This intermediary sits between your players and your backend game servers, handling initial connections, load balancing, and providing a unified entry point. For years, BungeeCord and its forks like Waterfall served this role admirably. However, as Minecraft and its community evolve, so too do the demands for performance, flexibility, and crucially, security.
Today, Velocity stands out as the recommended high-performance, scalable proxy server for modern Minecraft networks. Developed by the PaperMC team, it addresses many of the limitations and security concerns inherent in older proxy solutions, offering a more robust and secure foundation for your server ecosystem.
Limitations of Legacy Proxies
Older proxy solutions, while functional, often came with inherent security vulnerabilities, particularly concerning player identity. The most significant of these was the potential for UUID spoofing. In a traditional BungeeCord setup, player information (such as UUID and username) was forwarded to backend servers based on the client's IP address. While a server might verify this information with Mojang upon initial login, once a player was connected via the proxy, backend servers often trusted the information passed to them.
This trust model made networks susceptible to malicious players who could bypass the proxy and connect directly to a backend server. By manually crafting packets, they could potentially impersonate other players, leading to griefing, account theft, or privilege escalation. Furthermore, legacy proxies could introduce performance bottlenecks, especially under heavy load, due to their older architecture and less efficient connection handling.
Velocity: A Modern Solution for Secure Networks
Velocity was designed from the ground up to tackle these issues. Its modern architecture focuses on performance, stability, and a dramatically improved security model. The key to Velocity's enhanced security lies in its sophisticated player information forwarding mechanism.
Understanding Secure Player Forwarding
Player forwarding is the process by which a proxy server transmits authenticated player data from the initial connection to the various backend servers on your network. This data typically includes the player's username, UUID, and potentially their IP address and properties (like skin data).
The critical difference with Velocity is how this data is handled and secured. Instead of merely passing raw information or relying solely on IP addresses, Velocity employs cryptographic signatures to verify the authenticity of player data. This means that when a player connects through Velocity, the proxy authenticates them with Mojang, and then signs the player's unique information before sending it to the backend server. The backend server, configured to work with Velocity, then verifies this signature, ensuring the player's identity has not been tampered with.
Velocity's Forwarding Modes
Velocity offers different player information forwarding modes, each with varying levels of security and compatibility:
- NONE: This mode disables player forwarding. It is not recommended for most networks as it means backend servers won't receive player UUIDs or IPs, leading to issues with plugins and security.
- LEGACY_FORWARDING: This mode is compatible with older backend server software that expects BungeeCord-style forwarding. It's an improvement over BungeeCord's original but still less secure than MODERN as it doesn't use cryptographic signatures. It's primarily for compatibility with older server cores that don't support Velocity's modern forwarding.
- MODERN: This is the recommended and most secure forwarding mode. It uses cryptographic signatures to ensure player data integrity. For this to work, your backend servers must also support Velocity's modern forwarding, which PaperMC and PurpurMC servers do. This mode virtually eliminates UUID spoofing risks.
Configuring Velocity for Optimal Security and Performance
To leverage Velocity's full security and performance benefits, you need to configure both the Velocity proxy and your backend PaperMC or PurpurMC servers correctly.
Velocity Configuration (velocity.toml)
Locate your velocity.toml file. The key section is player-info-forwarding:
# The forwarding mode to use. Valid options are: NONE, LEGACY_FORWARDING, MODERN
mode = "MODERN"
# The secret to use for forwarding, this must be kept absolutely secret!
# It is recommended to generate this with a secure password generator.
secret = "YOUR_VERY_STRONG_AND_UNIQUE_SECRET_HERE"
- Set mode = "MODERN" to enable the most secure forwarding.
- Generate a strong, unique secret string. This secret is used to sign and verify player data between Velocity and your backend servers. It must be identical across Velocity and all your backend servers. Never share this secret.
Backend Server Configuration (paper.yml or purpur.yml)
On each of your backend PaperMC or PurpurMC servers, you need to enable Velocity forwarding and provide the same secret.
In your paper.yml (or purpur.yml, depending on your core):
settings:
bungeecord: true
proxies:
velocity:
enabled: true
secret: "YOUR_VERY_STRONG_AND_UNIQUE_SECRET_HERE"
online-mode: true # Ensure this is true for proper Mojang authentication
- bungeecord: true: While Velocity is not BungeeCord, many plugins and backend server functionalities still rely on this setting to understand they are behind a proxy. Keep this enabled.
- proxies.velocity.enabled: true: Explicitly enables Velocity's forwarding on the backend.
- proxies.velocity.secret: "YOUR_VERY_STRONG_AND_UNIQUE_SECRET_HERE": This must exactly match the secret in your velocity.toml.
- online-mode: true: This is crucial. Even though Velocity handles the initial Mojang authentication, backend servers should still have online-mode: true to ensure they are prepared for secure connections and to prevent players from joining with invalid authentication if they somehow bypass the proxy (which secure forwarding largely prevents).
Securing Backend Server Ports
Even with secure forwarding, a critical step is to prevent players from bypassing Velocity entirely and connecting directly to your backend servers. This is achieved through firewall rules:
- Block direct access to backend server ports: Configure your server's firewall (e.g., UFW on Linux, Windows Firewall) to only allow connections to your backend Minecraft server ports (e.g., 25566, 25567) from the IP address of your Velocity proxy. All other inbound connections to these ports should be denied.
- Expose only the Velocity proxy port: Your Velocity proxy's port (typically 25565) should be the only Minecraft-related port publicly accessible to players.
Performance Benefits Beyond Security
Beyond its robust security, Velocity offers tangible performance advantages:
- Efficient connection handling: Velocity's modern network stack is highly optimised for handling a large number of concurrent connections with minimal overhead.
- Reduced latency: Its design often results in lower ping times for players compared to older proxies.
- Scalability: Velocity is built to scale, allowing you to seamlessly add more backend servers as your network grows without sacrificing performance.
- Active development: Being actively maintained by the PaperMC team means continuous improvements, bug fixes, and optimisations, ensuring it stays ahead of the curve.
Actionable Steps Checklist
- Choose MODERN forwarding: Always opt for the "MODERN" forwarding mode in your velocity.toml for maximum security.
- Generate a strong secret: Create a long, complex, unique secret string for your proxy. Store it securely.
- Configure Velocity: Update your velocity.toml with the "MODERN" mode and your generated secret.
- Configure Backend Servers: For each backend PaperMC or PurpurMC server, enable bungeecord: true, proxies.velocity.enabled: true, and set the identical secret in your paper.yml/purpur.yml.
- Set online-mode: true: Ensure online-mode is true on all backend servers for robust authentication.
- Secure Backend Ports: Implement firewall rules to restrict direct access to your backend server ports, allowing connections only from your Velocity proxy's IP address.
- Test Thoroughly: After configuration, test player connections, plugin functionality, and attempt direct backend connections (which should fail) to verify your setup.
Embracing Velocity's secure player forwarding is a crucial step for any server owner looking to build a modern, high-performance, and secure Minecraft network. It eliminates significant security risks like UUID spoofing and provides a more stable and efficient experience for your players. By correctly configuring your proxy and backend servers, you can ensure your community enjoys a safe and seamless journey across your entire server ecosystem. For those seeking reliable infrastructure to host their Velocity-powered networks, PixelRaid Hosting offers managed solutions designed for performance and security.
Sources and further reading
PaperMC: "Home" - https://papermc.io/
MCServerHost: "How to Set Up a Velocity" - https://mcserverhost.com/guides/how-to-setup-velocity