Inactive [ADMN/SEC] LockIP v0.4 - Limit players to one IP [1058]

Discussion in 'Inactive/Unsupported Plugins' started by SwearWord, Jun 16, 2011.

  1. Offline

    SwearWord

    Plugin: LockIP
    Version: v0.4

    Description:
    This is mostly for servers in offline mode. This plugin kicks users if they try to login from IPs not associated with their account so compromised passwords from won't be an issue as they are with an Auth plugin. Also no one likes having to enter passwords on server reloads.

    I do plan to create commands to allow users to specify more IPs themselves, I should have that done in the next few days.

    Features:
    • Limit users to certain IPs.
    • Specify what IPs for what user.
    • Doesn't include annoying host name info, easier to specify IPs.
    • Prevents account sharing.
    • Allows matching of partial IP.
    • Doesn't prevent housemates from playing together.
    • Can add last attempted IP to list of accepted IPs for any player from in game.
    Download
    Here

    Important:
    Editing users.txt while the server is running will not doing anything. As of now you can only edit the IPs when the server is stopped. Just go into the plugins/LockIP folder and open users.txt and add or remove IPs there.

    Configuration:
    Setting subnet=true will put LockIP into the following mode. It will only look to match the first 3 octets of an IP. So if my IP was 192.168.1.122, anything from 192.168.1.* would be allowed to connect. This could help with dynamic IPs, I'm not exactly 100% certain if they stay in the same subnet. However it does allow people from the same subnet to login as each other.

    Permissions:
    Code:
    LockIP.exempt - Allows a user through without checking IP.
    LockIP.admin - Allows user to add last attempted IP to list of accepted IPs for any other user.
    Commands:
    Code:
    /lockip <user> - Adds last attempted IP to specified user's IP list.
    Change Log:
    v0.4
    • Added /lockip <user>
    • Alphabetized flatfiles
    • Added permission node (LockIP.admin)
    v0.3
    • Added permission node (LockIP.exempt)
    • Removed Case Sensitivity
    v0.2
    • Added subnet matching
    v0.1
    • Initial release
    Credits:
    Thanks to Mixxit for originally coming up with this idea. Unfortunately, his plugin has been taken over by someone who is just pretending to support and update it. I didn't use any of his source but all my features are pulled from his plugin.
     
    HarcX and AS1LV3RN1NJA like this.
  2. Offline

    SwearWord

    @generalmek
    I have a bug which I can fix by adding another node to my program, which I will do later.

    For now underneath -'*' add -'-LockIP.exempt'
     
  3. Offline

    deseven

    Thanks for the great plugin.
    Can you please add a user command to disable ip locking? Something like `/unlockip` maybe. So users that do not want to protect their characters will be able to disable it.
     
  4. Offline

    Pheenixm

    Can you set it up so people can authenticate multiple IPs with a password? That'd work even better than the password setups.
     
  5. Offline

    Archie

    Uh. This plugin works but its not kicking anyone off when they login from the wrong IP
     
  6. Offline

    SwearWord

    Working on it. For now an admin can do /lockip <username> to add the last attemptede IP to the user's list.

    @Archie
    As you can see from the other posts it's working for other people. What does the server console say when someone logs in?
     
  7. Offline

    deseven

    Rather than ignoring me, why don't you just write "no"?
     
  8. Offline

    SwearWord

    First of all everything I'm doing for you I'm doing as a courtesy. I don't owe you anything, not even a response. Don't act so entitled.

    Second I didn't even see you post. I'm going to move away from permissions and setup my own file with a list of exempted people. Once I do that I can add /unlockip.
     
  9. Offline

    deseven

    Sorry, i didn't mean to offend you. And surely i do not want to break your own rules. But don't be so selfish. You answered 2 people after me, what should i think about that?

    Anyway, thanks for the answer.
     
  10. Offline

    Archie

    @SwearWord it says

    Player's IP: ******** did not match.

    and thats it. Not kicking anyone off.

    Also, Im using the latest version of bukkit if u needa know
     
  11. Offline

    SwearWord

    @Archie
    It says that but they're still logged in? It must be a plugin conflict.
     
  12. Offline

    Archie

    Yeah. They're still in the game and still can build and talk and stuff.
     
  13. Offline

    manyak

    Please add the function to set allowed IP like that "a.b.*", which means all IP looking like a.b.y.z (y,z are random) will be permitted.
     
  14. Offline

    Rz666

    Nice, no wait this plugin is GREAT! Exactly what i was looking for. However i've got some questions.
    Maybe it's because i did something wrong but.. when I start the server and type the command "/lockip Rz666" the plugin returns "[LockIP] Who is rz666?".
    I have the LockIP.admin node in my permissions configuration.
    This plugin is way better then those password authentication plugins!
    Thanks in advance.
    Rz666
     
  15. Offline

    SwearWord

    /lockip is only used to add a failed attempt's IP to the list of accepted IPs.
     
  16. Offline

    Rz666

    Ok thanks! Do you have an example how to configure LockIP?
    EDIT: Oh sorry already got it!
    LaterZ
     
  17. Offline

    generalmek

    ppl can login from 1 IP at any new nick. iam dont use whitelist ( make new login system) and any can login with any names :( need function 1ip=1nick after first login. pass will be nice too. as automaticaly baning for atempt on another player
     
  18. I have a huge problem with this plugin.
    Today I was playing on my server when I had to ban someone. After I banned him he tried to join with my name(I saw this is the server console) and I immediately got kicked with the message: Disconnected from server Logged in from other location. So instead of disallowing him from joining, it kicked me and let him op himself! The console gives no error messages... Can this be fixed? This plugin used to work fine by the way.
     
  19. Doesn't work..
     
  20. Offline

    SwearWord

    Again, just saying it doesn't work does not help.

    You are doing something wrong if it's not working, you need to give me more info so I can help. It works for me, it works for others.

    @generalmek
    It's likely you misunderstood the uses of this program. This doesn't prevent multiple accounts from a single IP, it justs locks an account to an IP.

    I have it like this since I have users with siblings who play from the same IP but don't want to share accounts.

    You've given yourself the * permission node, which would include LockIP.exempt, thereby exempting yourself from IP checking.

    Add this node -"-LockIP.exempt"

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  21. Offline

    generalmek

    you cant make this options?
     
  22. Offline

    Hydrosis

    I agree with generalmek. Can you add a configuration to allow a specific amount of accounts per IP? I have a limit on how many chest locks a player can have. People can easily just enter a new name, login, create a password protected lock, and bypass the system like that. Like you said, there are people with siblings who don't use the same account, which is why it shouldn't be coded in the plugin that 1 IP=1 account, but I think it would help a lot of the servers if you can let us limit the amount of accounts per IP to like 2 or 3.
     
  23. Offline

    DaClowns

    It says "Who is DaClowns"? How do I register it to me?

    Like when Im on my acc, and I type /lockip daClowns it says "Who is DaClowns"? What do I do lol? There is nothing in the text file in the folder that should have users

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 16, 2016
  24. Offline

    Hydrosis

    I keep getting this wierd bug in console where it says that the IPs do not match, yet in reality they do. I even do /lockip after the person tries to login and they still can't connect. I may have to move back to using only an auth plugin :( This plugin really helps most users log on quickly without having to login using a password.
     
  25. Offline

    killacalli

    yea i get the "who is xxxxx?" message too and nothing is being added to the txt files in the lockip dir

    Edit: ok i got it working, seems like i had problems with the permisions
     
  26. Could we have configurable messages?
    I'd like the lock out message to point to my website, so i can resolve any issues.
     
  27. Offline

    generalmek

    can u add sub-net for 2? for 3 and 4 steak as 98.39.*.* because changing 2 last digit. and automaticaly reload after changing .txt for comfort. because now need reload full server :(
     
  28. Offline

    Dimitrias

    "An internal error occured while attempting to perform this command" is said when I do /lockip <user>
    Fix please
     
  29. He is going to need more information than that, CB build, LockIP build, any console errors, and maybe your LockIP config.
     
  30. Offline

    Dimitrias

    LockIp config is default. CB build is 1000.
    Console error:

    Code:
    12:30:38 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'lockip' in plugin LockIP v0.4
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:129)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:320)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:713)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:677)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:670)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:85)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:451)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    Caused by: java.lang.NoClassDefFoundError: com/nijiko/permissions/PermissionHandler
    at com.SwearWord.LockIP.LockIP.onCommand(LockIP.java:206)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
    Caused by: java.lang.ClassNotFoundException: com.nijiko.permissions.PermissionHandler
    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:36)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:24)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    ... 14 more
    How do I fix this?
    Got latest version of LockIP
     
  31. Offline

    SwearWord

    You need permissions 2.7
     

Share This Page