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 netstat娜
Display all active Internet connections to the servers and only established connections are included.显示所有活跃的网际网路连线到伺服器,只有建立了联系,均包括在内。
netstat -an | grep :80 | sort netstat - 1 | grep : 80 |排序
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 netstat - N -对| grep syn_rec |碳化钨-升
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.对DOS攻击的事件或邮件轰炸,多少可以跳转到双胞胎。 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 netstat - N -对| grep syn_rec |排序铀
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}' netstat - N -对| grep syn_rec | awk ' (打印5元) ' | awk -传真: ' (打印$ 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 netstat -台大| awk ' (打印5元) ' |削减三维: F1代|排序| uniq - C的|排序- 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 netstat -心钠素| grep '的TCP \ | UDP的' | awk ' (打印5元) ' |削减三维: F1代|排序| uniq - C的|排序- 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 netstat -台大| grep ,建立| awk ' (打印5元) ' |削减三维: F1代|排序| uniq - C的|排序-二○ ○
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 netstat计划| grep : 80 | awk ( '打印5元' ) |削减三维: - F的1 |排序| uniq - C的|排序纳戈尔诺-卡拉巴赫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 我的数字生活论坛 . 。
Related Articles相关文章
- Limit Maximum TCP Connections to Web Servers限制的最大TCP连接到Web服务器
- How to Check if Telnet Is Running on a Server如何检查,如果Telnet是运行在服务器上
- Tweak (Increase or Change) Maximum Simultaneous HTTP and Downloads Connections to Web Server调整(增加或变更) ,最高可同时HTTP和下载连接到Web服务器
- Checking Free Disk Space on FreeBSD Server检查可用磁盘空间在FreeBSD服务器
- How to Get Actual Build and Revision Number of Windows Vista or Longhorn Server Installed如何获得的实际,建立和修订版号的Windows Vista或Longhorn服务器安装
- Using PHP-MySQL Persistent Connections to Run WordPress Blog使用PHP - MySQL的持久连接运行的WordPress所博客
- Error Has Occurred While Establishing A Connection To SQL Server 2005 Which Does Not Allow Local and Remote Connections发生错误的同时,建立连接到SQL Server 2005不容许本地和远程连接
- Connect to Remote Computer using Specific Non Standard Port using Remote Desktop Connection Client连接到远程计算机上使用特定的非标准端口使用远程桌面连接客户端
- Workaround to Run VNC Server in Windows Vista其他可行方案运行的VNC服务器在Windows Vista
- Shortcut to Open Network Connections Quickly in Vista捷径打开网络连接迅速在Vista

































April 24th, 2008 13:38 2008年4月24日13时38分
Thank you, really useful for defending attacker谢谢你,真的有用,为捍卫攻击
July 3rd, 2008 19:24 2008年7月3日19时24分
Thank you very much, I have been under attack and thanks to list list of such useful info I am now clean!非常感谢你,我一直受到攻击和感谢一览表等有用的信息,我现在干净!