PDA

View Full Version : banIP's


Cyberdoc
10-31-2003, 09:02 AM
I noticed this cmd line seta g_banIPs ""
so could'nt we just make up a "Banned.cfg" add
exec banned.cfg to your maps cfg , then fill in the ip of banned players. If so what would be the seperator between Ip's?

SNYPE
10-31-2003, 05:46 PM
Doc-- heres info on using the banIP command on RTCW (same engine):

Banning by IP

g_filterBan 1/0
-> toggles IP banning on and off.

g_banIPs "x.x.x.x "
-> variable containing the IP addresses.

addip "x.x.x.x"
-> command to add an IP/mask to ban.

removeip "x.x.x.x"
-> command to remove a banned IP/mask.

reset g_banips
-> empties the current g_banIPs list of IP's.

status
-> command to see a list of player's IP's, and other info.


First of all you must enable IP banning by setting g_filterBan to 1. You also need the IP's that you wish to ban. If you and the lamer are on the server you can use "/rcon status" to obtain IP, else IP's are contained in logfiles.
When you have the IP, you can add it to the banlist while the server is running usingthe command AddIP as follows:

/rcon addip "1.2.3.4"

You can also remove IP bans in similar fashion:

/rcon removeIP "1.2.3.4"


Both commands affect the value of g_banIP's, which as an example looks something like the following:

g_banIPs "1.2.3.4 1.2.3.5 1.2.4.5 "

In the example there are 3 specific IP's banned. Notice the trailing space!

To block a IP range then you replace a quartile with a 0. Notice in the above example that two of those IP's are very similar - possibly the same lamer who knows how to reset IP? To block "1.2.3.anything" then you would use "1.2.3.0 ". If you thought 1.2.4.5 is also the same person, and really want rid of this person, then you could use "1.2.0.0". However, this bans 255x255 = 65,025 IP addresses! Of course, many of those IP's will not be used by anyone likely to use your server, but that is a LOT of potential players nonetheless. If you had more IP's you wished to ban that started 1.2.4.x then probably a better solution would be g_banIPs "1.2.3.0 1.2.4.0 ".

Cyberdoc
10-31-2003, 06:49 PM
Just what I needed, Thanks Snype. :oops:

Hammer
10-31-2003, 11:13 PM
Hey SNYPE, have you seen this working yet?? I've tried it and it still lets a banned ip in. Even tried the banuser and banclient commands without any luck. :cry:

CrowKing
11-01-2003, 12:30 AM
I haven't tried the in game banning, but Autokick's banning is working.

ck

rudedog
11-01-2003, 09:48 PM
Bump anyone else get this to work. I set

g_banips 1 in config then addip x.x.x.x it adds it but I'm still able to connect?

I have restarted the server, the ip is listed in the config_mp.cfg file but I can still connect.

we need this to work

Hammer
11-01-2003, 10:40 PM
banuser and banclient are working!!!! You need to make sure that your server is able to resolve codmaster.activision.com. The banning is done through them; pretty interesting ... only question is how do you un-ban someone.

HankScorpio
11-01-2003, 11:24 PM
only question is how do you un-ban someone

LOL...that's a good question.

rudedog
11-02-2003, 08:15 AM
banuser and banclient are working!!!! You need to make sure that your server is able to resolve codmaster.activision.com. The banning is done through them; pretty interesting ... only question is how do you un-ban someone.

Thanks Hammer, what's the format?

HankScorpio
11-02-2003, 05:42 PM
banUser
Usage: banUser <player name>
banClient
Usage: banClient <client number>

rudedog
11-02-2003, 05:49 PM
But how would you unban someone?

Hammer
11-02-2003, 08:48 PM
That's the only question I have! :!:

Actually, ran a test and banned myself on my linux test server, worked ... he he, couldn't play on it without changing my nick. If you ask me pretty stupid of them to only track based on nick.

Anyway, it would appear that the banned entries are either time-out in codmaster.activision.com or go away after the server is restarted, don't really know. But at some point my name was automatically un-banned. It's a mystery without further testing.

I still think that will be useless since it only appears to work against player names.

helltamer
11-03-2003, 09:39 AM
I just use autokick problem solved.

Hammer
11-03-2003, 10:09 AM
It's still too early to start depending on external applications to manage servers (sorry CK). The developers are listening and at this point any information we can throw at them is a chance we'll be able to do a lot more from within servers itself. If autokick is working for you that's great, I would rather not have to run yet another program to run our servers.

HankScorpio
11-03-2003, 10:26 AM
My feelings exactly, Hammer.

helltamer
11-03-2003, 11:39 AM
I agree but till there is a solution that allows use to not use it then it is working and that at least keeps the peeps that where caught cheating on our MOH servers from migrating to our COD servers.