Skip to content
Minecraft Minecraft: Bedrock Edition Rust Counter-Strike 2 Palworld Valheim Satisfactory Enshrouded
Configure server Sign in
DE EN

Secure Velocity Player Forwarding with a Protected Backend

Secure the trust relationship between Velocity and Paper by matching forwarding settings, authentication, versions, and backend access controls.


On a Java server using Velocity, the proxy should authenticate players and pass their identity securely to Paper. The backend should accept connections only from the proxy. Modern Forwarding alone does not make a publicly reachable backend port private; you also need an effective network restriction.

Prerequisites and version limits

You need administrative write access to Velocity's velocity.toml and secret file, to server.properties, and to the relevant Paper configuration. You must also be able to restart the proxy and backend in a controlled way and restrict the network path to the backend so direct player connections are rejected. The files may be available through a panel or shell; shell access alone is not enough if the provider does not allow a private backend connection or suitable access control. If that network boundary is unavailable, clarify it with the hosting provider first. This guide does not assume an AeonHost proxy service.

This procedure covers Paper as the backend; it does not apply unchanged to Spigot, Vanilla, or a mod loader. Before making changes, check the Minecraft client and Paper versions. PaperMC lists the following limits for Velocity modern forwarding:

State Assessment
Minecraft 1.13 or newer, without ProtocolSupport Client versions suitable for Modern Forwarding.
Paper 1.14 or newer Native support.
Paper 1.13.1 or 1.13.2 Native support starting with build 377.
Clients below 1.13 or ProtocolSupport Modern Forwarding is incompatible. Legacy Forwarding is fundamentally insecure.

The PaperMC player information forwarding matrix documents these limits; the older version numbers are not a recommendation to run an outdated server. Keep backend access closed if the versions are incompatible.

Configure Velocity and Paper to use the same trust chain

  1. Back up the existing configuration files separately and note which file belongs to which version. Stop the affected instances before making changes and plan the restart. Set up the network restriction described below now. Do not start the backend with its own authentication disabled until only the proxy can access it.
  2. In velocity.toml, set player-info-forwarding-mode to modern. Keep online-mode enabled on the Velocity proxy so the proxy handles authentication with Mojang. The forwarding-secret-file entry points to the file containing the shared secret. Velocity's configuration reference describes these fields and the purpose of the secret.
  3. For Paper 1.19 and newer, in config/paper-global.yml set proxies.velocity.enabled to true, proxies.velocity.secret to the secret in the proxy file, and proxies.velocity.online-mode to true. The dotted paths refer to nested YAML fields; preserve their indentation. For Paper through 1.18.2, the corresponding fields in paper.yml are settings.velocity-support.enabled, settings.velocity-support.secret, and settings.velocity-support.online-mode. The forwarding online mode must match the enabled proxy online mode; the Paper reference explains its meaning for UUIDs and player data. Keep the secret and backups private. Disable old BungeeCord forwarding by setting settings.bungeecord in spigot.yml to false.
  4. Set online-mode=false in the backend server.properties only behind this authenticating proxy and effective network restriction. If the secret or proxy login is unclear, keep the backend stopped. This step does not apply to standalone servers that are directly reachable.
  5. Restart the proxy and backend. PaperMC requires a server restart after changing the Paper configuration. Check the startup messages from both instances before allowing players to connect.

Prevent and check direct backend connections

Use an effective provider network rule or firewall that allows only the proxy to reach the backend. A private IP alone does not prove this restriction is in place. Binding to loopback is suitable only when the proxy and backend use the same controlled machine and no other users or servers there can access it. For separate containers or hosts, the actual network path matters. PaperMC explicitly warns that Modern Forwarding does not replace a firewall. On shared hosts, the hosting provider must supply the restriction. If you cannot manage the rule safely, ask for documented proxy-only access.

Then check two separate paths with an approved test account. First, connect through Velocity and compare its UUID with the known authenticated identity. Check the inventory, skin, whitelist mapping, and existing OP/plugin permissions. A normal test account must not receive unexpected administrative rights; do not grant extra OP rights just for this test. Paper documents UUID mappings in whitelist.json and ops.json; if needed, read these files instead of replacing UUIDs by hand.

Next, try to connect directly to the backend address from outside the proxy path. This route must be blocked at the network level. A Minecraft kick for missing forwarding does not prove that the network restriction works. If the connection reaches the backend or a direct join is possible, block external backend access and correct the access control before allowing players in.

According to the Velocity FAQ, a Velocity message such as This server requires you to connect with Velocity points to a mode mismatch: Paper expects modern forwarding, but Velocity is not sending it. In that case, check player-info-forwarding-mode and the enabled Paper support. For login problems, check the secret match locally and the forwarding online mode from step 3. Its value here is true; online-mode in the backend server.properties remains false. Never share the secret while troubleshooting.

PaperMC says Modern Forwarding uses a MAC and makes proxy spoofing harder. PaperMC lists an encrypted tunnel as a separate method; Modern Forwarding does not replace transport encryption over an untrusted route or the backend access restriction (securing the server). For questions about server platforms, see choosing Minecraft server software; for startup issues, see Minecraft server startup troubleshooting. If your plan actually involves changing providers, the separate guide to safely moving a Minecraft server to a new host covers that process.

Sources

Did this guide help? We are happy to help personally.