• Home
  • WordPress
  • web Hosting
  • linux
  • mysql
  • nginx
  • apache2
  • devops

Raju Ginni

wordpress tutorials seo hosting etc

You are here: Home / Linux sysadmin tutorials linux system administrator / ddos attack prevention

ddos attack prevention

 

Table of Contents

Toggle
  • Types Of DDOS attacks
  • SYN flood: 3 way TCP handshake
  • How to Prevent DDOS Attack
  • How to Stop SSH brute force attacks

Types Of DDOS attacks

 

Application level

Network Protocol

Smurf attack is a distributed denial-of-service attack in which large numbers of Internet Control Message Protocol (ICMP) packets

What+is+a+Smurf+Attack+Denial+of+Service+Attack+using+spoofed+broadcast+ping+messages.

ICMP Png command.

ICMP relies on attacking nodes sending false error requests to the target

SYN flood: 3 way TCP handshake

  • Client sends syn packet
  • server sends syn+ACK and
  • waits for Acknowledgement for client to establish a connection. but hacker not sends it..

we can tweak it in linux sysctl.conf

3 way handshake

 

How to Prevent DDOS Attack

Check for the Server Access Log

Linux auth log

Error logs

Rate limit a IP  ex: Nginx rate limiting

BanIP Using Fail2ban

Harden linux security by tweaking sysctl

Use third party services like cloudflare as  reverse proxy to your server.

 

How to Stop SSH brute force attacks

 

CRON[22610]: pam_unix(cron:session): session opened for user root by (uid=0)
Apr 24 04:09:01 -s-4vcpu-8gb-blr1-01 CRON[22610]: pam_unix(cron:session): session closed for user root
Apr 24 04:15:56 -s-4vcpu-8gb-blr1-01 sshd[23550]: Invalid user code from 190.128.131.102 port 33174
Apr 24 04:15:57 -s-4vcpu-8gb-blr1-01 sshd[23550]: Received disconnect from 190.128.131.102 port 33174:11: Bye Bye [preauth]
Apr 24 04:15:57 -s-4vcpu-8gb-blr1-01 sshd[23550]: Disconnected from invalid user code 190.128.131.102 port 33174 [preauth]

sshd[16993]: error: maximum authentication attempts exceeded for root from 87.241.1.186 port 54861 ssh2 [preauth]
Apr 24 03:19:05 -s-4vcpu-8gb-blr1-01 sshd[16993]: Disconnecting authenticating user root 87.241.1.186 port 54861: Too many authentication failures [preauth]
Apr 24 03:19:08 -s-4vcpu-8gb-blr1-01 sshd[16995]: error: maximum authentication attempts exceeded for root from 87.241.1.186 port 56491 ssh2 [preauth]
Apr 24 03:19:08 -s-4vcpu-8gb-blr1-01 sshd[16995]: Disconnecting authenticating user root 87.241.1.186 port 56491: Too many authentication failures [preauth

 

ssh brute force attacks

  • use SSH only through a private IP from your computer
  • Disable root login
  • disable password login only use public ssh keys
  • change port
  • use fail2ban to ban ip addresses
  • 2 factor authentication with google re captcha

DDoS Attacks

Memcached DDoS Attack
NTP Amplification Attack
DNS Amplification Attack
SSDP Attack
Low and Slow Attack
Application Layer Attack
Layer 3 Attacks
Cryptocurrency Attacks
Ransom DDoS attack
Smurf Attack (historic)
Ping of Death (historic)
ACK Flood Attack
DNS Flood
HTTP Flood
Ping (ICMP) Flood Attack
QUIC Flood Attack
SYN Flood Attack
UDP Flood Attack

 

 

Linux sysadmin tutorials linux system administrator

  • top 10 apt & apt-get commands (most used) apt vs apt-get
  • If-Else Statements in Shell Scripting
  • linux commands pdf (files & Directories, zip & unzip process, search etc)
  • Find Files with Specific Text on Linux grep find command
  • linux performance tuning inode limit file descriptors tco, kernel etc
  • Variables and Data Types in Shell Scripting
  • Top 10 most used Cat commands with examples (create, view, append files)
  • Ip tables / ufw / firewall d commands for block port ip rate limiting
  • Top 10 zip / tar commands to compress & extract files in linux
  • TOP 10 mv & cp commands in linux to move & copy files in Linux
  • Top 10 GREP Commands in linux to search files directory words strings
  • lsof netstat commands to know listening ports in linux 3 ways
  • Upgrade Ubuntu from 18.04 (19.10) to 20.04 LTS command line or gui server | desktop
  • 3 Ways (SCP, rsync, Sftp) linux server migration between two remote server apache nginx
  • linux system specs commands (CPU, Memory, Disk )speed, type. manufacture
  • linux sysctl command tweaks & hardening
  • linux security limits.conf deciding user limits process limits for nginx server
  • ulimit linux unlimited command unlimto set & know user limits open files file descriptor max user process etc.
  • red hat linux certification cost jobs salary syllabus courses fees
  • ufw firewall commads allow port enable disable ubuntu 20.04
  • ddos attack prevention
  • change ssh port in linux - avoid sshd ddos attacks
  • ping command
  • memcached install ubuntu wordpress
  • check linux version (lsb_release -a) ubuntu debian 32 or 64 bit
  • rsync command linux with examples comparison to scp
  • how to uninstall package in linux ubuntu rpm, yum apt-get
  • increase open file limit linux File descriptor ft nginx , mysql, lemp
  • remove repository ubuntu
  • htop commad memory details virtual vs shard vs resident
  • chown command in Linux with Examples
  • Kill PHP process
  • VIrtual Memory vs RSS Memory vs Shared memory in Linux
  • oom killer fixing it by configuration linux ubuntu
  • Install Lemp nginx mysql php fpm Stack on Debian 11 with repository
  • connect two remote servers linux command line
  • auto start after oom killer Mysql & php fpm nginx etc ubuntu wth systemd or cron job
  • load average Linux 1, 5, 15 min 2,4,8 cores explained
  • Control Structures in Shell Scripting
  • Shell Scripting Roadmap for Beginners to Advanced
  • awk commands with practical examples
  • Shell Scripting Tutorial for Beginners 🚀
  • find Command in Linux with Examples
  • sed Command in Linux with Examples (Beginner to Advanced)
  • Linux Text processing commands in with Examples
  • linux disk management commands
  • fdisk command in linux with examples
  • how to add a new disk in linux
  • Linux mount Command with Examples
  • fstab options with examples
  • Top 50 Shell Scripting Interview Questions and Answers
  • Linux Networking Interview Questions and Answers
  • Linux Networking Commands Cheat Sheet with Examples pdf
  • Netstat & SS Commands cheat sheet with examples Interview Questions
  • Nmap Cheat Sheet – Network Scanning & Security
  • Bash Brackets ([], (), {}, $( ), $(( ))) – Types, Uses & Examples

hi i am raju ginni, primalry i manage wordpress websites on GCP cloud platform as a cloud engineer, and create content on passionate things.
you can follow me on youtbe

© 2025 - All Rights Reserved Disclaimer & Privacy Policy