04-05-2011, 12:51 PM
Out of curiosity is the "kicking" functionality still working for this?
I can't seem to get it to kick players who have low rates.
I can't seem to get it to kick players who have low rates.
Player rate tracking system using Linux's firewall (iptables)
|
04-05-2011, 12:51 PM
Out of curiosity is the "kicking" functionality still working for this?
I can't seem to get it to kick players who have low rates.
04-05-2011, 07:46 PM
Yes, the kicking functionality should work. Make sure you don't have the "monitoring mode" enabled.
04-06-2011, 02:40 AM
(04-05-2011, 07:46 PM)css Wrote: Yes, the kicking functionality should work. Make sure you don't have the "monitoring mode" enabled. Code: my %CONF = ( Code: my %servers = Those are the settings I'm running, and I made sure it was running under the root user already too, but I tried to get someone to test the settings out and after 10 minutes with rates set to 33 / 33 it wouldn't kick them.
04-06-2011, 04:16 AM
What do you have in:
Code: my %CONF = ( Take a look at that directory and see what does it say in "player_1.2.3.4.dat" (where 1.2.3.4 is the IP of the low rate player). You should see the "raw data" for the player. Take a look at some other players too. If the values don't make any sense (eg. they're 0 or 99999), then the problem is in taking the samples. My guess is that your test player wasn't long enough online. That's why the system didn't have chance to collect enough statistics to make a accurate decision about the real rate. It takes about 1-2 minutes.
04-06-2011, 05:10 AM
The log includes lines that show the player running at 33.0 average. This lasted for about 5 minutes before he left.
Code: [Mon Apr 4 21:41:05 2011] "*" (userid: 14) (steamid: *) (min/median/max 32.9 / 32.9 / 32.9) (100 bytes/pkt) (ping: 136) (loss: 0)$
04-06-2011, 05:29 AM
Hmm.. strange. It should have worked then.
Maybe you have changed the "playerlimit" setting: Code: # playerlimit Maybe you didn't restart the script after making changes to the settings? Overall it seems you've got the system working OK. In the global log "ratetables.log" you should have line saying "Kicked player XXXX (userid: 123) ...". Do you have those? If not, then the system didn't even try to kick the player. If you have that line, then the system tried to kick the player, but it failed. It would be super strange. My guess is that you've overlooked some configuration variable. Double-check the settings to be sure.
04-06-2011, 07:20 AM
(04-06-2011, 05:29 AM)css Wrote: Hmm.. strange. It should have worked then. Checked the config again after I set the player limit to 0 and tried the script myself and it still didn't kick me, another user was also present at the time for testing and he ran low rates and it didn't kick him out of the server. Any other settings to check?
04-06-2011, 03:51 PM
Did you see the main log file or did you look at the output from the script? Does it say that it tries to kick the player? You can set $DEBUG = 1; in the beginning of the script.
04-07-2011, 03:09 AM
(04-06-2011, 03:51 PM)css Wrote: Did you see the main log file or did you look at the output from the script? Does it say that it tries to kick the player? You can set $DEBUG = 1; in the beginning of the script. I tried turning the debug on and it didn't try to kick. Also I did check the main log and it only showed the server adding and removing tracking.
04-07-2011, 09:24 AM
Everything else seems to be fine for you, so it must be something in your immunity settings. Mabe you've defined somethin speicial for the immunity and that's causing the "malfuction".
04-08-2011, 01:26 AM
Maybe its because I commented out all immunity?
04-08-2011, 10:08 PM
It shouldn't matter. Maybe you should try with the default config nevertheless. That way you can rule out any configuration error. You need to define the monitored server(s), though.
04-09-2011, 12:28 AM
(04-08-2011, 10:08 PM)css Wrote: It shouldn't matter. Maybe you should try with the default config nevertheless. That way you can rule out any configuration error. You need to define the monitored server(s), though. Okay I'll try the default again but it didn't work with the default last time which is why I changed from the default. :3
04-11-2011, 04:57 AM
What was the problem with the default config?
Let me know if you get the problem solved. I'm out of ideas what could be the cause. Adding debug messages inside the script and that way tracking the path of the program flow would be good to do, but it can be quite tedious.
04-27-2011, 02:57 AM
Got it working after commenting out a line that looks at the number of players in the server before kicking. It worked after I commented it out.
|
« Next Oldest | Next Newest »
|