How to Find and Check Number of Connections to a Server Como Localizar e verifique número de conexões para um servidor
Whenever a client connects to a server via network, a connection is established and opened on the system. Quando um cliente conecta a um servidor através da rede, uma conexão é estabelecida e aberta sobre o sistema. On a busy high load server, the number of connections connected to the server can be run into large amount till hundreds if not thousands. Em um servidor ocupado alta carga, o número de conexões conectado ao servidor pode ser executado em grande quantidade até centenas, se não milhares. Find out and get a list of connections on the server by each node, client or IP address is useful for system scaling planning, and in most cases, detect and determine whether a web server is under DoS or DDoS attack (Distributed Denial of Service), where an IP sends large amount of connections to the server. Informe-se e obter uma lista de conexões com o servidor por cada nó, cliente ou o endereço IP é útil para dimensionamento sistema de planeamento, e na maioria dos casos, detectar e determinar se um servidor web está sob ataque DoS ou DDoS (Distributed Negação de Serviço) , Onde IP envia uma grande quantidade de ligações para o servidor. To check connection numbers on the server, administrators and webmasters can make use of netstat command. Para verificar números de conexão do servidor, administradores e webmasters podem fazer uso do comando netstat.
Below is some of the example a typically use command syntax for ‘netstat’ to check and show the number of connections a server has. Abaixo está o exemplo de algumas normalmente utiliza uma sintaxe de comando 'netstat' para verificar e mostrar o número de conexões tem um servidor. Users can also use ‘man netstat’ command to get detailed netstat help and manual where there are lots of configurable options and flags to get meaningful lists and results. Os usuários também podem usar 'man netstat' comando netstat detalhadas para obter ajuda e manual onde há grande quantidade de opções configuráveis e bandeiras para obter resultados significativos e listas.
netstat -na netstat-nd
Display all active Internet connections to the servers and only established connections are included. Mostrar todos os ativos ligações à Internet aos servidores e apenas estabelecer as ligações são incluídos.
netstat -an | grep :80 | sort netstat-um | grep: 80 | espécie
Show only active Internet connections to the server at port 80 and sort the results. Mostrar somente ativo ligações à Internet para o servidor na porta 80 e classificar os resultados. Useful in detecting single flood by allowing users to recognize many connections coming from one IP. Útil na detecção de inundação única, permitindo que os usuários de reconhecer muitas conexões provenientes de um IP.
netstat -n -p|grep SYN_REC | wc -l netstat-n-p | grep SYN_REC | wc-l
Let users know how many active SYNC_REC are occurring and happening on the server. Deixe saber quantos usuários ativos SYNC_REC estão ocorrendo e acontecendo no servidor. The number should be pretty low, preferably less than 5. O número deve ser bastante baixa, de preferência menos de 5. On DoS attack incident or mail bombed, the number can jump to twins. Em ataque DoS incidente ou correio bombardeado, o número pode saltar para gêmeos. However, the value always depends on system, so a high value may be average in another server. No entanto, o valor sempre depende do sistema e, portanto um elevado valor médio pode ser em outro servidor.
netstat -n -p | grep SYN_REC | sort -u netstat-n-p | grep SYN_REC | sort-u
List out the all IP addresses involved instead of just count. Lista todos os endereços IP envolvidos em vez de apenas contar.
netstat -n -p | grep SYN_REC | awk '{print $5}' | awk -F: '{print $1}' netstat-n-p | grep SYN_REC | awk '(print $ 5)' | awk-F: '(print $ 1)'
List all the unique IP addresses of the node that are sending SYN_REC connection status. Lista todos os únicos endereços IP do nó que estão enviando SYN_REC conexão estatuto.
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n netstat-NTU | awk '(print $ 5)' | cut-d:-f1 | espécie | uniq-c | sort-n
Use netstat command to calculate and count the number of connections each IP address makes to the server. Use netstat comando de calcular e contar o número de conexões torna cada endereço IP para o servidor.
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n netstat-ANP | grep 'tcp \ | udp' | awk '(print $ 5)' | cut-d:-f1 | espécie | uniq-c | sort-n
List count of number of connections the IPs are connected to the server using TCP or UDP protocol. Lista contagem do número de conexões os IPs são conectados ao servidor usando o protocolo TCP ou UDP.
netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr netstat-NTU | grep estabe | awk '(print $ 5)' | cut-d:-f1 | espécie | uniq-c | sort-nr
Check on ESTABLISHED connections instead of all connections, and displays the connections count for each IP. Verifique com ligações ao invés de todas as conexões, e mostra as ligações contar para cada IP.
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 netstat-plano | grep: 80 | awk ( 'print $ 5') | cut-d:-f 1 | espécie | uniq-c | sort-NK 1
Show and list IP address and its connection count that connect to port 80 on the server. Mostrar lista e endereço IP e sua conexão com que contam para conectar a porta 80 do servidor. Port 80 is used mainly by HTTP web page request. Porta 80 é usado principalmente pela página da Web HTTP request.
IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta é uma página traduzida máquina que é fornecida "como está" sem garantia. Machine translation may be difficult to understand. A tradução automática pode ser difícil de compreender. Please refer to Por favor, consulte a original English article Inglês original article whenever possible. sempre que possível.
Share and contribute or get technical support and help at Compartilhe e contribuir ou obter suporte técnico e ajudar a My Digital Life Forums Minha vida digital Fóruns .
Related Articles Artigos relacionados
- Limit Maximum TCP Connections to Web Servers Limite Máximo de conexões TCP para os servidores da web
- How to Check if Telnet Is Running on a Server Como verificar se está rodando em um Telnet Server
- Tweak (Increase or Change) Maximum Simultaneous HTTP and Downloads Connections to Web Server Tweak (Aumento ou Mudar) Máximo Simultanea HTTP e Downloads Conexões de Servidor Web
- Checking Free Disk Space on FreeBSD Server Verificação de espaço livre em disco no servidor FreeBSD
- How to Get Actual Build and Revision Number of Windows Vista or Longhorn Server Installed Como obter a efectiva construção e número de revisão ou Windows Vista Longhorn Server instalado
- Using PHP-MySQL Persistent Connections to Run WordPress Blog Usando o MySQL-PHP conexões persistentes para correr WordPress blog
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections Erro ocorreu ao mesmo tempo que estabelece uma ligação ao SQL Server 2005 que não permite conexões locais e remotas
- Connect to Remote Computer using Specific Non Standard Port using Remote Desktop Connection Client Ligue para computador remoto usando específicos não padrão porta usando Remote Desktop Connection Client
- Shortcut to Open Network Connections Quickly in Vista Atalho para abrir ligações de rede rápida de Vista
- Workaround to Run VNC Server in Windows Vista Solução para executar VNC Server no Windows Vista













April 24th, 2008 13:38 24 de abril de 2008 13:38
Thank you, really useful for defending attacker Muito obrigado, realmente úteis para defender atacante
July 3rd, 2008 19:24 3 de julho de 2008 19:24
Thank you very much, I have been under attack and thanks to list list of such useful info I am now clean! Muito obrigado, tenho vindo a sofrer ataques e, graças a lista lista de tais informações úteis agora estou limpo!