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

Anti DDoS


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lantimilan
Senior Member
Join Date: May 2016
Old 02-24-2017 , 04:55   Anti DDoS
Reply With Quote #1

Hello exist any file to protect server counter strike 1.6 from DDoS Attack , Flood and other program ?
lantimilan is offline
Send a message via MSN to lantimilan
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-24-2017 , 21:10   Re: Anti DDoS
Reply With Quote #2

No. It would have to be mitigated at the ISP or some higher level (search online for solutions).
__________________

Last edited by fysiks; 02-24-2017 at 21:12.
fysiks is offline
guven5
Senior Member
Join Date: Jul 2010
Location: counter strike 1.6 downl
Old 02-25-2017 , 08:21   Re: Anti DDoS
Reply With Quote #3

Dude where you were sent a post, here all pros about pawn scripting even world best coders here (each can work at NASA) but
when the subject ddos they have no answer at all,

give your system info... what system you use, dedicate or vps or what ever
if you have send your netflow report or nothing have, find a shell script, install and start to save attack reports and lets see what happen
guven5 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 02-25-2017 , 15:01   Re: Anti DDoS
Reply With Quote #4

Quote:
Originally Posted by guven5 View Post
give your system info... what system you use, dedicate or vps or what ever
if you have send your netflow report or nothing have, find a shell script, install and start to save attack reports and lets see what happen
None of what you just said will prevent a DDOS attack or lead to a way to prevent such an attack.
__________________

Last edited by fysiks; 02-25-2017 at 15:01.
fysiks is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 02-25-2017 , 17:28   Re: Anti DDoS
Reply With Quote #5

Blacklist the IP or Cloudflare? I remember some people were trying to boot my friend's Web Stresser but he had Cloudflare so nothing happened.
__________________

Last edited by edon1337; 02-25-2017 at 17:29.
edon1337 is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-05-2017 , 14:19   Re: Anti DDoS
Reply With Quote #6

If the attack overflows your connection, you can't do anything on server side.

If it's only hanging hlds process because the flood, you can put a module to filter the traffic.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
exCore
BANNED
Join Date: Mar 2017
Old 03-06-2017 , 17:54   Re: Anti DDoS
Reply With Quote #7

If it's a UDP Dos/Ddos then you have some chance to limit it or block it.

I will give you an example :

Code:
#include <amxmodx> #include <orpheu> const A2S_ACK = 'j'; public plugin_init() {         register_plugin(                      "Blocking A2S_ACK",                      "0.1",                      "Spawner"     )         OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectionlessPacket"), "SV_ConnectionlessPacket_Hook"); } public OrpheuHookReturn:SV_ConnectionlessPacket_Hook(                         netFrom[],messageArg[] )   {         read_argv(0, messageArg, 2);     if( messageArg[0] == A2S_ACK )  {         return OrpheuSupercede;     }         return OrpheuIgnored; }

There is a lot of methods to Dos/Ddos a cs 1.6 server, VSE/ACK/(+And a lot more_).

If it's just VSE/ACK you can hook Sv_ConnectionlessPacket + hook "net_from" ( You can find an example coded by Arkshine using okapi ) and then limit the packets sent per second ( Based on IP's ).

Ps. : I did manage to do a A2S_ACK flood just using a plugin + sockets and it did crash the server.
So i'm just giving you an example. SV_ConnectionlessPacket you can search for it on the Internet.
Good luck.

Last edited by exCore; 03-06-2017 at 17:55.
exCore is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-06-2017 , 18:33   Re: Anti DDoS
Reply With Quote #8

Quote:
Originally Posted by exCore View Post
If it's a UDP Dos/Ddos then you have some chance to limit it or block it.
Using a pawn plugin it's really a bad idea.
It has to be done 100% using C to avoid performance degrading.

Also you need to filter packets, best thing is hooking recvfrom (on linux).
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
exCore
BANNED
Join Date: Mar 2017
Old 03-06-2017 , 18:58   Re: Anti DDoS
Reply With Quote #9

Quote:
Originally Posted by joropito View Post
Using a pawn plugin it's really a bad idea.
It has to be done 100% using C to avoid performance degrading.

Also you need to filter packets, best thing is hooking recvfrom (on linux).
Yea i agree with you, but i didn't understand this part :hooking recvfrom (on linux)?
exCore is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 03-06-2017 , 21:58   Re: Anti DDoS
Reply With Quote #10

Quote:
Originally Posted by exCore View Post
Yea i agree with you, but i didn't understand this part :hooking recvfrom (on linux)?
Using C you can hook recvfrom (or windows equivalent) to "ban" incoming packets before entering engine. Engine uses recvfrom, so if you hook it you are a layer over engine.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
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 14:42.


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