SA-MP Forums Archive
Server Attack - B0t - Ping - ETC - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Server Attack - B0t - Ping - ETC (/showthread.php?tid=356643)



Server Attack - B0t - Ping - ETC - nGen.SoNNy - 04.07.2012

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..


Re: Server Attack - B0t - Ping - ETC - tiernantheman - 04.07.2012

Try banning the ip.


Re: Server Attack - B0t - Ping - ETC - dugi - 04.07.2012

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


Re: Server Attack - B0t - Ping - ETC - nGen.SoNNy - 04.07.2012

I'm using this But don't work


Re: Server Attack - B0t - Ping - ETC - Mark™ - 04.07.2012

Rcon-ban that particular ip.


Re: Server Attack - B0t - Ping - ETC - nGen.SoNNy - 04.07.2012

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


Re: Server Attack - B0t - Ping - ETC - Mark™ - 04.07.2012

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.


Re: Server Attack - B0t - Ping - ETC - [SF]OutLawZ - 04.07.2012

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.


Re: Server Attack - B0t - Ping - ETC - nGen.SoNNy - 04.07.2012

now i added y_flooding from y_less


Re: Server Attack - B0t - Ping - ETC - ColorHost-Kevin - 04.07.2012

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

Good luck with your attackers!


Re: Server Attack - B0t - Ping - ETC - nGen.SoNNy - 04.07.2012

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


Re: Server Attack - B0t - Ping - ETC - int3s0 - 04.07.2012

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.


Re: Server Attack - B0t - Ping - ETC - Mark™ - 05.07.2012

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.


Re: Server Attack - B0t - Ping - ETC - Dubya - 05.07.2012

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: