[BUG] Bot Attack DoS -
LeaveMe - 25.02.2014
We have a server with a base of 50+ players and it's updated to 0.3z last week.
However we are DoSed by some bot attacker which I don't know.
CPU, RAM, DISK, and even NIC usage are just normal!
This is a kind of sa-mp server attack since all of the above resources are at least 75% free.
All I can share is that no-one of my recources usage change much before, durring and after attack.
The attack causes lag and server freeze during attack(all players are timed-out after 60secs ans server doesn't response even to queries in server browser!
I have tried to set maxnpc to number of my gamemode NPCs with no luck.. still attacker can do what he want.
So later I have managed to completly stop this kind of attack with setting maxnpc to 0 and removed all NPCs from gamemode.
Maybe a separate thread for processing NPCs help to mitigate this attack.
Is there a sulution to stop this kind of attack so I can get my NPCs back ?
Re: [BUG] Bot Attack DoS -
d0 - 25.02.2014
pawn Код:
public OnPlayerConnect(playerid) {
new ip[25];
GetPlayerIP(playerid, ip, sizeof(ip));
if(IsPlayerNPC(playerid) && strcmp("127.0.0.1", ip) != 0)Ban(playerid); //ban all npcs not connecting from localhost
return 1;
}
Re: [BUG] Bot Attack DoS -
LeaveMe - 25.02.2014
This didn't help, and now he can even DoS my server even with maxnpc set to 0...
This is really annoying bug and should be fixed as soon as possible..
Re: [BUG] Bot Attack DoS -
landmine - 25.02.2014
tryt something like this
http://pastebin.com/ufC8tQiq
Re: [BUG] Bot Attack DoS -
LeaveMe - 26.02.2014
Quote:
Originally Posted by landmine
|
Well.. I know scripting and I know how to optimize my gamemode, mitigate attacks etc.
This is not a thing that current sa-mp natives can fix, but a server network layer or some dead-lock code.. I don't know..
Re: [BUG] Bot Attack DoS -
LeaveMe - 28.02.2014
EDITED
Re: [BUG] Bot Attack DoS -
GnikLlort - 10.03.2014
UDP flood.