NetworkLock troubleshooting
What every NetworkLock refusal, console line and doctor message means, and how to fix it.
On this page
Start with /networklock doctor on the proxy and on the game server. It finds most setup mistakes. Then look up the exact line from the console below.
Check your setup#
Go through this list first. Most problems are one of these.
- The same
NetworkLock.jarversion is on the proxy and every game server. - The game server runs Paper, Folia, Spigot, one of their forks, or Sponge, not CraftBukkit.
- Forwarding is on:
modern,legacyorbungeeguardinvelocity.toml, orip_forward: trueon BungeeCord and Waterfall. - The game server has the matching forwarding setting, and only one:
proxies.velocity.enabledinconfig/paper-global.yml(settings.velocity-supportinpaper.ymlon Paper 1.13 to 1.18) orsettings.bungeecordinspigot.yml. On Sponge,ip-forwardinginconfig/sponge/sponge.conf. network.server-idon each game server matches its name in the proxy config exactly.- Each game server's
trusted-proxieslists the proxy'snetwork.idwith its key. /networklock proxiesshows the same fingerprint on the proxy and the game server.- The clocks on the proxy and game servers are synced (NTP).
/networklock statussaysState: enforcingon both sides.
A player is refused#
Refused logins are logged on the game server as:
Denied login name=Steve uuid=... address=... reason=WRONG_TARGETSince 1.0.1, the line also says what to do, after a colon. Find the reason here:
| Reason | What it means | What to do |
|---|---|---|
MISSING | No NetworkLock signature arrived. | The player connected directly, or came through a proxy without NetworkLock, or forwarding is off on the proxy or the game server. Check items 3 and 4 above. |
MULTIPLE | More than one signature in the profile. | Something added a second networklock profile property. Check other proxy plugins that change profiles. |
MALFORMED | The signature could not be read. | Usually a forged connection. If it happens to real players, make sure the proxy and server run the same version. |
UNKNOWN_PROXY | Signed by a proxy id that is not in trusted-proxies. | Add that proxy's network.id and key to the game server and run /networklock reload. |
BAD_SIGNATURE | The signature does not match the key set for that proxy. | Copy security.key from the proxy again and compare /networklock proxies on both sides. |
WRONG_TARGET | The signature was made for another server name. | Set network.server-id to the server's name in the proxy config, then reload. |
EXPIRED | The signature is older than 30 seconds. | Sync the server clocks. On very slow joins, you can raise authentication.max-token-age-seconds. |
NOT_YET_VALID | The proxy's clock is more than 5 seconds ahead of the game server. | Sync the server clocks. |
REPLAYED | This signature was already used once. | A replay attempt, or two game servers share the same server-id. Give every server its own. |
REPLAY_CACHE_FULL | Too many used signatures to remember. | Raise authentication.replay-cache-max-entries. |
LOCKDOWN | The game server is in lockdown. | See The server is in lockdown. |
INTERNAL_ERROR | Something failed while checking. | Look at the console line above it and report it with your server version. |
What the player sees depends on the message codes.
The server is in lockdown#
A game server in lockdown refuses every login and logs:
LOCKDOWN: every login will be denied until this is fixed (<reason>)| Reason in brackets | Fix |
|---|---|
invalid configuration | The lines before it start with Configuration problem:. Fix each one in config.yml and run /networklock reload. |
cannot create config.yml: ... | The server cannot write to its plugin folder. Fix the folder's owner or permissions and restart. |
this server has no Mojang GameProfile class, so forwarded players cannot be checked | Logged as LOCKDOWN: every login will be denied (...). Your server software is not supported. Use Paper, Spigot or a fork. A reload cannot lift this. |
startup error: ... | Logged as LOCKDOWN: every login will be denied (...), after Startup error (...); all logins will be denied. Restart; if it stays, report it with the full console log. |
On CraftBukkit there is no lockdown line: it has no proxy forwarding, so every login arrives without a signature and is refused with reason MISSING. /networklock doctor says so. Use Spigot, Paper or a Paper fork.
A proxy in lockdown refuses logins with the security-error message and logs:
LOCKDOWN: logins will be refused until this is fixed (<reason>)Fix the Configuration problem: lines in the proxy's config.yml or messages.yml and run /networklock reload.
Configuration problems#
Each problem is logged as Configuration problem: <file>: '<setting>' <problem>. The values themselves, such as keys, are never printed.
| Problem | Fix |
|---|---|
invalid YAML at line N | A YAML syntax error, often a tab or a missing quote, at or before that line. |
top level must be a mapping | The file is not a normal YAML settings file. Start from the default file. |
cannot read file (...) | Check the file exists and the server can read it. |
'network.server-id' must be set to this server's name in the proxy configuration | Fill in server-id. |
'network.server-id' has spaces at the start or end; it must match the proxy's server name exactly | Remove the spaces. |
'network.server-id' must be 1 to 64 characters without control characters | Use the server's name from the proxy config. |
'authentication.trusted-proxies' must list at least one proxy (id + key from the proxy's config.yml) | Add at least one proxy entry. |
'authentication.trusted-proxies[0]' must be a mapping with 'id' and 'keys' | Each entry needs id: and keys: lines, indented under the -. |
'id' must be 1-64 characters of A-Z a-z 0-9 . _ - | Use a simple id such as proxy-1. Same rule for the proxy's network.id. |
'id' is listed twice ('proxy-1') | Each proxy id may appear once. Put several keys in one entry's keys list instead. |
'keys' must contain at least one key | Add the proxy's key. |
key is empty | The key value is blank. |
key is not valid base64 (generate one with a fresh proxy install) | The key was not copied completely. Copy it again from the proxy. |
key is too short (N bytes, need 32) | Use a key of at least 32 bytes, for example from openssl rand -base64 32. |
key is too long | Keys may be at most 128 bytes. |
environment variable X is not set | Set the variable for the server process, or use the key directly. |
cannot read key file X | Check the path and that the server can read it. |
'protection.exempt' contains an invalid address or range: X | Use IP addresses or ranges like 203.0.113.0/24. Host names are not allowed. |
must be a whole number between A and B | Use a number in that range. |
must be true or false | Use true or false. |
must be a list | Use a YAML list, for example ["a", "b"]. |
must be a single value | That setting cannot be a list or section. |
must be text or a list of lines | A message must be text or a list of lines. |
is too long (max 2048 characters) | Shorten the message. |
This warning does not stop the server, but you should fix it:
Proxy 'proxy-2' shares a key with another entry: a leak of one compromises both. Give every proxy its own key.Doctor messages#
| Line | What to do |
|---|---|
OK configuration valid ... | Nothing. |
FAIL lockdown: <reason> | See The server is in lockdown. |
FAIL this is CraftBukkit, which has no proxy forwarding at all; every login is denied. Use Spigot, Paper or a Paper fork behind a proxy | Move to Spigot, Paper or a Paper fork. |
FAIL no proxy forwarding enabled (spigot.yml settings.bungeecord, or Velocity forwarding in paper-global.yml / paper.yml); players cannot be verified and every login is denied | Turn on the forwarding setting that matches your proxy. |
FAIL both spigot.yml settings.bungeecord and Velocity forwarding are enabled; enable only the one your proxy uses | Turn one off. With both on, Paper refuses Velocity players. |
FAIL proxy forwarding is off (sponge.conf: ...) | On Sponge, set modules.ip-forwarding=true and ip-forwarding.mode to LEGACY or MODERN. |
FAIL player-info-forwarding-mode is none; backends cannot verify players | Set forwarding in velocity.toml. |
FAIL ip_forward is false in BungeeCord's config.yml; backends cannot verify players | Set ip_forward: true and restart the proxy. |
FAIL proxy internals not recognised; connections are not being signed | Your BungeeCord or Waterfall build changed an internal NetworkLock needs. Use a supported build and report it. Logins are refused, not let through. |
WARN server listens on all interfaces; firewall port N so only your proxies can reach it | Firewall the port. NetworkLock still refuses direct logins. |
WARN config.yml is readable by other users; run chmod 600 on it | Run chmod 600 on the file. |
WARN connection limiting is disabled | Only a reminder, if you turned it off on purpose. |
WARN address tracker is full; new addresses are not being throttled | Raise protection.max-tracked-addresses, or you are under a very wide flood. |
WARN a proxy clock is up to Nms ahead of this server; keep clocks NTP-synced | Sync the clocks. |
WARN logins signed for another server name were denied; check network.server-id matches the proxy's server name | Fix server-id. |
WARN could not determine player-info-forwarding-mode from velocity.toml or WARN velocity.toml not readable; forwarding mode not checked | Check forwarding by hand. |
WARN config/sponge/sponge.conf not readable; forwarding mode not checked | Check Sponge forwarding by hand. |
INFO network.id is the default 'proxy-1'; give every proxy a distinct id when you run more than one | Fine with one proxy. |
INFO proxy 'X' has N keys; remove the old one once rotation is finished | Finish your key change. |
INFO N login(s) arrived without proxy credentials: ... | Direct connections, or a proxy without NetworkLock or with forwarding off. |
OK forwarding mode: legacy (NetworkLock signs each connection; use modern for 1.13+ backends where possible) | Works. modern is recommended. |
Other console messages#
| Message | Meaning |
|---|---|
Generated a new proxy key in config.yml. ... | First start of a proxy. Copy the key to the game servers. |
Proxy 'proxy-1' ready, key fingerprint ... | The proxy loaded its config. |
Throttled login from <address> (LIMITED) or (BLOCKED) | The login limit refused someone. |
Connection flood: more than 200 login attempts in one second across all addresses | Many logins at once, possibly an attack. NetworkLock is not DDoS protection. |
Suppressed N further security events in the last 10s | Log lines were limited so an attack cannot flood the console. |
This proxy build is not supported (...). Connections cannot be signed, so backends will reject every player. | BungeeCord or Waterfall internals changed. Use a supported build. |
Could not sign the connection of <name> (backend will refuse it): ... | Signing failed for one player on BungeeCord. Report it with the proxy version. |
Server name 'X' cannot be signed (it must be 1 to 64 characters without control characters); rename it in the proxy config. Players are refused there. | Logged once per name on the proxy. Rename that server in the proxy config. |
Another plugin re-allowed a login NetworkLock denied (<name>); denying again | Another plugin tried to let a refused player in. NetworkLock refused them again. |
Connection credential still present on <name>'s profile; please report this with your server version | The signature was not removed from a player's profile on the game server. Report it. |
NetworkLock was disabled while the server is running: this backend no longer rejects direct or forged logins. Restart the server to restore protection. | A plugin manager or command disabled NetworkLock. Restart the server. |
Error verifying login of <name> (denied): ... or Internal error while verifying a login (denied): ... | An error while checking one player. They were refused. Report it. |
A new NetworkLock version is available: X (you have Y). Download: ... | The update checker found a newer release. |
Could not register the /<name> command: ... | The command could not be registered on this server. |
Players see "not whitelisted"#
That message comes from Paper, not NetworkLock. In tests, Paper 26.x had its whitelist switched on. Turn it off or add the players.
Players with a queue plugin see the plain text#
Queue plugins like ajQueue connect players their own way, so the proxy cannot replace the game server's text. They show Unable to verify your connection. Please join through the network. [NL-0x]. Since 1.0.1 you can set your own text under messages: in the game server's config.yml.
Still stuck#
Run /networklock doctor, /networklock status and /networklock proxies on the proxy and the game server, and get help at kori.my. Remove keys from anything you share; fingerprints are safe. Report security problems privately on GitHub (Security tab, "Report a vulnerability").