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
Khoá nhanh IP đang tấn công DDos
Related Posts:
Install Postfix Mail Server with Dovecot and Squirrelmail on CentOS 6.4Postfix is a free open source mail transfer agent (MTA). It is easy to administer, fast and as well as secure MTA. Its a alternative to Sendmail which is the default MTA for RHEL. Prerequisites 1. Remove default MTA sendma… Read More
LIST DISK PARTITIONS COMMAND – CÔNG CỤ DÒNG LỆNH PARTITION Làm thể nào để liệt kê tất cả các Hard Disk Partition trên hệ thống Linux? Thông thường, Hard Disk được chia làm 1 hoặc nhiều ổ đĩa logic gọi là partition. Sự phân chia đó được tìm thấy trong partition table tại khu vự… Read More
Gửi mail nội bộ dùng sendmailĐể cảnh báo các sự kiện tiến trình xảy ra ở Server, có thể viết scripts trong đó có gửi 1 message tới mail của Admin, để OS có thể gửi mail tới Admin các bạn cấu hình sendmail theo các bước bên dưới:I. Thông dải Configur… Read More
Crontab trên Linux 1. Cron là gì? Cron là một tiện ích cho phép thực hiện các tác vụ trên hệ thống một cách tự động theo định kỳ, ở chế độ nền của hệ thống. Chức năng này khá phong phú cho phép thiết lập tác vụ dưới dạng command đơn hoặc… Read More
Disable module apache#LoadModule auth_basic_module modules/mod_auth_basic.so#LoadModule auth_digest_module modules/mod_auth_digest.so#LoadModule authn_file_module modules/mod_authn_file.so#LoadModule authn_alias_module modules/mod_authn_alias.so#… Read More