A DDoS attack sends traffic from multiple sources to overwhelm a service. If your Linux server becomes slow or unreachable, traffic and connection checks can help investigate the cause, although high traffic alone does not prove an attack.
Check the symptoms
Compare current bandwidth, CPU usage and request rates with the server’s normal workload. Check your provider’s traffic graphs and web-server logs. A busy website, application fault or upstream network problem can produce similar symptoms.
Inspect web connections
From an authorised SSH session, inspect TCP connections whose local port is 80 or 443:
ss -Htan '( sport = :80 or sport = :443 )'Count the rows in this snapshot:
ss -Htan '( sport = :80 or sport = :443 )' | wc -lTo inspect incomplete incoming handshakes, use:
ss -Htan state syn-recv '( sport = :80 or sport = :443 )'The local address identifies your listener; the peer address identifies the other end of the connection. Compare repeated snapshots with normal activity rather than treating one count as an attack threshold.
Interpret the results
These commands show TCP sockets, not every HTTP request or UDP packet. Requests behind a CDN or proxy may share its address. Many connections from one address are not sufficient evidence to block it.
If traffic is overwhelming the network link, contact your hosting provider with the affected service, time and traffic evidence. Stopping Apache or adding a local firewall rule does not restore a saturated upstream connection.
Keep logs and monitoring evidence for investigation. Use the provider’s mitigation process rather than making broad blocks based on a single snapshot.