Saturday, August 3, 2013

Khoá nhanh IP đang tấn công DDos

Bước 1: Lấy danh sách những top connection:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Bước 2: chạy command
route add IP_ADDRESS reject
Bước 3: Gỡ bỏ IP khỏi bảng cấm:

route delete IP_ADDRESS reject

Related Posts:

  • Compiling Software With Debian LinuxThere is a lot of free software out there that is written for Linux/UNIX that's only available in source code format. As explained on the Basics page, this is the most efficient way for the developers to distribute … Read More
  • Compile httpd 2.4.6-P1 Introduction to Apache HTTPD The Apache HTTPD package contains an open-source HTTP server. It is useful for creating local intranet web sites or running huge web serving operations. This package is known to buil… Read More
  • Compile httpd 2.4.6-P4./configure --help `configure' configures this package to adapt to many kinds of systems. Usage: ./configure [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. &nbs… Read More
  • Debugging PHP Scripts Using slow_log and more If you are an old PHP programmer, you must have used PHP’s error_log function sometime. But PHP itself does not provide a way to find out slowly executing scripts. Slow scripts are not the ones whi… Read More
  • Compile httpd 2.4.6 - P 5 Introduction to PCRE The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as&… Read More