Server Attack - B0t - Ping - ETC
#1

Hi guys... i'm so angry My server is getting flooded by b00ts and lot of incomming connection like

pawn Code:
[16:10:59] [join] NieXrlaM_uw0k[(yv@L= has joined the server (5:62.195.83.195)
[16:10:59] Incoming connection: 62.195.83.195:54916
[16:10:59] Incoming connection: 62.195.83.195:54917
[16:11:00] Incoming connection: 62.195.83.195:54918
[16:11:00] Incoming connection: 62.195.83.195:54919
[16:11:00] Incoming connection: 62.195.83.195:54920
[16:11:00] Incoming connection: 62.195.83.195:54921
[16:11:00] Incoming connection: 62.195.83.195:54922
[16:11:01] Incoming connection: 62.195.83.195:54923
[16:11:01] Incoming connection: 62.195.83.195:54924
[16:11:01] Incoming connection: 62.195.83.195:54925
[16:11:01] Incoming connection: 62.195.83.195:54926
[16:11:01] Incoming connection: 62.195.83.195:54927
[16:11:02] Incoming connection: 62.195.83.195:54928
[16:11:02] Incoming connection: 62.195.83.195:54929
[16:11:02] Incoming connection: 62.195.83.195:54930
[16:11:02] Incoming connection: 62.195.83.195:54931
[16:11:02] Incoming connection: 62.195.83.195:54932
[16:11:02] Incoming connection: 62.195.83.195:54933
[16:11:02] Incoming connection: 62.195.83.195:54934
And sometimes my server block when i have players.. sayd 30/200 for ex.. but nobody is on server! If can somebody help me to protect my server..
Reply
#2

Try banning the ip.
Reply
#3

Use https://sampforum.blast.hk/showthread.php?tid=320649
Reply
#4

I'm using this But don't work
Reply
#5

Rcon-ban that particular ip.
Reply
#6

yeah... but if he's having dynamic ip.. is useless
I just want something to auto-ban ip if see 2-3 connection is 2 sec and something like this
Reply
#7

Quote:
Originally Posted by Anonym2009
View Post
yeah... but if he's having dynamic ip.. is useless
I just want something to auto-ban ip if see 2-3 connection is 2 sec and something like this
Then range-ban, that would stop him from performing the attack again.
Reply
#8

Quote:
Originally Posted by Xtreme_playa
View Post
Then range-ban, that would stop him from performing the attack again.
Range ban won't do shit.
You need to be sure you installed 'FloodControl.inc' properly.
Reply
#9

now i added y_flooding from y_less
Reply
#10

I was about to recommend the floodcontrol for this, but it seems you already did so!

Good luck with your attackers!
Reply
#11

Added y_flooding and some changes to firewall... i think it's fine... maybe that will stop any attack
Reply
#12

Quote:
Originally Posted by Anonym2009
View Post
Added y_flooding and some changes to firewall... i think it's fine... maybe that will stop any attack
That should stop them.
Reply
#13

Quote:
Originally Posted by Shifter[DKZ]
View Post
Range ban won't do shit.
You need to be sure you installed 'FloodControl.inc' properly.
It always works for this kind of flood bots sent from a single ip.
Reply
#14

Just something I was thinking of... Try in OnPlayerConnect well.. Add this:
pawn Code:
#define MAX_PING_ALLOWED 1000 // Or whatever you want it to be.
public OnPlayerConnect(playerid)
{
    if(GetPlayerPing(playerid) >= MAX_PING_ALLOWED)
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "You have been kicked. Reason: Max Ping.");
        Kick(playerid);
    }
    return 1;
}
// OR:

// Add to OnGameModeInit:

SetTimer("PingCheckTimer", 5000, true); // 5000 == 5 Seconds. True == Repeating Timer. False == Non-Repeating Timer. // Meaning it will repeat the check, every 5 seconds.

// And now the Checker.

#define MAX_PING_ALLOWED 1000 // Or whatever you want it to be.
forward PingCheckTimer(playerid);
public PingCheckTimer(playerid)
{
    // Kick players with a high ping
    if(GetPlayerPing(playerid) >= MAX_PING_ALLOWED)
    {
        SendClientMessage(playerid, 0xFFFFFFAA, "You have been kicked. Reason: Max Ping."); // 0xFFFFFFAA  == White.
        Kick(playerid);
    }
    return 1;
}
For more help, visit: https://sampwiki.blast.hk/wiki/Category:..._Documentation
- Scripting Help.
For more help specifically with this (What I just gave.).
Visit:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)