The symptom
- Backend logs show every player from
127.0.0.1, a10.x,172.xor192.168.xaddress, or your proxy's public address. - Players get offline-mode UUIDs on the backend, so their inventories and permissions seem to vanish.
- IP bans, alt checks and anti-VPN or country rules on the backend hit everyone at once, or nobody.
- Velocity warns at startup:
Player info forwarding is disabled! All players will appear to be connecting from the proxy and will have offline-mode UUIDs.
Why it happens
In a network, players connect to Velocity or BungeeCord, and the proxy opens its own connection to the backend. The backend sees the proxy, not the player. Player info forwarding lets the proxy pass the player's real address and verified UUID along with that connection. It is off until you turn it on at both ends.
Velocity: modern forwarding
For backends on Minecraft 1.13 and newer. In velocity.toml:
player-info-forwarding-mode = "modern"Velocity keeps the shared secret in forwarding.secret next to velocity.toml. On each Paper backend, in config/paper-global.yml:
proxies:
velocity:
enabled: true
online-mode: true # same value as online-mode in velocity.toml
secret: 'the contents of forwarding.secret'Set online-mode=false in the backend's server.properties, keep settings.bungeecord: false in spigot.yml, and restart the backend. On Paper 1.18.2 and older the same options live in paper.yml under settings.velocity-support.
Backends older than 1.13 need legacy forwarding: player-info-forwarding-mode = "legacy" plus settings.bungeecord: true in spigot.yml. Legacy forwarding has no secret, so the backend must be unreachable from the internet. The bungeeguard mode with the BungeeGuard plugin adds a token. Details: PaperMC's forwarding docs.
BungeeCord and Waterfall: ip_forward
In the proxy's config.yml:
ip_forward: trueOn each Spigot or Paper backend, in spigot.yml:
settings:
bungeecord: trueSet online-mode=false in the backend's server.properties and restart. BungeeCord forwarding carries no secret: anyone who can reach the backend directly can claim any name, UUID and address. The next section is not optional here.
Close the backends
Backends in a network should never be reachable from the internet. Bind them to 127.0.0.1 when the proxy runs on the same machine, or allow their ports only from the proxy's address in the firewall. That protects forwarding and keeps your backends out of reach of attacks that target them directly.
Behind a DDoS protection service there is one more hop: the service to your proxy. That hop uses PROXY protocol, not forwarding. See real player IPs behind DDoS protection.
Where security plugins belong
Install anti-VPN, country and anti-bot plugins on the proxy. It sees every player's real address first and one installation covers every backend. Connection Guard runs on Velocity and BungeeCord from the same JAR as on Paper: Velocity, BungeeCord.
On a backend without forwarding, such a plugin checks the proxy's address for every player. A private address like 127.0.0.1 can't be judged by any detection service, and some of them list private addresses as VPNs. The result can be that nobody gets in. Fix the forwarding, or move the plugin to the proxy.