DDoS deflate is actually a shell script that uses Netstat and iptables tools to block IP that has too many links, effectively preventing common malicious scanners, but it is not really an effective DDoS defense tool.
Work Process Description:
The same IP link to the number of connections to the server after the setting of the cut value, all over the cut value of the IP will be masked, while the shielding
=650; "src=" Http://s3.51cto.com/wyfs02/M02/75/51/wKiom1Y2Hy7wrYmAAAEuLkCurCk884.jpg "title=" 10installsoftware.png "alt=" Wkiom1y2hy7wrymaaaeulkcurck884.jpg "/>4. After the installation is complete, the software needs to be further configured:$ sudo vi/usr/local/ddos/ddos.conf4.1 You need to check that the configuration path is consistent with your actual environment, and this test remains the same:##### Paths of the script and other filesProgdir= "/
How to check whether the Linux server is under DDOS attack or linuxddos
Address: http://www.phpthinking.com/archives/427
Log on to your server and run the following command as the root user to check whether your server is under DDOS Attack:netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c
In linux, the most common way to defend against ddos attacks is to install DDoS deflate to prevent or mitigate ddos attacks. However, there are other methods to use. I will introduce them below.
Introduction to DDoS deflate
DDoS d
How to check whether a Linux server is under DDOS Attack
Address: http://www.phpthinking.com/archives/427
Log on to your server and run the following command as the root user to check whether your server is under DDOS Attack:Netstat-anp | grep 'tcp \ | udp' | awk '{print $5}' | cut-d:-f1 | sort | uniq-c | sort-nThis co
原文地址:http://www.phpthinking.com/archives/427 Log on to your server and execute the following command with the root user , using it you can check whether your server is in DDoS attack or not: netstat-anp |grep ' tcp\|udp ' | awk ' {print $} ' | Cut-d:-f1 | Sort | uniq-c | Sort–n This command will show that the logged on is the maximum number of IPs connected to the server List.
The code is as follows
Copy Code
#防止SYN攻击 Lightweight preventionIptables-n Syn-floodIptables-a input-p tcp–syn-j Syn-floodIptables-i syn-flood-p tcp-m limit–limit 3/s–limit-burst 6-j returnIptables-a syn-flood-j REJECT#防止DOS太多连接进来, you can allow the external network card to each IP up to 15 initial connections, over the discardedIptables-a input-i eth0-p tcp–syn-m connlimit–connlimit-above 15-j DROPIptables-a input-p tcp-m state–state established,related-j ACCEPT#用Iptables抵御
block it.Isomorphism the following command to block IP or any other specific IP:Route add IPAddress RejectOnce you have organized a specific IP access on the server, you can check it to prevent tofu from being effective.By using the following command:Route-n |grep IPaddressYou can also block the specified IP with iptables by using the following command.Iptables-a INPUT 1-s ipadress-j drop/rejectService Iptables RestartService Iptables SaveAfter the above command is executed,
Mitigating DDoS attacks
#防止SYN攻击, lightweight prevention
Iptables-n Syn-floodIptables-a input-p tcp–syn-j Syn-floodIptables-i syn-flood-p tcp-m limit–limit 3/s–limit-burst 6-j returnIptables-a syn-flood-j REJECT
#防止DOS太多连接进来, you can allow the external network card to each IP up to 15 initial connections, over the discarded
Iptables-a input-i eth0-p tcp–syn-m connlimit–connlimit-above 15-j DROPIptables-a input-p tcp-m state–state established,relat
VM service providers may be attacked by hackers during operation. Common attacks include SYN and DDOS attacks. By changing the IP address, it is possible to find the attacked site to avoid the attack, but the service interruption takes a long time. A thorough solution is to add a hardware firewall. However, hardware firewalls are expensive. You can consider using the firewall function provided by the
VM service providers may be attacked by hackers during operation. Common attacks include SYN and DDoS attacks. By changing the IP address, it is possible to find the attacked site to avoid the attack, but the service interruption takes a long time. Relatively thorough
Solution You can add a hardware firewall. However, hardware firewalls are expensive. You can consider using
Linux system uses netstat command to view DDoS attack methods
Source: Internet anonymous time: 07-05 15:10:21 "Big Small"
This article mainly introduces the Linux system using netstat command to view the DDoS attack method, whic
The penalty policy for this attack is,
Further violations would proceed with these following actions:
1st violation-warning and shutdown of server. We'll allow hours for your to rectify the problem. The first time is a warning + shutdown, give 24 hours to solve the problem
2nd violation-immediate reformat of server. The second time is to format the server immediately
3rd violation-cancellation with no refund. The third time is to cancel the servic
very useful for you to find a single launch flood attack IP from many connections
Netstat-n-p|grep Syn_rec | Wc-l
This command is useful for finding active sync_rec on the server, which should be very low, preferably less than 5.In Dos attacks and mail bombs, this number can be very high. However, the value is usually dependent on the system, so the high value may be split equally to the other server.
Netstat-n-P | grep Syn_rec
Linux DDOS and CC attack SolutionBackgroundNowadays, DDOS attacks are becoming more and more frequent. DDOS Denial-of-Service can be implemented without any technology. Some webmasters often report mysql 1040 errors on their websites, and their online users are less than one
, then I use Linux and FreeBSD how to do? Very simple, follow this article to do it! "SYN-Cookies".7, installation of professional anti-DDoS firewallGreen Union black Hole: X86 architecture, Linux kernel and proprietary anti-Syn-flood algorithm. Fighting against a single type of syn,udp,icmp dos works fine, but the effect is slightly worse when mixed with multipl
recently took a little time to "the King of Destruction-ddos attack and the depth of the prevention of the analysis" to read it, frankly, this book is relatively simple, can be said to be an introductory book, of course, for me this kind of DDoS smattering people, is also a good book, at least I learned something. DDoS
shows that 80% of your website accesses by proxy are malicious.6. Enhance the TCP/IP stack of the Operating SystemAs a server operating system, Win2000 and win2003 have the ability to defend against DDoS attacks, but they are not enabled by default. If they are enabled, they can defend against about 10000 SYN attack packets, if it is not enabled, it can only defend against hundreds of attacks. For details
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.