Linux - Detecting DDOS Attacks (tcpdump) | GOLINE
Goline Logo

FAQ

News

  • In the supply and logistics sectors, email communication is pivotal. However, organizations face threats like email fraud and phishing. GOLINE SA's clients struggled with configuring email authentication protocols manually. To address this challenge, GOLINE SA became an MSP Partner of PowerDMARC, collaborating to streamline implementation and management. PowerDMARC's cloud-based platform automated DMARC, SPF, and DKIM protocols for GOLINE SA's clients. This streamlined the transition to DMARC enforcement policies, bolstering domain protection without compromising email deliverability. The intuitive platform facilitated easy navigation and provided detailed reporting for proactive issue resolution. GOLINE SA's clients experienced tangible benefits: Enhanced Email Security: Automated protocols...
  • Route RPKI validation April 1st, 2022
    RPKI is a security framework by which network owners can validate and secure the critical route updates or Border Gateway Protocol (BGP) announcements between public Internet networks. BGP is essentially the central nervous system of the Internet and one of its fundamental building blocks. The main function of BGP is to facilitate efficient routing between Autonomous Systems (AS), by building and maintaining the Internet routing table. The Internet routing table is effectively the navigation system of the Internet and without it, traffic would be unable to flow between its constituent networks. Unfortunately, routing equipment alone cannot distinguish between legitimate and malicious routing announcements,...
  • RIPE – Atlas Anchor February 17th, 2022
    We have become an even more integral part of the RIPE Atlas project by hosting an anchor, a device that allows for latency analysis of traffic between autonomous systems.https://atlas.ripe.net/probes/7073/RIPE Atlas anchors play an integral role in the RIPE Atlas network by acting both as enhanced RIPE Atlas probes with more measurement capacity, as well as regional measurement targets within the greater RIPE Atlas network. Anchors are able to perform many more measurements than a regular RIPE Atlas probe, and the large amount of data they collect is made available to everyone. In addition, anchors act as powerful targets that can...

Linux – Detecting DDOS Attacks (tcpdump)

 # visualizza tutte le connessioni che comprendano l'host prtg.goline.ch
tcpdump -i ens160 host prtg.goline.ch

# visualizza tutti i pacchetti syn in ingresso
tcpdump -i ens160 -n tcp[tcpflags] == tcp-syn

# visualizza tutti i pacchetti provenienti da uno specifico host come sorgente (src)
tcpdump -i ens160 src host prtg.goline.ch

# visualizza tutti i pacchetti destinati a uno specifico host come sorgente (dst)
tcpdump -i ens160 dst host prtg.goline.ch

# determina se ci sia in corso un SYN flood
netstat -npt | awk '{print $6}' | sort | uniq -c | sort -nr | head

# visualizza il conteggio delle connessioni TCP ordinate per indirizzo IP
netstat -npt | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

# visualizza il conto delle connessioni TCP ordinate per indirizzo IP su una specifica porta (MOLTO FIGO!) – Specificare la porta, tipo 443
netstat -npt | grep <port> | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

# visualizza il conteggio delle connessioni e le ordina per indirizzo IP
netstat -npt | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

# visualizza il conteggio di tutte le connessioni TCP "ESTABLISHED" di una specifica porta ordinandole per IP
netstat -npt | grep <port> | grep ESTABLISHED | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

# visualizza il conteggio di tutte le connessioni TCP "ESTABLISHED" di ordinandole per IP
netstat -npt | grep ESTABLISHED | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

# determina se l'attacco SYN è da un singolo IP (DOS attack) o da molteplici IP (DDOS attack)
netstat -npt | grep SYN_RECV | awk '{print $5}' | grep -Eo '([0-9]{1,3}.){3}[0-9]{1,3}' | cut -d: -f1 | sort | uniq -c | sort -nr | head

 

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x