First of all, we used to attack the client and the server configuration method, using the most famous Redhat Linux for testing, this attack test I use Fedora CORE3, the software is the most famous DDoS attack tool Tfn2k Linux version, The attacked Windows Server system uses the Windows2000server service to open the APA
Site was DDoS attack, so wrote a foot to resist, to achieve the way:
1. Attack characteristics, different IP constantly post Web page, resulting in excessive resource consumption2. Analyze Nginx Access log, Judge post feature to obtain Client access IP3. Attack IP block with a connection number greater than 504. Recor
of attack:
Time: 17:50 P.M.
With the previous attack experience, I began to observe the status of the Web server. at, the load of the machine increased sharply. I can basically confirm that another round of attacks started.
First, stop httpd, because it has been unable to move. Then capture the packet. tcpdump-C 10000-I em0-N DST port 80>/root/Pkts finds a large influx of data packets, filters out IP
state of the Web server, just 17:50, the machine load increased sharply, basically can be determined, another round of attack began.
First stopped the httpd, because has been unable to move, cannot. Then grab the bag, tcpdump-c 10000-i em0-n DST port >/root/pkts found a large number of datagram influx, filtered IP in it, no very centralized IP, and then suspected of being DDoS next based on the last suspic
Course IntroductionContent of the lecture:
Trends in DDoS attacks (scale, duration, and source)
DDoS Attack protection Considerations (program, host system, and network device level)
The use of CDN in cloud acceleration
D Attack protection strategy and system using Cloud CDN (decision system, monitoring devic
PHP code malicious DDoS attack before I was touched once, the server resources are accounted for, so that the site can not be used properly, let me introduce the solution.
Solutions
Modify the php.ini file
The code is as follows
Copy Code
"Disable_functions" changed to Gzinflate, the default is to vent"Allow_url_fopen" set to OffPhp_sockets.dll, open this module.
The abo
Anti-DDoS script
# Lightweight prevention against SYN AttacksIptables-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
# Prevent too many Dos connections. You can allow up to 15 Initial connections from each IP address of the Internet Nic, exceeding the limit of discardingIptables-A input-I eth0-P TCP-syn-M connlimit-abve 15-J DropIptables-A input-p tcp-M
Log on to your server with the root user to execute the following command, using it you can check whether your server is in a DDoS attack or not:NETSTAT-ANP |grep ' tcp\|udp ' |awk ' {print $} ' |Cut-d:-f1 |Sort |uniq-c | Sort–nThis command displays a list of the maximum number of IPs that are logged on that are connected to the server.DDoS becomes more complex, as attackers use fewer connections, more IP-a
anomalous incursion based on illegal data.
The barrier anomaly is based on anomalies that are not normally disposed of by warehouses (even if they are completely legal from a normative point of view). The famous "Ping of Death" is about the massive (but still legitimate) ICMP Echo solicitation packet. If the packet has the same source address, policy address and port, it is still legal, but it is harmful to the IP protocol stack. Stale land incursions have revitalized become imland and are dam
This article mainly introduces php's anti-ddos Solution. The example analyzes the principles and targeted solutions of the ddos attack program, which is a very practical technique, for more information about how to solve php ddos attacks, see the example in this article. Share it with you for your reference. The specif
addresses in the dropip through iptables, and then write them to the log file/var/log/ddos.
Another method is to use php to write ddos attacks and use other cloud platforms for operations.
Sinaapp is used as the test object.
Test method: create four versions of the app.
The homepage code of version 1 is as follows:
File_get_contents ('HTTP: // 2.mars.sinaapp.com/'); // version 1 triggers an
extremely confidential data.
6. Disable network access programs such as Telnet, FTP, Rsh, Rlogin, and RCP to be replaced by PKI-based access programs such as SSH. SSH does not send passwords online in clear text, while Telnet and rlogin are the opposite, and hackers can search for these passwords to instantly access important servers on the network. In addition, the. Rhost and hosts.equiv files should be deleted on Unix because these files provide logon access without guessing the password!
7
DDoS (Distributed Denial of Service) has made another huge step forward in DOS development, this Distributed Denial-of-Service attack allows hackers to use different high-bandwidth hosts (hundreds or even thousands of hosts) that have been intruded and controlled) install a large number of DOS service programs on them, waiting for commands from the central attack
: 17:50 P.M.With the previous attack experience, I began to observe the status of the web server. at, the load of the machine increased sharply. I can basically confirm that another round of attacks started.First, stop httpd, because it has been unable to move. Then capture the packet. tcpdump-c 10000-I em0-n dst port 80>/root/pkts finds a large influx of data packets, filters out IP addresses, and does not have a very concentrated IP address, therefo
The mod_evasive_1.10.1 Distributed Denial of service (ddos:distributed denial of service) attack refers to the use of client/server technology to unite multiple computers as an attack platform to launch DDoS attacks against one or more targets. Thus multiplying the power of denial of service attacks. As a result of DDoS
security, you can set the maximum connection, single IP connection, and blacklist!Maximum connections:7000-> 30000 (LoginGate) is set to 40 single IP connection is set to: 207100-> 31000 (SelChrGate) is set to 30 single IP connection is set to: 207200-> 32000 (RunGate) is set to 1000 Single IP connection is set to: 20In this way, we can effectively prevent DDOS attacks or other variant attacks!Defends against SYN attacks!You can set an IP address seg
Today in order to rest, change the brain, so I found a previous collection of Python article, is about DDoS attack a script, just today is free, on the practice.
Attached source pyddos.py:
#!/usr/bin/env Python import socket import time import threading #Pressure Test,ddos Tool #---------------------------MAX _conn=20000 port=80 host= "www.baidu.com" page= "/ind
Introduction: On the network, the Linux server is a great way, but also the attack. This article will describe the NTP attack problem encountered in practice and the corresponding solution.
1. Scene description
Aliyun on the ECS, over a period of time, frequent alarm, said the traffic is too large, the DDoS attack, the
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.