How to Find and Check Number of Connections to a Server如何查找和數量勾選連接到服務器

Whenever a client connects to a server via network, a connection is established and opened on the system.每當有客戶端連接到一台服務器通過網絡連接,建立和開放的系統。 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.在繁忙的高負荷服務器,連接數量的連接到服務器可以運行大量進入到數百甚至數千。 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.找出並取得名單的連接在服務器上的每個節點,客戶端或IP地址是有益的系統擴展規劃,而且在多數情況下,偵查和決定是否Web服務器是根據DOS或DDoS攻擊(分佈式拒絕服務)在一個IP發送大量的連接到服務器。 To check connection numbers on the server, administrators and webmasters can make use of netstat command.要查看連接數的服務器上,管理員和網站管理員可以使用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.以下是一些例如通常使用的命令語法為' netstat '檢查並顯示連接數了一台服務器。 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.用戶還可以使用'男子netstat '命令netstat獲得詳細的幫助和手冊那裡有大量的配置選項和旗幟,以獲得有意義的名單和結果。

netstat -na
Display all active Internet connections to the servers and only established connections are included.顯示所有活動的互聯網連接到服務器,只有建立連接也包括在內。

netstat -an | grep :80 | sort

Show only active Internet connections to the server at port 80 and sort the results.只顯示活躍的互聯網連接的服務器上的端口80和排序結果。 Useful in detecting single flood by allowing users to recognize many connections coming from one IP.實用的檢測由單一的洪水使用戶能夠認識到許多連接來自一個IP 。

netstat -n -p|grep SYN_REC | wc -l
Let users know how many active SYNC_REC are occurring and happening on the server.讓用戶知道有多少積極SYNC_REC正在發生和發生在服務器上。 The number should be pretty low, preferably less than 5.數量應相當低,最好小於5 。 On DoS attack incident or mail bombed, the number can jump to twins.對拒絕服務攻擊事件或郵件轟炸的人數有5000對雙胞胎。 However, the value always depends on system, so a high value may be average in another server.然而,價值總是取決於系統,所以,高附加值平均可在另一台服務器。

netstat -n -p | grep SYN_REC | sort -u
List out the all IP addresses involved instead of just count.列出所有IP地址的參與,而不只是指望。

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.列出所有獨特的IP地址的節點發送SYN_REC連接狀態。

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
Use netstat command to calculate and count the number of connections each IP address makes to the server.使用netstat命令來計算和計數連接數量的每個IP地址使服務器。

netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
List count of number of connections the IPs are connected to the server using TCP or UDP protocol.伯爵表的數量連接的IP連接到服務器使用TCP或UDP協議。

netstat -ntu | grep ESTAB | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
Check on ESTABLISHED connections instead of all connections, and displays the connections count for each IP.檢查既定的連接不是所有連接,並顯示連接計數為每個IP 。

netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
Show and list IP address and its connection count that connect to port 80 on the server.名單顯示和IP地址和連接數,連接到端口80的服務器上。 Port 80 is used mainly by HTTP web page request. 80端口主要用於通過網頁上的HTTP請求。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要說明:這是一台機器翻譯網頁這是“原樣”提供,無保修。 Machine translation may be difficult to understand.機器翻譯可能很難理解。 Please refer to請參閱 original English article英文原文的文章 whenever possible.只要有可能。

Share and contribute or get technical support and help at共享和貢獻或獲得技術支持和幫助 My Digital Life Forums 我的數字生活論壇 .



2 Responses to “How to Find and Check Number of Connections to a Server”第2響應“如何尋找和檢查的連接到服務器”

  1. kleang
    April 24th, 2008 13:38 2008年4月24號13:38
    1

    Thank you, really useful for defending attacker謝謝你,真的有用的衛冕攻擊 : )

  2. Giochi
    July 3rd, 2008 19:24 2008年7月三日19:24
    2

    Thank you very much, I have been under attack and thanks to list list of such useful info I am now clean!非常感謝你,我一直受到攻擊和感謝名單,名單等有用的信息我現在乾淨!

Leave a Reply留下一個回复

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> 您可以使用這些標籤: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> “刪除日期時間= “ ” “的<em> <i> <q cite=""> <strike>的<strong>

Subscribe without commenting訂閱沒有評論


Custom Search

New Articles新文章

Incoming Search Terms for the Article收到的搜索字詞的文章

netstat count netstat伯爵 - - netstat count connections 連接netstat伯爵 - - netstat number of connections netstat連接數 - - check server connections 檢查服務器連接 - - number of connections 連接數 - - SQL server number of connections SQL服務器連接數 - - netstat ddos netstat的DDoS - - netstat sort by IP netstat排序的IP - - netstat connection count netstat連接數 - - number of connections windows 一些連接窗口 - - check connections 檢查連接 - - check for ddos 檢查的DDoS - - check connections sql server 檢查連接的SQL Server - - netstat sort netstat排序 - - SQL server connections count SQL服務器連接數 - - check number 支票號碼 - - check ddos 支票的DDoS - - check connections to server 檢查連接到服務器 - - windows number of connections 窗口連接數 - - netstat grep wc dos netstat grep廁所多 - - show number of connections 顯示連接數 - - dos attack netstat DoS攻擊netstat - - ddos check 檢查的DDoS - - netstat awk netstat awk - - how to check server connections 如何檢查服務器連接 - - find check number 找到支票號碼 - - how to find check number 如何找到支票號碼 - - check number of connections 檢查連接數 - - netstat count connection netstat伯爵連接 - - number of connections to a server 一些連接到服務器 - - netstat ddos commands netstat命令的DDoS - - vista number of connections 維斯塔連接數 - - sql server check number of connections SQL Server的檢查連接數 - - SYN_REC SYN_REC - - SQL Server number of connection SQL Server的一些方面 - - how to find number of connections in SQL Server 如何找到連接數量在SQL Server - - show connections to server 顯示連接到服務器 - - how to see numbers of connections in SQL 2005 如何查看連接數2005年在SQL - - netstat & SQL 2005 connections netstat和SQL 2005年連接 - - to find the number of connections + netstat 找到連接數+ netstat - - netstat detect ddos netstat檢測的DDoS - - sql server, find number of connections SQL Server中,找到連接數 - - netstat check for DOS netstat檢查適用於DOS - - netstat check number of connections netstat檢查連接數 - - checking server connections 檢查服務器連接 - - check connections in dos 檢查連接的多斯桑托斯 - - locate check number 找到支票號碼 - - netstat grep wc netstat grep廁所 - - prevent ddos netstat 防止攻擊netstat - - netstat how to count netstat如何計算 - -