[BUG] Bot Attack DoS
#1

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 ?
Reply
#2

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;
}
Reply
#3

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..
Reply
#4

tryt something like this http://pastebin.com/ufC8tQiq
Reply
#5

Quote:
Originally Posted by landmine
Посмотреть сообщение
tryt something like this http://pastebin.com/ufC8tQiq
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..
Reply
#6

EDITED
Reply
#7

UDP flood.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)