With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Game server information & questions.

Moderators: Joe Kari, Pardner, TheDoctor

Banning by IP

Postby ReD NeCKersoN » Tue Jan 20, 2009 5:24 am

HERE is a guide for the server admins.

How to ban by IP using old Q3 rcon method

If the bad guys IP is static then there is no problem , first thing to check is if the filterban variable is on or off;
/rcon seta g_filterban 0/1 (0 = IP banning is off 1 = IP banning is on)

next we add the llama's IP
/rcon addIP 312.27.48.132
job done.

if his IP is dynamic you need to do a little more work .. first stage is to collect some IP addresses he connects with .. it will look something like this;
312.27.48.120
312.27.48.38
312.27.32.12
312.27.32.89
312.27.48.10
312.27.48.91
312.27.32.140
notice that the common numbers are 312.27.48 and 312.27.32 ... what we do now is ban all IP's within that range like this

/rcon addIP 312.27.48
/rcon addIP 312.27.32

this will filter all IP's in the range of 312.27.48.0 through 312.27.48.255 and 312.27.32.0 through 312.27.32.255 this effectively bans your lamer without banning a whole IP range that affects a lot of innocent people

if we just ban the whole IP range
/rcon addIP 312.27
this bans all IP's from 312.27.48.0 through 312.27.255.255
( we get 65,000 people by multiplying 255x255)

your call , its your server, ban 65,000 in one stroke or do a little work and ban a llama

All the above IP's are fictitious and for demo purposes only but if you are prepared to put in the effort an effective ban can be applied to anyone regardless of wether the IP is static or dynamic.
Image
User avatar
ReD NeCKersoN
SG Team
 
Posts: 3245
Joined: Wed Mar 27, 2002 6:22 am
Location: VA, USA



Re: Banning by IP

Postby DeUgli » Tue Jan 20, 2009 11:49 pm

ReD NeCKersoN wrote:HERE is a guide for the server admins.
Muchas gracias, Red.
Irgendeiner wartet immer.
User avatar
DeUgli
Smokin' Amigo!
 
Posts: 280
Joined: Sat Nov 05, 2005 12:29 am
Location: Seattle WA, USA



Postby Pardner » Sun Apr 04, 2010 11:36 pm

sorry to necro-post, but is there a way to list all currently banned IP's?

EDIT: found it: g_banIPs

Image
Image
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA



Postby moRtem » Mon Apr 05, 2010 12:21 pm

just an addition:
g_banips is limited to 256 Characters, which basically means, that the server can only ban a very little number of players (each IP-address needs ~10-20 Characters)


/quit
User avatar
moRtem
Gunslinger
 
Posts: 284
Joined: Sun Mar 15, 2009 5:56 pm



Postby Pardner » Mon Apr 05, 2010 1:21 pm

yes, thank you for the actual number. This was the reason I wanted to be able to find out the number of banned IPs via rcon. I didn't want to add an IP if there wasn't room
User avatar
Pardner
SG Team
 
Posts: 1786
Joined: Fri Nov 18, 2005 5:48 am
Location: MD, USA




Return to Telegraph Station

Show Sidebar
Show Sidebar

User Control Panel

cron