[Guide] DDoS - What is it?
#1

There are a lot of people posting threads saying that their server has been DDoSed. Usually, people relate to DDoS to having their server crash, or shut down, caused by a hacker. This is not the case.

So what exactly is DDoS?

DDOS is short for Distributed Denial of Service.

DDOS is a type of DOS attack where multiple compromised systems -- which are usually infected with a Trojan -- are used to target a single system causing a Denial of Service (DoS) attack. Victims of a DDoS attack consist of both the end targeted system and all systems maliciously used and controlled by the hacker in the distributed attack.

According to this report on eSecurityPlanet, in a DDoS attack, the incoming traffic flooding the victim originates from many different sources – potentially hundreds of thousands or more. This effectively makes it impossible to stop the attack simply by blocking a single IP address; plus, it is very difficult to distinguish legitimate user traffic from attack traffic when spread across so many points of origin.

What does this mean?

Basically, a hacker will usually infect multiple computers with a Trojan virus. He will then use a centralized script to make all of the hacked sources connect to one target IP, causing the system to overload. In return, you receive a very slow connection, and sometimes complete denial.

A quick example. Open your command prompt and type ping http://sa-mp.com. It will connect to the network and return a ping, using a very minuscule amount of bandwidth from the server. Doesn't seem like much. However, if you are pinging that server across 50 separate ips, at 1000 times per second, you've now opened 50,000 connections, which overloads the server.

A guy said he's going to DDoS my server unless I make him admin, what do I do?

Chances are, that guy is a 13 year old kid who has no knowledge about how a network works at all, so you don't have to worry. In the even that the server does get taken down, it's most likely a DoS attack, which works like DDoS, except it is produced from one central unit. The only way that this will work is if their network's speed is higher than yours, which is a good reason to not host your server from your house.

My server log shows a lot of "incoming connection" messages from one ip

This person is using a flooding software to connect to your server multiple times. The best thing to do in this case is to report the IP to your host, or, if your host supports it, blacklist the ip. Another good measure is to find out where the IP is coming from, which can be done by going to a whois website, such as who.is. Upon searching, there is usually a "report abuse" link from their ISP.

My server keeps shutting down, but other servers/websites on the network are still fast. Is this DDoS?

In short, No. This means that something (or somebody) is crashing your server. It can be done via hacks in game. Make sure you log all chats, connections etc. in game, and use an anti cheat to detect various hacks. Another thing could be that there is an issue with your server script itself. Again, log everything to see if it always crashes at a certain point. You could also be giving too many connections from your server (IE, you have a $5 VPS and you have 60 players online in the same room)

How can I protect myself from attacks?

Make sure you are using a reputable host, with a decent DDoS protection. There are many types of protection, and make sure you research what is best for you. The most common type is Mitigation, which, when it detects a flood, will migrate the IP somewhere else, meaning the attacks will last 5-10 seconds at most. If it's your website, use a DDoS protector such as cloudflare, which hides your ip, making it a lot harder to find out what your real ip is. There are many online DoS checkers that will launch an attack against your own server to see how secure it is. I will not list any here, but if you search, you can find one.

I hope this answers a lot of your questions, any other questions can be commented below.

Also, refer to this article: http://www.esecurityplanet.com/netwo...s-attacks.html
Reply
#2

I like it.

Great tutorial !
Reply
#3

Good work mate!
Reply
#4

Great work mate
Reply
#5

keep it up
Reply
#6

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
If it's your website, use a DDoS protector such as cloudflare, which hides your ip, making it a lot harder to find out what your real ip is.
Do not use cloudflare unless you are paying $200+ for their ddos protection. They can still attack cloudflare and cloudflare will allow the attack to see your real IP.


Quote:

The most common type is Host Migration, which, when it detects a flood, will migrate the IP somewhere else

Host migration is when you say are hosting a CoD lobby and you leave the game, the leadership of the game gets transferred to another player.

What its actually called is mitigation of a DDoS attack, they push the attack through the hardware firewalls, which will analyse the traffic and only send the legitimate traffic to the server and back to the user.


Quote:

you have a $5 VPS and you have 60 players online in the same room

How does a $5 VPS affect anything?

Quote:

He will then use a centralized script to make all of the hacked sources connect to one target IP, causing the system to overload.

Most common types of attacks send large packets to the IP or just use exploits in APACHE.

Quote:

The only way that this will work is if their network's speed is higher than yours,

Why would anyone send a DoS attack from their home internet, it would NEVER work. They mostly buy a $3 booter from HF and use it to attach your server. Best thing to do is just completely ban him, sure he will attack you. At this stage you're only facing small threats such as this kid, which is why you should buy decent DDoS protection.











Looks copied have defo seen this before. Put in credits you thief.
Reply
#7

Quote:
Originally Posted by Khanz
Посмотреть сообщение
Do not use cloudflare unless you are paying $200+ for their ddos protection. They can still attack cloudflare and cloudflare will allow the attack to see your real IP.




Host migration is when you say are hosting a CoD lobby and you leave the game, the leadership of the game gets transferred to another player.

What its actually called is mitigation of a DDoS attack, they push the attack through the hardware firewalls, which will analyse the traffic and only send the legitimate traffic to the server and back to the user.




How does a $5 VPS affect anything?



Most common types of attacks send large packets to the IP or just use exploits in APACHE.



Why would anyone send a DoS attack from their home internet, it would NEVER work. They mostly buy a $3 booter from HF and use it to attach your server. Best thing to do is just completely ban him, sure he will attack you. At this stage you're only facing small threats such as this kid, which is why you should buy decent DDoS protection.











Looks copied have defo seen this before. Put in credits you thief.
Excuse me? I copied the definition off an article, then linked the article TWICE. The rest I wrote.
Reply
#8

Quote:
Originally Posted by TakeiT
Посмотреть сообщение
My server log shows a lot of "incoming connection" messages from one ip

This person is using a flooding software to connect to your server multiple times. The best thing to do in this case is to report the IP to your host, or, if your host supports it, blacklist the ip. Another good measure is to find out where the IP is coming from, which can be done by going to a whois website, such as who.is. Upon searching, there is usually a "report abuse" link from their ISP.
I'd rather consider using BlockIPAddress functions by using OnIncomingConnection to see how quick the connections are received by the server. Blocking them will not let us receive the connection completely.
Reply
#9

Quote:
Originally Posted by fall3n
Посмотреть сообщение
I'd rather consider using BlockIPAddress functions by using OnIncomingConnection to see how quick the connections are received by the server. Blocking them will not let us receive the connection completely.
That only works if they're flooding by connecting to the server, they could still take it out by hitting myip:80 or any other port. SA-MP won't detect it.
Reply
#10

Quote:
Originally Posted by Khanz
Посмотреть сообщение
Do not use cloudflare unless you are paying $200+ for their ddos protection. They can still attack cloudflare and cloudflare will allow the attack to see your real IP.
Half correct, half wrong.

A post I made on another forum about cloudflare's free plan.
Quote:

Cloudflare does not have DDoS protection but the only attacks that will be sent directly to the origin server are Layer 7 attacks because they target the webserver and not the network and cloudflare can't tell who a Layer 4 attack is for because it's attacking the network not the webserver AKA sending an attack to an IP instead of a website so they treat it as an attack on their own network and not on your site.

So as long as no one has your origin server IP and are not sending you Layer 7 attacks Cloudflare is enough for anyone.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)