SA-MP Forums Archive
Incoming connection flood - 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: Incoming connection flood (/showthread.php?tid=524313)



Incoming connection flood - rhaskos - 06.07.2014

Okay, I have a problem with my server. Someone is flooding my server with "Incoming connnection", I think that is a bot flooding. I've already added an anti bot flood protection, when someone has 3 connections or more on the same IP he will be banned. Anyway, that's not the problem, I've looked into server_log and I saw that every "Incoming connection" come with a different IP. What can I do in that case?
Already searched on ****** but I didn't found nothing that helped me. Any answer is welcome!

Код:
[12:12:56] Incoming connection: 92.80.149.150:62204
[12:13:08] Incoming connection: 188.214.5.139:50435
[12:13:09] Incoming connection: 5.13.231.154:55633
[12:13:09] Incoming connection: 151.233.151.90:53588
[12:13:12] Incoming connection: 188.27.105.236:52481
[12:13:22] Incoming connection: 151.233.151.90:53589
[12:13:25] Incoming connection: 86.34.75.114:12063



Re: Incoming connection flood - niCe - 06.07.2014

Update your server to 0.3z-R3 (https://sampforum.blast.hk/showthread.php?tid=524049) and use minconnectiontime server variable to stop the attack, in case connections are affecting server's CPU and RAM.


Re: Incoming connection flood - VladimirMark - 06.07.2014

Update your server pack to 0.3z R3 and below the #include <samp> add a
Код:
minconnectiontime 1000
this will accept a connection to the server every 1 second, you can change that by editting the 1000 to whatever you like. Notice: The time must be in miliseconds!! 1000 miliseconds = 1 second

EDIT: Sorry in the server.cfg not in the script!


Re: Incoming connection flood - rhaskos - 06.07.2014

Just one question
I need to define "minconnectiontime 1000" right? Cause if I try to compile without #define I get an error.

Thank you for your support and fast answer! +1 rep to both of you.


Re: Incoming connection flood - niCe - 06.07.2014

No, you have to add new line "minconnectiontime 1000" in server.cfg.


Re: Incoming connection flood - rhaskos - 06.07.2014

Okay, thank you! Vladimir, read niCe's post. Anyway, thank you for your answers!