Raised This Month: $51 Target: $400
 12% 

I need ideas to solve this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
loiraolhosazul
Member
Join Date: May 2020
Old 04-12-2021 , 11:30   I need ideas to solve this
Reply With Quote #1

I have a server where I use external 'MySQL', my server suffers a lot of 'ddos' attacks and when there is an attack the server cannot connect with 'MySQL' and some people lose data.

I put it to save in the 'disconnected' and then reset the variables.

Does it have a solution?
loiraolhosazul is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-12-2021 , 11:58   Re: I need ideas to solve this
Reply With Quote #2

Use a VPN?
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-12-2021 , 11:59   Re: I need ideas to solve this
Reply With Quote #3

Set a task with the flag "b". The time shouldn't be too short, otherwise it will consume too much from the machine. I believe something between 30.0 and 240.0 should be okay, that will depend on the frequency of attacks. In the task, loop through all connected players and save their data just like you do in client_disconnected.
__________________









Last edited by CrazY.; 04-12-2021 at 12:01.
CrazY. is offline
loiraolhosazul
Member
Join Date: May 2020
Old 04-12-2021 , 12:10   Re: I need ideas to solve this
Reply With Quote #4

Quote:
Originally Posted by CrazY. View Post
Set a task with the flag "b". The time shouldn't be too short, otherwise it will consume too much from the machine. I believe something between 30.0 and 240.0 should be okay, that will depend on the frequency of attacks. In the task, loop through all connected players and save their data just like you do in client_disconnected.
[EN]
what I think happens is the following, the guy enters the game, loads the data normally, then he is in the game the attack happens, he leaves the server and does not save, he tries to enter again but he will not log into the account and their data is 0, most of all mysql comes back and when it exits it will save the data as 0.

[BR]
o'que eu acho que acontece é o seguinte, o cara entra no jogo, carrega os dados normalmente, ai ele está dentro do jogo acontece o ataque, ele sai do server e não salva, ele tenta entrar denovo mais não vai logar na conta e os dados deles estão 0, mais do nada o mysql volta e quando ele sai vai salvar os dados como 0.
loiraolhosazul is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-12-2021 , 12:25   Re: I need ideas to solve this
Reply With Quote #5

You could just save everything more often, each round for instance? That's not how you should prevent getting ddos'd tho
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
loiraolhosazul
Member
Join Date: May 2020
Old 04-12-2021 , 12:32   Re: I need ideas to solve this
Reply With Quote #6

Quote:
Originally Posted by Napoleon_be View Post
You could just save everything more often, each round for instance? That's not how you should prevent getting ddos'd tho
I don't know if it would be the best thing to do, I was thinking about using SQLITE and doing some type of SYNC for MYSQL
loiraolhosazul is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-12-2021 , 13:24   Re: I need ideas to solve this
Reply With Quote #7

Quote:
Originally Posted by loiraolhosazul View Post
I don't know if it would be the best thing to do, I was thinking about using SQLITE and doing some type of SYNC for MYSQL
You could just simply hire an anti-ddos company that does this for you and you wouldn't have to worry anymore about a single ddos attack. Shouldn't cost you too much.

U might wanna read this: https://stackoverflow.com/questions/...ugh-url-string

and this: https://serverfault.com/questions/21...how-to-prevent

Just do some research man, it's not hard. This is what i've found within 2 minutes of search.
__________________

Last edited by Napoleon_be; 04-12-2021 at 13:26.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
loiraolhosazul
Member
Join Date: May 2020
Old 04-12-2021 , 14:06   Re: I need ideas to solve this
Reply With Quote #8

Quote:
Originally Posted by Napoleon_be View Post
You could just simply hire an anti-ddos company that does this for you and you wouldn't have to worry anymore about a single ddos attack. Shouldn't cost you too much.

U might wanna read this: https://stackoverflow.com/questions/...ugh-url-string

and this: https://serverfault.com/questions/21...how-to-prevent

Just do some research man, it's not hard. This is what i've found within 2 minutes of search.
You must be a beginner, the type of attack that occurs is a specific protocol, there is no way to block it.
loiraolhosazul is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 04-12-2021 , 15:23   Re: I need ideas to solve this
Reply With Quote #9

Quote:
Originally Posted by loiraolhosazul View Post
You must be a beginner, the type of attack that occurs is a specific protocol, there is no way to block it.
Beginner or not, for every problem there's a solution.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
loiraolhosazul
Member
Join Date: May 2020
Old 04-12-2021 , 22:33   Re: I need ideas to solve this
Reply With Quote #10

Quote:
Originally Posted by Napoleon_be View Post
Beginner or not, for every problem there's a solution.
You can hire any company, not even OVH can handle it, the problem is not in the mitigation of DDOS, the problem is in HALF-LIFE.
loiraolhosazul is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:56.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode