NetworkLock FAQ
Short answers to common questions about NetworkLock, its keys, supported servers and limits.
On this page
- Setup
- Do I need different jars for the proxy and the game servers?
- Do I still need a firewall?
- Does it work with Velocity modern forwarding?
- Can I use more than one proxy?
- Why does a new game server let nobody in?
- Does it work on plain Spigot?
- Keys and security
- What happens if a key leaks?
- How do I check a key matches without showing it?
- Can I keep the key out of config.yml?
- Can someone reuse a signature they captured?
- Is NetworkLock DDoS protection?
- Day to day
- Does NetworkLock slow down logins?
- Can I change the messages players see?
- Does NetworkLock send any data anywhere?
- Can I turn the protection off for testing?
Setup#
Do I need different jars for the proxy and the game servers?#
No. The same NetworkLock.jar goes on Velocity, BungeeCord, Waterfall, Paper, Folia, Spigot, their forks and Sponge. Each platform only loads its own part.
Do I still need a firewall?#
Yes. NetworkLock refuses direct logins, but a firewall that only lets your proxies reach the game servers is the first line. NetworkLock is the lock behind it, and it also protects you if the firewall is ever wrong.
Does it work with Velocity modern forwarding?#
Yes. modern is recommended. legacy and bungeeguard also work. With modern, Velocity's own forwarding check stays active and NetworkLock adds its own signature on top.
Can I use more than one proxy?#
Yes. Give each proxy its own network.id. Each proxy creates its own key. On every game server, add one trusted-proxies entry per proxy. If one key leaks, you remove only that proxy's entry.
Why does a new game server let nobody in?#
Until network.server-id and trusted-proxies are filled in, the server is in lockdown on purpose. Fill them in and run /networklock reload. See Install.
Does it work on plain Spigot?#
Yes, since 1.0.1. It checks players properly on Spigot, old Paper (before 1.12.2) and 1.8 forks like PandaSpigot, without ProtocolLib. 1.0.0 let nobody in on Spigot. Only CraftBukkit is not supported: it has no proxy forwarding, so NetworkLock lets nobody in there and /networklock doctor says why.
Keys and security#
What happens if a key leaks?#
Whoever has it can join as anyone on the game servers that trust that proxy. Remove the key (or the whole proxy entry) from every game server and run /networklock reload. It stops working straight away. Then set a new key on the proxy. See Changing a key.
How do I check a key matches without showing it?#
Run /networklock proxies on the proxy and on the game server. Both show a short fingerprint, a one-way hash of the key. If the fingerprints match, the keys match.
Can I keep the key out of config.yml?#
Yes. Write env:VARIABLE_NAME to read it from an environment variable, or file:/path/to/file to read it from a file, for example a container secret.
Can someone reuse a signature they captured?#
Not on the same server. Each signature works once, only on the server it was made for, and only for 30 seconds. The game server remembers used signatures until they would expire anyway. Someone on the network between the proxy and a game server could still use one within those 30 seconds, before the real player does, so keep that link private.
Is NetworkLock DDoS protection?#
No. The proxy's login limit only slows down login spam from single addresses. Use your host's DDoS protection for floods.
Day to day#
Does NetworkLock slow down logins?#
No database and no network calls are involved in a login. The proxy signs once per server connection and the game server checks once, before the player loads in. Used signatures take about 100 bytes each in memory and are forgotten after about 35 seconds.
Can I change the messages players see?#
Yes, in the proxy's messages.yml, with & colour codes, hex colours and MiniMessage tags. Since 1.0.1, game servers can also set their own kick texts, which queue plugins like ajQueue show. See Configuration.
Does NetworkLock send any data anywhere?#
Not during logins. 1.0.1 checks GitHub for new versions and sends one anonymous usage message a day (an anonymous ID, the version and the platform). Turn them off with updates.check: false and metrics.enabled: false. See Usage statistics.
Can I turn the protection off for testing?#
There is no off switch, by design. To test without it, remove the plugin from that server and restart.