Velocity Security: Protect Your Minecraft Backend Servers
Secure a Velocity Minecraft network with restricted backend access, modern forwarding, private secrets, and practical connection and identity checks.
Fabricio Souza
Founder, GeneX Plugins · 7+ years building Minecraft plugins
A secure Velocity network needs backend servers that accept connections only through the intended proxy. Configure supported player forwarding, protect its secret, and restrict network access to the backends. Then test the public and private connection paths separately.
PaperMC's Velocity security guide explicitly states that modern forwarding does not replace a firewall. Treat those controls as separate layers rather than choosing one and assuming the network is protected.
This checklist focuses on deployment verification. For initial installation, begin with our Velocity setup guide.
Draw the actual connection path
List the public proxy address, every backend address and port, and which hosts run each process. Include test servers and old instances that may still be reachable.
The intended path should be clear:
Player -> public Velocity listener -> restricted backend serverRecord the addresses used by management tools separately. Remote administration and database access should not become public merely because you are opening the proxy's player port.
If the proxy and backends share a host, investigate the documented localhost-binding approach. If they run on separate hosts, use appropriate network restrictions or another documented secure connection arrangement. Confirm your hosting provider supports the architecture before relying on it.
Restrict direct access to each backend
PaperMC warns that a backend configured for a proxy can permit player impersonation if the necessary protection is missing. The practical requirement is that unrelated clients must not be able to enter that backend directly. Velocity backend security
Use host and provider controls appropriate to your deployment. Make the proxy's permitted source explicit. Keep a recovery route for administration so a mistaken firewall change does not lock you out of the machine.
Test restrictions from outside the trusted network. A connection failing from your own laptop while succeeding from another public path deserves investigation. Check every backend, not only the lobby, and repeat the test after host migrations or control-panel changes.
Configure supported player forwarding
Use the official forwarding guide for the exact backend platform and supported versions. Confirm the proxy's forwarding mode, backend settings, and shared secret agree.
Keep secrets out of public repositories, screenshots, and support logs. If you disclose one, replace it consistently across the components that need it and test the network again.
Do not bypass a forwarding error by weakening authentication until the connection happens to work. Compare the intended mode and configuration on both sides. A successful join under an unintended identity is a failure, even if the disconnect message disappears.
Verify identity and permissions end to end
Use an ordinary player account and check the identity seen by your permission, economy, claim, and moderation integrations. Confirm that switching backends and reconnecting preserves the expected account state.
| Test | Expected outcome |
|---|---|
| Join through the public proxy | Intended authenticated identity reaches the backend |
| Connect directly from an untrusted network | Backend is inaccessible through that path |
| Switch between backends | Permissions and identity remain consistent |
| Reconnect after restart | Persistent account state is retained |
| Invalid forwarding configuration in staging | Connection is rejected rather than silently trusted |
For Bedrock access, include the actual Geyser and Floodgate entry path. Our crossplay checklist covers account handling and player-facing tests. Verify that crossplay changes have not accidentally opened a separate backend route.
Keep the network safe during maintenance
Document the intended topology, permitted sources, and forwarding configuration without embedding secret values. Review it whenever you add a backend, change providers, or replace a proxy instance.
Retire unused listeners and old servers. A forgotten staging backend can undermine a carefully restricted production setup if it shares valuable data or trusted credentials.
Before changes, keep a recoverable backup. Test administrative recovery and player access separately so restoring service does not require abandoning your access controls.
Frequently asked questions
Is modern forwarding enough by itself?
PaperMC says it is not a replacement for a firewall. Use the documented forwarding controls alongside backend network restrictions.
Can I publish the backend address?
Secrecy of an address is not an access-control mechanism. Build a setup where untrusted direct connections are restricted even if someone learns the address.
What if a custom plugin behaves differently behind the proxy?
Capture the expected identity, actual behavior, exact versions, and a minimal reproduction. Share logs with secrets removed. Request an integration review if the feature needs changes to respect the intended network and account model.
Last updated . Spotted a mistake? Let us know.