NetworkLock commands and permissions
Every /networklock subcommand, what its output means, and the permissions that control it.
On this page
NetworkLock has one command, /networklock, with the alias /nlock. It works the same on proxies and game servers. Run it from the console or in game.
Subcommands#
| Command | What it does |
|---|---|
/networklock help | Lists the subcommands you are allowed to use. Also shown when you type /networklock alone. |
/networklock status | Shows whether protection is active and the main settings. |
/networklock reload | Checks the config and applies it only if it is valid. |
/networklock doctor | Looks for setup mistakes. |
/networklock stats | Counts allowed and refused logins since startup. On game servers it also shows how full the replay memory is. |
/networklock proxies | Shows key fingerprints, so you can compare proxy and game server without showing the key. |
/networklock about | Shows the plugin version, LATEST or OUTDATED, the update notify setting and the server count. |
/networklock version | The 1.0.0 name, still accepted. Shows the same as about. |
An unknown subcommand gives Unknown command. Use /networklock help.
Permissions#
| Permission | Default on Paper, Spigot and forks | Gives |
|---|---|---|
networklock.admin | op | Every subcommand. |
networklock.command.<name> | op | One subcommand, for example networklock.command.doctor. version uses networklock.command.about. |
networklock.notify | op | Told about new versions when joining the proxy. networklock.admin also counts. |
On Velocity, BungeeCord, Waterfall and Sponge, grant these with your permissions plugin, for example LuckPerms. The console can always run every subcommand.
What the output means#
status#
On a game server:
State: enforcing
Server id: lobby
Trusted proxies: 1
Token lifetime: 30s (clock skew allowance 5s)
Replay cache: 12/100000
Uptime: 3600s
Platform: Paper 1.21.11-R0.1-SNAPSHOTOn a proxy:
State: enforcing
Proxy id: proxy-1
Key fingerprint: 1a2b:3c4d:5e6f:7a8b
Connection limit: 10 per 10s
Tracked addresses: 40, temporarily blocked: 0
Platform: Velocity 3.5.1If the first line says State: LOCKDOWN, nobody can log in. The reason is in brackets. See Troubleshooting.
stats#
On a game server, stats counts each login result since startup. ok is always shown; the others only once they happened. The names match the reason= in the console:
| Name | Meaning |
|---|---|
ok | Accepted. |
missing | No signature: a direct connection, or forwarding is off. |
multiple | More than one signature in the profile. |
malformed | The signature could not be read. |
unknown_proxy | Signed by a proxy that is not in trusted-proxies. |
bad_signature | The signature does not match that proxy's key. |
wrong_target | Signed for another server name. |
expired | Older than max-token-age-seconds. |
not_yet_valid | The proxy's clock is too far ahead. |
replayed | The signature was already used. |
replay_cache_full | Too many signatures to remember. |
lockdown | The server is in lockdown. |
internal_error | Something failed while checking. |
The last line, for example replay memory: 12 / 100000, shows how many used signatures the game server remembers, out of authentication.replay-cache-max-entries.
On a proxy, stats shows signed connections, throttled logins, blocked logins, refused during lockdown and backend rejections (refusals from game servers that the proxy translated into your messages).
proxies#
On a game server it lists each trusted proxy and its key fingerprints:
proxy-1 - key fingerprints [1a2b:3c4d:5e6f:7a8b]On a proxy it shows its own:
This proxy: proxy-1 (key fingerprint 1a2b:3c4d:5e6f:7a8b)
Backends must list this id with a key of the same fingerprint.The fingerprint is a short one-way hash. It is safe to share, but the key itself is not.
doctor#
Each line starts with OK, INFO, WARN or FAIL. When NetworkLock starts, every line that is not OK is also written to the console as doctor: .... The troubleshooting page explains each line.
Renaming the command#
Since 1.0.1 you can change the name and aliases with commands.name and commands.aliases in config.yml. Restart the server or proxy to apply. See Configuration.