Offer Why us? How it works?
Guide

Velocity Modern Forwarding: How to Secure Backend Servers (and BungeeGuard)

A server behind a Velocity proxy runs with online-mode=false – the proxy handles login, not the server. Leave it unprotected and anyone who knows its address can join it directly under any username, including your admin's. This guide explains how modern forwarding with a secret works, how to set it up with one click in the Spot.gg panel or by hand on Paper, Fabric and Forge, when you need BungeeGuard, and how to tell a backend is exposed.

Updated: 13 min read
Table of contents
  1. Why do servers behind a proxy need securing?
  2. Velocity player info forwarding modes
  3. How does modern forwarding work?
  4. Modern forwarding on Spot.gg – one click
  5. The "Anyone can join this server directly" warning
  6. Setting up modern forwarding by hand: Paper, Fabric, Forge
  7. Paper, Purpur, Folia (1.19 and newer)
  8. Fabric
  9. Forge and NeoForge
  10. Vanilla
  11. online-mode: what goes on the proxy and what on the backend
  12. BungeeGuard – when do you need it?
  13. How to replace a leaked secret
  14. Common problems
  15. FAQ
  16. Isn't it enough to keep the backend's address secret?
  17. Can a whitelist on the backend replace modern forwarding?
  18. Does modern forwarding work on Minecraft 1.12.2 and older?
  19. Can players on older game versions join through a MODERN proxy?
  20. Can I still join the backend directly after connecting it to the proxy?
  21. How do I disconnect a server from the proxy?

Why do servers behind a proxy need securing?

A backend server behind a proxy runs with online-mode=false, so it doesn't check whether a player owns a real Minecraft account – it trusts whatever the proxy sends. If it also accepts connections that skip the proxy, anyone with its address can join under any username: your admin, an operator, the owner of a claim.

Here's how a proxy network works:

  1. The player connects to the Velocity proxy. The proxy (with online-mode = true) verifies their account with Microsoft.
  2. The proxy sends the player on to a backend server (lobby, survival, minigames) and passes along their username, UUID, real IP address and skin.
  3. The backend doesn't contact Microsoft – it has to run online-mode=false, otherwise it rejects every player coming through the proxy.

The weak spot is step 3. The backend has a normal address and port that can be reached without the proxy. So it needs a way to tell "this really came from my proxy" apart from "someone pretending to be the proxy". That's what player info forwarding with a secret is for – on Velocity, ideally in MODERN mode.

Large networks also firewall their backends so they only accept connections from the proxy's IP. On hosting where every server has its own public address and there's no per-server firewall (Spot.gg included), modern forwarding is the main line of defense. Velocity's own docs note that a firewall usually isn't an option on shared hosting.

Velocity player info forwarding modes

The mode is set by player-info-forwarding-mode in velocity.toml: NONE, LEGACY, BUNGEEGUARD or MODERN. The default is NONE, and only MODERN is truly secure (BUNGEEGUARD to a lesser degree).

Mode What the backend receives Blocks connections that bypass the proxy Backend versions
NONE (default) Nothing – every player has the proxy's IP and an offline UUID No Any
LEGACY IP and UUID in BungeeCord format No – anyone can pretend to be the proxy Any, needs bungeecord: true in spigot.yml
BUNGEEGUARD Same as LEGACY plus a token Yes, as long as the token stays secret and the backend runs the BungeeGuard plugin Mainly 1.12.2 and older
MODERN IP, UUID and skin, signed with the secret Yes – the backend rejects anything without a valid signature Minecraft 1.13 and newer

Velocity's documentation calls LEGACY "fundamentally insecure": the BungeeCord format has no protection at all, so a modified client can join such a backend as any player. NONE and LEGACY are only fine for servers whose address no outsider knows – in practice, nothing public.

How does modern forwarding work?

The proxy and the backend share the same secret from the forwarding.secret file. The proxy signs player data with it and the backend checks the signature – no valid signature, no entry.

  • Velocity creates forwarding.secret on first start (its path is set by forwarding-secret-file in velocity.toml).
  • You put the same secret on every backend – on Paper, in config/paper-global.yml.
  • If someone connects to the backend directly with a normal client, it gets no signed data and disconnects them with "This server requires you to connect with Velocity."
  • If someone tries to forge the data without knowing the secret, the signature doesn't match and the backend turns them away too.

A useful side effect: the backend sees each player's real IP (IP bans work), real UUID (whitelist, permissions, inventories) and skin.

The protection is only as good as the secret. Anyone who has it can build their own "proxy" and join your backends as anyone. Don't paste it in Discord, support tickets or screenshots.

Modern forwarding on Spot.gg – one click

In the proxy's panel, open "Configuration" → "Servers", add a server with "Add server", click "Save changes", then click "Connect to the proxy" next to any server marked "Needs connecting". The panel configures the backend's files and switches the proxy to MODERN for you.

Before you start:

  • You need a separate server running the Velocity engine (the proxy) and at least one Minecraft Java server on the same Spot.gg account (the backend). The proxy only connects servers hosted on Spot.gg – an address outside Spot.gg in velocity.toml stops it from starting. Building the whole network is covered in how to set up a Velocity network.
  • Start the proxy once – that's when velocity.toml and forwarding.secret are created.
  • Start each backend once so it creates its configuration files.

Step by step:

  1. In the proxy's panel, go to "Configuration" → "Servers" tab.
  2. Under "Servers behind the proxy", click "Add server" and pick the backend. The panel writes its address into velocity.toml and keeps it up to date.
  3. Under "Connection order", choose which server players land on after joining, then click "Save changes".
  4. The panel checks each backend's files and shows its state: "Linked", "Needs connecting" or "Incompatible engine".
  5. Next to a server marked "Needs connecting", click "Connect to the proxy". The panel restarts that server for you.
  6. If the proxy wasn't on MODERN before, restart the proxy too.

What "Connect to the proxy" changes:

Backend engine File changes
Paper, Purpur, Folia server.properties: online-mode=false; config/paper-global.yml: proxies.velocity.enabled: true, online-mode matching the proxy, secret from forwarding.secret; spigot.yml: settings.bungeecord: false
Paper 1.18.2 and older Same, but in paper.yml under settings.velocity-support
Fabric (with the FabricProxy-Lite mod) server.properties: online-mode=false; config/FabricProxy-Lite.toml: secret and hackOnlineMode
Proxy velocity.toml: player-info-forwarding-mode = "MODERN" (if it was different)

Only the server owner sees the secret and the "Connect to the proxy" button. Sub-users with access to the proxy don't, because the secret unlocks every backend on the account.

The "Anyone can join this server directly" warning

If a backend has online-mode=false but isn't receiving MODERN player data from the proxy, the panel shows "Anyone can join this server directly." next to it. That's exactly the problem described at the top of this guide – click "Connect to the proxy". The "Needs connecting" state also comes back when the backend's secret no longer matches the proxy (for example after you change forwarding.secret).

Setting up modern forwarding by hand: Paper, Fabric, Forge

Copy the secret in the proxy's panel under "Configuration" → "Servers", in the "Player info forwarding" section, with "Copy secret". Edit the backend's files in that server's "Files" tab, and restart the backend after each change.

Proxy first: in the same section, set "Mode" to MODERN, click "Save changes" and restart the proxy. In velocity.toml that gives you:

player-info-forwarding-mode = "MODERN"
forwarding-secret-file = "forwarding.secret"

Paper, Purpur, Folia (1.19 and newer)

  1. server.properties: online-mode=false
  2. spigot.yml: settings.bungeecord: false (with true, Paper expects the BungeeCord format instead of Velocity's)
  3. config/paper-global.yml:
proxies:
  velocity:
    enabled: true
    online-mode: true
    secret: 'paste-the-secret-from-forwarding.secret'

Set online-mode in this section to match online-mode in velocity.toml – usually true. On Paper 1.18.2 and older, the same three keys live in paper.yml under settings.velocity-support. Paper supports modern forwarding natively from 1.14 (and on 1.13.1–1.13.2 from build 377).

Fabric

Fabric can't talk to Velocity on its own – you need the FabricProxy-Lite mod. Upload its .jar (for your Minecraft version) to the mods folder in the "Files" tab, start the server once, then set in config/FabricProxy-Lite.toml:

hackOnlineMode = true
secret = "paste-the-secret"

Plus online-mode=false in server.properties. Once the mod is in mods, it's easier to click "Connect to the proxy" – the panel fills this in for you.

Forge and NeoForge

These need the Proxy Compatible Forge mod. The panel doesn't configure it automatically: upload the mod to mods, start the server once, then put the secret in the secret field of the forwarding section in config/proxy-compatible-forge.toml and set online-mode=false in server.properties. If your network runs Forge servers, also turn on announce-forge on the proxy in the "velocity.toml" tab.

Vanilla

Plain Vanilla can't accept MODERN player data from Velocity. A Vanilla server behind the proxy is either unreachable or exposed. Switch its engine to Paper (your world stays): "Information" → "Profile" → "Modify" → "Change engine". The differences between engines are explained in Minecraft server software.

online-mode: what goes on the proxy and what on the backend

On the proxy online-mode = true; on every backend online-mode=false in server.properties, and proxies.velocity.online-mode in paper-global.yml matching the proxy.

Where Option Value Why
Proxy, velocity.toml online-mode true The proxy verifies accounts with Microsoft – the only place login happens
Proxy, velocity.toml player-info-forwarding-mode "MODERN" Signed player data
Backend, server.properties online-mode false With true the backend rejects players from the proxy
Backend, paper-global.yml proxies.velocity.online-mode same as proxy Tells the backend players are already verified

On Spot.gg you change the proxy's online-mode under "Configuration" → "Most popular" or in the "velocity.toml" tab. For security reasons, only an account with permission to run console commands can change it.

A cracked network (proxy with online-mode = false) is possible, but then the proxy doesn't verify accounts and you need a login plugin on the proxy, such as LibreLogin. Modern forwarding is still essential – without it, someone can skip the proxy's login by joining a backend directly. See non-premium Minecraft server for details.

BungeeGuard – when do you need it?

BungeeGuard adds a secret token to the BungeeCord forwarding format. It's meant for BungeeCord networks and for Velocity with backends on Minecraft 1.12.2 or older, where MODERN doesn't work. For 1.13+ servers behind Velocity, always pick MODERN.

Spot.gg doesn't offer BungeeCord or Waterfall as an engine – the proxy in the panel is Velocity. So on Spot.gg, BungeeGuard only makes sense in one case: Velocity with a Paper backend on an old version (such as 1.8.8 or 1.12.2).

Behind Velocity:

  1. On the proxy, under "Configuration" → "Servers" → "Player info forwarding", set "Mode" to BUNGEEGUARD, click "Save changes" and restart the proxy. Velocity has BungeeGuard built in – nothing to install on the proxy, and the token is the contents of forwarding.secret.
  2. On the backend, set settings.bungeecord: true in spigot.yml and online-mode=false in server.properties.
  3. Upload the BungeeGuard plugin (.jar from its official project page) to the backend's plugins folder in the "Files" tab and start the server once.
  4. In plugins/BungeeGuard/config.yml, add the proxy's secret to the allowed-tokens list and remove the example tokens.
  5. Run bungeeguard reload in the console or restart the server.

Paper 1.9.4 and newer has what BungeeGuard needs built in; on Spigot you also need ProtocolLib. Keep in mind the proxy has one mode for all backends – in a network mixing 1.12 and 1.13+ servers, all of them get the BungeeGuard format.

For a BungeeCord network outside Spot.gg: on the proxy, set ip_forward: true in config.yml, put BungeeGuard in plugins and copy the token from plugins/BungeeGuard/token.yml; then do steps 2–5 on each backend.

How to replace a leaked secret

Put a new, long random value in forwarding.secret on the proxy, restart the proxy, then click "Connect to the proxy" again for every backend.

  1. In the proxy's "Files" tab, open forwarding.secret, replace its contents with a new string (for example 32 random letters and digits) and save.
  2. Restart the proxy.
  3. Under "Configuration" → "Servers", the backends now show "Needs connecting" because the old secret no longer matches. Click "Connect to the proxy" for each one.

Until the backends have the new secret, players can't reach them through the proxy – do this outside peak hours.

Common problems

Message or symptom Cause Fix
"This server requires you to connect with Velocity." Modern forwarding is on for the backend but not the proxy (or someone is connecting to the backend directly) Set MODERN on the proxy and restart it. On a direct connection, this message means the protection is working
"If you wish to use IP forwarding, please enable it in your Bungeecord config as well!" Backend has bungeecord: true in spigot.yml, but the proxy isn't sending BungeeCord format For MODERN, set bungeecord: false and configure paper-global.yml
"Your server did not send a forwarding request to the proxy. Is it set up correctly?" The backend has no Velocity support enabled (e.g. Vanilla, FabricProxy-Lite missing) Enable proxies.velocity.enabled or install the mod, then restart
"Unable to verify player details" The backend's secret differs from forwarding.secret Click "Connect to the proxy" again or paste the current secret
Players have different UUIDs, inventories and permissions are gone NONE mode – the backend sees everyone as offline accounts Switch to MODERN. Make a backup under "Backups" first
Every player shows the same IP NONE mode or a backend without forwarding Set MODERN on the proxy and backends
"Anyone can join this server directly." in the panel Backend with online-mode=false and no MODERN forwarding "Connect to the proxy"

FAQ

Isn't it enough to keep the backend's address secret?

No. A backend's address and port can be found with a port scan or simply guessed – and a backend with online-mode=false and no forwarding lets anyone in under any name. Real protection comes from modern forwarding with a secret (or a firewall, where you can use one).

Can a whitelist on the backend replace modern forwarding?

No. A whitelist checks the username and UUID, and on an online-mode=false server without forwarding both can be faked. Set up the whitelist after enabling MODERN – then it works on real accounts. More in Minecraft server whitelist.

Does modern forwarding work on Minecraft 1.12.2 and older?

No, only from 1.13. For older backends behind Velocity, use BUNGEEGUARD mode with the BungeeGuard plugin on the backend.

Can players on older game versions join through a MODERN proxy?

Yes. The forwarding mode is about the proxy-to-backend connection, not the player's game version. To support several client versions, use ViaVersion on the proxy or the backend.

Can I still join the backend directly after connecting it to the proxy?

No. With MODERN, anyone who bypasses the proxy gets "This server requires you to connect with Velocity." From then on everyone, admins included, joins through the proxy's address.

How do I disconnect a server from the proxy?

Removing a server from the list under "Servers" only changes velocity.toml – the backend's files stay as they are. To make the server work on its own again, set online-mode=true in server.properties and proxies.velocity.enabled: false in config/paper-global.yml in its "Files" tab, then restart it.

Other guides

How to OP Someone in Minecraft: /op, ops.json and Permission Levels How to op someone on a Minecraft Java server: the op and deop commands, granting OP in the panel, the ops.json file, op-permission-level 1–4 and why OP disappears on offline-mode servers. 9 min read How to Set Up a Velocity Network: Lobby, Survival and Minigames Under One Address How to link several Minecraft servers into one network with a Velocity proxy: velocity.toml, server priority (try), forced-hosts, modern forwarding and Paper servers behind the proxy. 10 min read Minecraft Server Backups vs. Autosave Explained How Minecraft autosave (save-all, every 5 minutes) differs from a server backup, how to back up a Minecraft server, how long backups are kept and how to restore a world. 8 min read How to Install WorldGuard: Regions, Flags and Commands Install WorldGuard and WorldEdit, protect spawn with //wand and /rg define, set flags like pvp, build and mob-spawning, add members and use priorities. Plus GriefPrevention. 11 min read Cretania Modpack Guide: Create Server, Custom Recipes, RAM and Hosting Cretania is a Fabric 1.20.1 Create modpack made for Percxy's server: what's inside, custom KubeJS recipes, blocked items, RAM and how to host your own server. 8 min read How to Set Up LuckPerms: Groups, Permissions, Editor and Prefixes LuckPerms setup for a Minecraft server: install it, create groups, add permissions, use the web editor and set chat prefixes. All key /lp commands with examples. 11 min read