BeamMP / BeamMP-Server

Server for the multiplayer mod BeamMP for BeamNG.drive
https://beammp.com
GNU Affero General Public License v3.0
116 stars 49 forks source link

add a simple DOS protection system #301

Open Igor20264 opened 3 months ago

Igor20264 commented 3 months ago

1) When a user connects to the server, I get his IP 2) When sending 'C', I check:

The reaction time to the DOS ranges from 10 milliseconds to 1 second. P.S Very much depends on the strength of DOS. It should probably save you from DDOS attacks.

lionkor commented 3 months ago

Thank you very much, I'll take a look at this soon :)

Igor20264 commented 2 months ago

Thanks for the criticism, I will try to correct these shortcomings in the near future

lionkor commented 1 month ago

Hi @Igor20264, what's the status on this? I can make these changes, if you don't have time

Igor20264 commented 1 month ago

I completely forgot about this thread, sorry to keep you waiting. Unfortunately, due to problems with my studies, I will not be able to fix the code 😔. I'm sorry again.

lionkor commented 1 month ago

@Igor20264 no worries! Thank you very much for your contribution. I'll make these fixes, and then merge it.

Don't worry, and good luck with your studies!

sla-ppy commented 1 month ago

@lionkor I'd like to be assigned to make the changes suggested so this feature can be pushed out unless you'd like to do this yourself?

Good job on the implementation @Igor20264!

lionkor commented 1 month ago

sure, i'd still like to make some changes potentially but only minor stuff (the constants), feel free.

sla-ppy commented 2 weeks ago

Oh yea, gotta update on the situation. So I managed to delete all the changes I made locally. Since then I've moved to laptop-only and have to redo it all over again basically, working it rn.