You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The problem is that there is currently no way to restrict players by their IP, which is important especially for private servers where only a few people will regularly join. Although bad actors still have to go through a password in order to do any damage to the server, there should be a way to prevent anyone other than a select few IPs from connecting to the server.
Describe the solution you'd like
A section in the config which allows you to make mappings between IP addresses and player usernames. For example:
This list functions like a "deny list", so IPs/usernames not listed can join no matter their IP/username.
Another potential config option for extra security is to allow a single IP address to join using multiple usernames, something like multiIpUsernames: (true | false).
For eg. if we take the restrictUsernames list defined above, there could be multiple scenarios:
multiIpUsernames is true - a user with the IP 213.23.54.13 can join as user_1, but they can also use other usernames (provided they aren't present in restrictUsernames). If someone with a different IP tries to join as user_1, they get kicked out of the server, but if they choose a username which isn't present in restrictUsernames, then they can join.
multiIpUsernames is false - a user with the IP 213.23.54.13 can ONLY join as user_1, and if said user tries to connect as some other username, they will get kicked out of the server. If someone with a different IP tries to join as user_1, they get kicked out of the server, but if they choose a username which isn't present in restrictUsernames, then they can join.
Describe alternatives you've considered
There are no alternative solutions to this problem, although another authentication plugin (AuthMe) has had this feature for a long time.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The problem is that there is currently no way to restrict players by their IP, which is important especially for private servers where only a few people will regularly join. Although bad actors still have to go through a password in order to do any damage to the server, there should be a way to prevent anyone other than a select few IPs from connecting to the server.
Describe the solution you'd like
A section in the config which allows you to make mappings between IP addresses and player usernames. For example:
This list functions like a "deny list", so IPs/usernames not listed can join no matter their IP/username.
Another potential config option for extra security is to allow a single IP address to join using multiple usernames, something like
multiIpUsernames: (true | false)
.For eg. if we take the
restrictUsernames
list defined above, there could be multiple scenarios:multiIpUsernames
istrue
- a user with the IP 213.23.54.13 can join as user_1, but they can also use other usernames (provided they aren't present inrestrictUsernames
). If someone with a different IP tries to join as user_1, they get kicked out of the server, but if they choose a username which isn't present inrestrictUsernames
, then they can join.multiIpUsernames
isfalse
- a user with the IP 213.23.54.13 can ONLY join as user_1, and if said user tries to connect as some other username, they will get kicked out of the server. If someone with a different IP tries to join as user_1, they get kicked out of the server, but if they choose a username which isn't present inrestrictUsernames
, then they can join.Describe alternatives you've considered
There are no alternative solutions to this problem, although another authentication plugin (AuthMe) has had this feature for a long time.
The text was updated successfully, but these errors were encountered: