minetest-mods / xban2 Goto Github PK
View Code? Open in Web Editor NEWExtended Ban Mod for Minetest
License: BSD 2-Clause "Simplified" License
Extended Ban Mod for Minetest
License: BSD 2-Clause "Simplified" License
Hi,
Ever since the improved GUI was added last May, I am unable to "clear the search" and show all the player names (it shows a large amount). Searching for these hidden players works, but backspacing all letters does not show every player like it should/used to.
Thank you!
Hello
Problem description
When using /xban_record
to view a user's ban information, the dates displayed are always the server's current date/time
When using /xban_gui
, the actual date that the user was banned is displayed
Steps to reproduce
/xban_gui
and /xban_record
for the same playerSystem info
Thanks
Is there an option to get list of banned users
Do not record list of all players in log
Certain combinations of usernames and ban reasons can lead to banning the wrong person, or even multiple people who are unrelated to the person being banned. Please contact me on IRC for details.
Full logs and files available on request.
Cheers
The forum thread claims a 2-clause BSD Licence but this is not specified anywhere in the repository.
2015-06-24 20:47:47: ACTION[ServerThread]: Server: Player with the name "Player" tried to connect from [removed] but it was disallowed for the following reason: Banned: Expires: Wed 24 Jun 2015 08:39:35 PM BST, Reason: Testing a one minute ban
You can see clearly from the log above that the time is 20:47:47 and the ban expires at 08:39:35 PM, yet the player in unable to join.
server: minetest server 0.4.15 2017-03-16 git
xban2: 2017-04-24 git
If one types
/xban mrg3 1D
accidentally instead of
/xtempban mrg3 1D
the player might see a message saying "Banned: Reason: 1D" and be permanently banned. Then many players on server (or similarly named? or recently logged in?) are banned too.
In a version of xban from about a year and a half ago (from old repo before placed in github.com/minetest-mods) also happened when several people with various names ending in numbers (or not) were logged in. In that scenario I may have banned a player who was not logged in. That seemed to ban everyone.
On both occasions I had to edit xban.db manually to resolve the issue. I'm glad this was in a human-readable text file that could be trivially edited remotely using nano or notepad++ via FTP.
[26] = {
["banned"] = true,
["record"] = {
[1] = {
["reason"] = "1D",
["time"] = 1496974261,
["source"] = "mrg",
},
},
["time"] = 1496974261,
["names"] = {
["192.212.100.47"] = true,
["mrg2"] = true,
["mrg3"] = true,
["mrg"] = true,
["192.212.100.133"] = true,
["192.212.100.25"] = true,
},
["last_seen"] = 1496973703,
["reason"] = "1D",
["last_pos"] = {
["y"] = -24.5,
["x"] = 8.1890001296997,
["z"] = 74.534004211426,
},
},
In addition to mrg3, it also banned me (mrg) and mrg2 as seen in the list above and in the attached log screenshot.
Could this be anything to do with having a number after a name?
If you notice above, all of their ip addresses were banned too, though neither intended nor typed.
Hello! I have a crash in you mod when playing my pack (DreamBuilder + Carbone-ng). Here is crash lines: http://pastebin.com/ngP1MS5L
I'd like to suggest a default time limit be applied to new bans since it's difficult to remember to do so manually ๐ . 2 weeks seems about right.
There are times when I received names and IPs of players who have been banned on other servers and I would like to be able to add them to xBan2 but currently, since they have not yet logged into my server, there is no record of them and xBan2 won't accept the input from "/xban ".
My previous method has been to manually enter the IP and playname in the default ipban file, then use "/xban_dbi minetest" to import the ipban file's info. That resulted in a scrambled mess of xban's file where player names and IP that should not have been banned were lumped into the "Banned from ipban.txt" section.
I've backed-up and deleted the xban file and will be sorting through the back-up to manually add the banned IPs and names to the ipban file. As a precaution, every time I banned a player I revoked all privs and added them to the future_ban mod's list.
Hello, sorry for my bad english,
I have a (big) problem on my server: a player usurps accounts that have no password. I need to ban his/her IP, because the names that he/she uses are others players names.
I tried to use the /xban command with the IP, as written on the forum topic, but it didn't work... How can I do that ?
Here are some logging messages:
2016-06-25 12:23:07: ACTION[Server]: [xban] palige bans 91.86.249.35 until the end of time for reason: Usurpation de comptes
2016-06-25 12:23:07: ACTION[Server]: [xban] Banned Names/IPs: <== no names !
2016-06-25 15:38:04: ACTION[Server]: paul [91.86.249.35] joins game.
2016-06-25 15:38:04: ACTION[Server]: paul joins game. List of players: elprincipiante paul
2016-06-25 15:38:16: ACTION[Server]: paul changes password <== Then I cleared the password to allow paul to connect again...
Here is the output of /xban_record 91.86.249.35:
[xban] [mar. 05 juil. 2016 10:18:37 CEST]: Usurpation de comptes, Source: palige
EDIT: I tested to ban my own IP, it worked (then I unbanned it from IRC and it also worked ๐) ! Could "91.86.249.35" have hacked his/her client to make it insensible to ban ?
Hi,
I recently discovered that at one point in April 2019 on one of my servers, my xban.db file was wiped out.
Around the time it happened, debug.txt turns this message up:
WARNING[Main]: [xban] Unable to load database: Deserialization failed: (load):378023: main function has more than 65536 constants
I don't know what "constants" are and wasn't paying attention to when this happened, but I don't think there were 65536 entries in xban.db at the time.
Also, I don't have the xban.db to offer you, but based the most recent server backup I have before this happened, 378023 is probably a line number in xban.db.
The most recent version of the mod was being used (February 12, 2019)
Sorry I can't offer more information on this.
Should xban.db
be stored in the logfile path instead of the world path?
The file contains usernames and IP addresses which would usually be stored in the log directory and not the world directory.
Hi there, my server is on 9bff154cba14686f5a3b56f4cba405824b88c402 (Fix horizontal/vertical merging bug of hardware-colored framed glass (#10417)), Thu Sep 24 00:10:50 2020 +0100
, banning or temp banning a user seems to have no effect. The user is able to rejoin with and without alt-accounts.
A feature is desperately needed where Xban mod can coordinate between multiple servers, keeping their ban/xban lists in sync. If I ban someone on one server, I would like other servers in some configurable "network" to be signaled, and enact that ban also. The reverse should also be done (perhaps with a special command, so that it's possible to unban someone from just one server).
Maybe they could all just be configured to use some common file to pass such messages along (assuming mod security doesn't get in the way of that)
WARNING[Server]: [xban] Unable to save database: Write failed
It's not the behavior you would expect.
Two people banned the same player. One forever (/xban) and one temporarily (/xtempban). When the temporary ban expired, he could play. /xban_record showed the two bans but the expiration time of the temporary one was always now, the time at which the command was run. And the permaban was ignored when the player tried to log in.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.