Posts: 4
Threads: 1
Joined: Jun 2010
Reputation:
0
A few days ago I IP banned someone off our servers for various reasons, but indstead of banning his exact IP I banned his whole subnet (as in missing out the last set of digits so it only adds xxx.xxx.xxx to the banned list). When I did writeip and went into banned_ip.cfg in it it had "addip 0 xxx.xxx.xxx.0". Is this supposed to be the case or does banned_ip.cfg only handle single IP addresses? I added his subnet underneith it in the cfg however it went back to only having xxx.xxx.xxx.0 when I checked later. I haven't seen him at all on our servers since but am wondering whether he is actually banned. The last digits of his IP weren't 0, it was .78 or something like that.
Posts: 3,906
Threads: 404
Joined: Oct 2007
Reputation:
21
You can't ban subnets automatically.
You can either add every IP to the ban list or use a firewall or IP blacklisting software to do that.
Peerblock can be customized to ban subnets (windows program).
I'm sure there are plenty of other firewall software that will let you build custom blacklists as well.
~ Mooga ...w00t? -
SRCDS.com on Twitter
Please do not PM me for server related help
fqdn Wrote:if you've seen the any of the matrix movies, a game server is not all that different. it runs a version of the game that handles the entire world for each client connected. that's the 2 sentence explanation.
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
I know this doesn't answer your question but: IP bans are usually the wrong choice. IPs can change (some providers give you a new IP everytime you reconnect the modem), sometimes even the IP subnet will change. On the other hand some other people might be affected by the ban if they accidentally get the IP (or into the subnet).
Why don't you ban the ID? The guy will have to buy a new game if he want to change that...
Posts: 1,321
Threads: 85
Joined: Feb 2008
Reputation:
11
As BehaartesEtwas said, ban their steam ID not their IP it is much more effective.
~ trewq
Posts: 4
Threads: 1
Joined: Jun 2010
Reputation:
0
Problem is before I banned him he said he could crash servers, but wouldn't crash ours because he liked playing on them. Later that day while not on the server (using HLSW) I caught him saying..... bad things so I decided to ban his IP because AFAIK you can still crash servers when you are ID banned because you can still make a connection to the servers before you are auto-kicked. There's a load of anti-crash/anti-exploit plugins that were added by the owner of the servers but I still wanted to be sure he was gone for good.
Posts: 1,321
Threads: 85
Joined: Feb 2008
Reputation:
11
... I would call his bluff if you have ant-crash plugins on there.
~ trewq
Posts: 1,382
Threads: 143
Joined: Jan 2007
Reputation:
7
(06-24-2010, 03:30 PM)Goilio Wrote: ... I would call his bluff if you have ant-crash plugins on there.
X2
Ryan White
Owner & CEO
GigabiteServers.com
Posts: 2,031
Threads: 27
Joined: Nov 2008
Reputation:
17
it's usually not a ddos that is used to crash some server but some exploits either in the server or in some plugin (mani...). but if banning the steamid doesn't help, banning the ip will not help either, I guess both are checked at the same time during the connection process. instead you would have to ban his IP via a firewall, but that's only possible if you run on a root server...
Posts: 4
Threads: 1
Joined: Jun 2010
Reputation:
0
Banning by ID does not stop them from connecting and sending/receiving info. I've been able to connect and be on a server my ID is banned from momentarily before I'm kicked with the usual The steam ID yadayada is banned. The thing about IP banning is it depends where you do the ban, through SRCDS or the actual server/connection. Doing it through the normal addip will stop a CS:S client from connecting however afaik you can still access rcon. I could access ftp when I added my own IP as a test.
When I added the subnet to banned_ip it just removed it, maybe if I make a new cfg file with it inside, and get server.cfg to exec it along with banned_ip/user it will work then.[/align]