A proxy is not a security boundary if players can still connect directly to a backend. Velocity's modern forwarding helps prove that forwarded player information came from the proxy, but PaperMC explicitly says it does not replace a firewall.
1) Restrict the network path first
Expose only the Velocity listener to players. Keep each Paper backend on loopback when the proxy and backend share a machine, or on a private network when they are on separate hosts. Configure the host firewall or provider security group so backend ports accept traffic only from the proxy's address. Do not add backend ports to public router or hosting-panel rules. If your host cannot filter backend traffic, ask what private-network or proxy-protection feature it supports before putting an offline-mode backend on the public internet.
2) Configure modern forwarding on supported versions
For Paper 1.13 or newer, set `player-info-forwarding-mode = "modern"` in `velocity.toml`. Keep Velocity's forwarding secret in the generated secret file and do not post it in screenshots, logs or forum messages.
On each Paper backend, set `online-mode=false` in `server.properties` so the proxy handles player authentication. In `spigot.yml`, leave `settings.bungeecord=false` when using modern forwarding. In current Paper's `config/paper-global.yml`, enable `proxies.velocity.enabled`, set `proxies.velocity.secret` to the same secret used by Velocity, and make `proxies.velocity.online-mode` match Velocity's `online-mode`. Restart both proxy and backend after changing configuration. Older Paper versions may put these settings in `paper.yml`; check the version-specific docs.
3) Verify the setup
Join through the public proxy using a test account. Check that the expected UUID, skin and plugin permissions appear correctly. Then test from a network outside the hosting machine: a direct connection to a backend address and port should fail. If it succeeds, fix the firewall or network binding before inviting players.
Do not enable proxy settings you do not use. Velocity's `proxy-protocol` is a separate feature for HAProxy or similar software, not a substitute for player forwarding. If you must support clients older than 1.13, consult Velocity's legacy-forwarding instructions and keep the same firewall restriction.
References:
Velocity server security: https://docs.papermc.io/velocity/security/
Velocity player information forwarding: https://docs.papermc.io/velocity/player-information-forwarding/
Velocity configuration: https://docs.papermc.io/velocity/configuration/
1) Restrict the network path first
Expose only the Velocity listener to players. Keep each Paper backend on loopback when the proxy and backend share a machine, or on a private network when they are on separate hosts. Configure the host firewall or provider security group so backend ports accept traffic only from the proxy's address. Do not add backend ports to public router or hosting-panel rules. If your host cannot filter backend traffic, ask what private-network or proxy-protection feature it supports before putting an offline-mode backend on the public internet.
2) Configure modern forwarding on supported versions
For Paper 1.13 or newer, set `player-info-forwarding-mode = "modern"` in `velocity.toml`. Keep Velocity's forwarding secret in the generated secret file and do not post it in screenshots, logs or forum messages.
On each Paper backend, set `online-mode=false` in `server.properties` so the proxy handles player authentication. In `spigot.yml`, leave `settings.bungeecord=false` when using modern forwarding. In current Paper's `config/paper-global.yml`, enable `proxies.velocity.enabled`, set `proxies.velocity.secret` to the same secret used by Velocity, and make `proxies.velocity.online-mode` match Velocity's `online-mode`. Restart both proxy and backend after changing configuration. Older Paper versions may put these settings in `paper.yml`; check the version-specific docs.
3) Verify the setup
Join through the public proxy using a test account. Check that the expected UUID, skin and plugin permissions appear correctly. Then test from a network outside the hosting machine: a direct connection to a backend address and port should fail. If it succeeds, fix the firewall or network binding before inviting players.
Do not enable proxy settings you do not use. Velocity's `proxy-protocol` is a separate feature for HAProxy or similar software, not a substitute for player forwarding. If you must support clients older than 1.13, consult Velocity's legacy-forwarding instructions and keep the same firewall restriction.
References:
Velocity server security: https://docs.papermc.io/velocity/security/
Velocity player information forwarding: https://docs.papermc.io/velocity/player-information-forwarding/
Velocity configuration: https://docs.papermc.io/velocity/configuration/