Analisar Conexões TCP Ativas

Intermediário Rede & Diagnóstico

Analisa conexões TCP ativas para identificar consumo e problemas.

O que é
ss — analisa conexões tcp ativas para identificar consumo e problemas....
Comando
ss
Categoria
Rede & Diagnóstico
Nível
Intermediário
📌 Comando: ss
📁 Categoria: Rede & Diagnóstico
👁 Visualizações: 27

Sintaxe

Sintaxe
bash
ss -tnp state established

Exemplos de Uso

Conexões estabelecidas
$ ss -tnp state established
Contar por estado
$ ss -tn | awk "{print $1}" | sort | uniq -c | sort -rn
Por IP de origem
$ ss -tn state established | awk "{print $5}" | cut -d: -f1 | sort | uniq -c | sort -rn | head
TIME_WAIT excessivo
$ ss -tn state time-wait | wc -l
Configurar tcp_tw_reuse
$ sysctl -w net.ipv4.tcp_tw_reuse=1

Guia Rápido: ss

O que é

ss é um comando Linux usado para analisa conexões tcp ativas para identificar consumo e problemas..

Para que serve

Analisa conexões TCP ativas para identificar consumo e problemas.

Quando usar

Use ss em tarefas de rede & diagnóstico, especialmente em servidores Linux, cPanel, WHM e VPS.

🖥️
Precisa de um VPS com cPanel?
HostSSD oferece VPS NVMe com cPanel/WHM incluído e migração gratuita.
Ver Planos
Copiado!