Information: Minecraft Server: I started working on my old Minecraft server called Terona. Join our discord if you want :D Join

NetworkLock troubleshooting

What every NetworkLock refusal, console line and doctor message means, and how to fix it.

NetworkLockChecked

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.

  1. The same NetworkLock.jar version is on the proxy and every game server.
  2. The game server runs Paper, Folia, Spigot, one of their forks, or Sponge, not CraftBukkit.
  3. Forwarding is on: modern, legacy or bungeeguard in velocity.toml, or ip_forward: true on BungeeCord and Waterfall.
  4. The game server has the matching forwarding setting, and only one: proxies.velocity.enabled in config/paper-global.yml (settings.velocity-support in paper.yml on Paper 1.13 to 1.18) or settings.bungeecord in spigot.yml. On Sponge, ip-forwarding in config/sponge/sponge.conf.
  5. network.server-id on each game server matches its name in the proxy config exactly.
  6. Each game server's trusted-proxies lists the proxy's network.id with its key.
  7. /networklock proxies shows the same fingerprint on the proxy and the game server.
  8. The clocks on the proxy and game servers are synced (NTP).
  9. /networklock status says State: enforcing on both sides.

A player is refused#

Refused logins are logged on the game server as:

text
Denied login name=Steve uuid=... address=... reason=WRONG_TARGET

Since 1.0.1, the line also says what to do, after a colon. Find the reason here:

ReasonWhat it meansWhat to do
MISSINGNo 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.
MULTIPLEMore than one signature in the profile.Something added a second networklock profile property. Check other proxy plugins that change profiles.
MALFORMEDThe 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_PROXYSigned 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_SIGNATUREThe 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_TARGETThe signature was made for another server name.Set network.server-id to the server's name in the proxy config, then reload.
EXPIREDThe signature is older than 30 seconds.Sync the server clocks. On very slow joins, you can raise authentication.max-token-age-seconds.
NOT_YET_VALIDThe proxy's clock is more than 5 seconds ahead of the game server.Sync the server clocks.
REPLAYEDThis signature was already used once.A replay attempt, or two game servers share the same server-id. Give every server its own.
REPLAY_CACHE_FULLToo many used signatures to remember.Raise authentication.replay-cache-max-entries.
LOCKDOWNThe game server is in lockdown.See The server is in lockdown.
INTERNAL_ERRORSomething 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:

text
LOCKDOWN: every login will be denied until this is fixed (<reason>)
Reason in bracketsFix
invalid configurationThe 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 checkedLogged 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:

text
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.

ProblemFix
invalid YAML at line NA YAML syntax error, often a tab or a missing quote, at or before that line.
top level must be a mappingThe 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 configurationFill in server-id.
'network.server-id' has spaces at the start or end; it must match the proxy's server name exactlyRemove the spaces.
'network.server-id' must be 1 to 64 characters without control charactersUse 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 keyAdd the proxy's key.
key is emptyThe 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 longKeys may be at most 128 bytes.
environment variable X is not setSet the variable for the server process, or use the key directly.
cannot read key file XCheck the path and that the server can read it.
'protection.exempt' contains an invalid address or range: XUse IP addresses or ranges like 203.0.113.0/24. Host names are not allowed.
must be a whole number between A and BUse a number in that range.
must be true or falseUse true or false.
must be a listUse a YAML list, for example ["a", "b"].
must be a single valueThat setting cannot be a list or section.
must be text or a list of linesA 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:

text
Proxy 'proxy-2' shares a key with another entry: a leak of one compromises both. Give every proxy its own key.

Doctor messages#

LineWhat 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 proxyMove 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 deniedTurn 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 usesTurn 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 playersSet forwarding in velocity.toml.
FAIL ip_forward is false in BungeeCord's config.yml; backends cannot verify playersSet ip_forward: true and restart the proxy.
FAIL proxy internals not recognised; connections are not being signedYour 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 itFirewall the port. NetworkLock still refuses direct logins.
WARN config.yml is readable by other users; run chmod 600 on itRun chmod 600 on the file.
WARN connection limiting is disabledOnly a reminder, if you turned it off on purpose.
WARN address tracker is full; new addresses are not being throttledRaise 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-syncedSync the clocks.
WARN logins signed for another server name were denied; check network.server-id matches the proxy's server nameFix server-id.
WARN could not determine player-info-forwarding-mode from velocity.toml or WARN velocity.toml not readable; forwarding mode not checkedCheck forwarding by hand.
WARN config/sponge/sponge.conf not readable; forwarding mode not checkedCheck Sponge forwarding by hand.
INFO network.id is the default 'proxy-1'; give every proxy a distinct id when you run more than oneFine with one proxy.
INFO proxy 'X' has N keys; remove the old one once rotation is finishedFinish 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#

MessageMeaning
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 addressesMany logins at once, possibly an attack. NetworkLock is not DDoS protection.
Suppressed N further security events in the last 10sLog 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 againAnother 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 versionThe 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").

Your likes

Only what this browser did. Your data on this device