当前位置:首页 » 云服务器 » tcp服务器限制单个ip连接数

tcp服务器限制单个ip连接数

发布时间: 2023-01-20 11:53:04

1. 一般对服务器的单IP的tcp连接数设置多少为安全

只是一般的网站如图片类的等单个IP控制20-30足够 如果是攻击 TCP类的如CC攻击 线程数至少 30-50但是你想过没 有的人是局域网 不过局域网的人同时访问你的站的不多另外至于防御病毒 TCP做不到

2. Windows TCP/IP 连接数限制

From:https://support.solarwinds.com/SuccessCenter/s/article/NETSTAT-A-command-displays-too-many-TCP-IP-connections?language=en_US

NETSTAT -A command displays too many TCP/IP connections

Running the NETSTAT -A command from the command prompt shows a large number of TCP/IP connections established by the ipMonitor software. If ipMonitor is unable to open new connections, monitor failures can occur.

Overview

Running the NETSTAT -A command from the command prompt shows a large number of TCP/IP connections established by the ipMonitor software. This increased network traffic can affect ipMonitor's ability to create new connections, especially since many existing TCP/IP connections remain in a reserved TIME_WAIT state. Ultimately, if ipMonitor is unable to open new connections, monitor failures can occur.

Environment

ipMonitor 10.8;ipMonitor 10.x

Cause

The majority of TCP/IP connections displayed are ephemeral ports that have already been closed, but that remain reserved before they can be reused. This reserved state is denoted by the netstat TIME_WAIT label.

Microsoft limits the number of connections to 3975 by default, meaning that there can only be 3975 TCP/IP connections open at any given time. In addition, the TIME_WAIT state is configured by default to be 240 seconds. This means that Windows can only support an average of 33 TCP/IP connections per second. ipMonitor must then wait 240 seconds before being able to reuse those connections. If you have a large number of configured Monitors set to retest resources at short intervals, 3975 connections every four minutes may not be enough.

Resolution

Warning: Windows registry changes can result in severe system damage if performed incorrectly. Before you modify the registry, make a backup and ensure you understand how to restore the registry if a problem occurs. 

Attempt the troubleshooting steps in the following order:

Increase the refresh time between monitor tests 

If possible, SolarWinds recommends configuring your monitors to use the default value of 300 seconds between monitor tests. This optimal setting ensures there are enough TCP connections available when needed.

Increase the maximum simultaneous connections 

Start the Registry Editor(Regedt32.exe).

Access the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Add a DWORD value to this registry key:

Name: MaxUserPort

Type: DWORD

Value: 65534 (decimal)

Exit the Registry Editor.

Note: This section can also be used as reference ring large Server & Application Monitor (SAM) installations.

Rece the ration of the Reserved State 

Recing the value of the TIME_WAIT state results in TCP connections being reused faster, therefore allowing for an increased number of connections ring the same length of time. Note that if the value is too low, the TCP connection may close before monitor testing is complete.

Start the Registry Editor (Regedt32.exe).

Access the following registry key:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters

Add a DWORD value to this registry key:

Name: TcpTimedWaitDelay

Type: REG_DWORD - Time in seconds

Value: 120 (decimal)

Exit the Registry Editor.

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.

3. 有人说linux的TCP连接数量最大不能超过65535个吗,是真的吗

linux的TCP连接数量最大不能超过65535个,这种说法是错误的。

基于以上的原因,在Linux操作系统中,对TCP连接数量的限制依次有:端口数量限制,网络核心限制,最大文件数量限制(因为每建立一个连接就要打开一个文件),防火墙限制,用户打开文件限制。但并不存在65535这个数量限制。

4. 如何解决TCP/IP限制

WindowsXP_sp2默认将TCP/IP连接数限制为20,这样当你的机器使用多连接软件(比如BT工具,代理猎手等)的时候就会占满这20个连接,其他程序就不能使用网络连接上网了。
比如你打开bt下载东西的时候,你的IE就不能浏览网页了,因为bt工具的使用的连接数已经达到20。

比特精灵V2.7.2自带一个连接数破解工具,可以突破这个限制。

WindowsXP_p2有限制,但是SP1没有,所以XP_sp1使用的时候不会出现这个问题。

下载破解工具:http://www.cloudward.net/blog/blogview.asp?logID=80
参考资料:http://www.cloudward.net/blog/

5. Win10如何开启/关闭TCP/IP半开连接数限制

解决方法:
TCP/IP半开连接数限制查看方式:
1.快捷键WIN+R,打开运行,输入regedit,进入注册表路径:
2.找到HKEY_LOCAL_MACHINESYSTEM\CurrentControlSet\Services\Tcpip\Parameters

在右侧面板中找到EnableConnectionRateLimiting键值;

此时,总计有三种情况:
a. 无此键值:你的系统并无TCP/IP连接数限制;
b. 键值为0:你的系统同样没有TCP/IP连接数限制;
c. 键值为1:TCP/IP限制被激活,默认为11。
关闭方法:
1.双击修改其值为“0”;
2.点击确定退出。

6. TCP/IP连接数限制问题怎么解决

这是因为传输控制协议/Internet协议(TCP/IP)堆栈是Microsoft XP/ 2003的核心组件,不能删除。在这种情况下,如果需要重新安装TCP/IP以使TCP/IP堆栈恢复为原始状态。可以使用NetShell实用程序重 置TCP/IP堆栈,使其恢复到初次安装操作系统时的状态。方法是:在命令提示符后键入以下命令,然后按ENTER键:netsh int ip reset c:\resetlog.txt,其中,Resetlog.txt记录命令结果的日志文件,一定要指 定,这里指定了Resetlog.txt日志文件及完整路径。运行此命令的结果与删除并重新安装TCP/IP协议的效果相同。

如果是有线,下载设为300KB/s,上传设为30KB/s
如果是1M ADSL,下载设为125KB/s,上传设为15KB/s
如果是2M ADSL,下载设为250KB/s,上传设为25KB/s

如果上传速度过大会影响下载速度的

7. tcp ip连接限制 设多少好啊 多少安全啊

TCP并发连接数,指在同一时间条件下,连接你电脑的IP数量,使用BT等下载工具时,并发连接数当然越高越好,短时间内迅速提升至最大下载熟读。
在特殊的条件下,比如网站、服务器等需要高安全等级的电脑,一般不建议调整过高。
windows xp 的TCP连接数的最高限制为256 ,但可以使用破解补丁破解

8. TCP的IP连接数限制是多少

众所周知,为了防范蠕虫病毒的传播和攻击,Windows XP SP2将并发线程最多限制为10个。SP2利用Messages动态链接库,来实时监控每个进程的并发线程数目,一旦它发现某进程的线程数超过10个,就会屏蔽掉部分线程。SP2这样做,虽然可以防范震荡波类型的蠕虫病毒,加强系统安全,但是也带了一些负面影响,例如当你使用BT、P2P或FlashGet软件下载时,部分线程将被屏蔽掉,因此下载速度会变得很慢。为此,你可以采取以下对策,来突破TCP并发连接数,从而提高SP2的多线程访问速度。 x0dx0ax0dx0a 一、注册表修改法的误区 x0dx0ax0dx0a 为了突破SP2对TCP并发连接数的限制,网上曾经流传过一种修改注册表的方法,操作步骤如下: x0dx0a 单击“开始”/运行,输入Regedit打开注册表,定位到HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters下,修改的“TcpNumConnections”的键值,将之由10改为250,即设置TCP最大并发连接数为250。 x0dx0ax0dx0a 经过实际测试,我们发现该方法看起来有效,但实质上并不能突破并发连接数限制,提高SP2的多线程访问速度。因为SP2对线程数目的控制,是通过“Tcpip.sys”这个系统文件来实现的,并不是通过注册表实现的,因此,该方法不能增加SP2的TCP并发连接数。 x0dx0ax0dx0a 二、使用工具来替换Tcpip.sys x0dx0ax0dx0a 为了突破SP2的TCP并发连接数限制,正确地方法是修改Windows XP SP2的系统文件Tcpip.sys。Tcpip.sys是Windows XP SP2重要的系统文件,位于“C:\Windows\system32\drivers目录下。该文件由于平时受到系统保护,所以正常情况下你是无法替换它的,必须在安全模式或纯DOS模式下才能替换,建议你使用以下专门工具、来替换“Tcpip.sys”文件,操作步骤如下: x0dx0ax0dx0a 从网上下载替换工具(仅为30KB),用它来修改系统文件Tcpip.sys最大安全并发连接限制;然后备份一下C:\Windows\system32\drivers\Tcpip.sys文件。 x0dx0a 接下来,双击打开下载文件ZIP压缩包,运行其中的替换工具EvID4226Patch.exe,随之将弹出一个命令行提示符窗口,首先显示Windows当前的Tcpip.sys文件版本,以及并发连接的限制数值(默认为10);接着询问你是否将连接数限制在50(如下图1),你可以选择“Yes/No/Change”,如果你输入“Y”,则会将并发连接数改为“50”,如果想改为其他数(例如250),可以在提示符后输入“c”,然后输入最大的并发连接数(例如250)回车,最后在提示符下输入“Y”并回车,这样就替换了Tcpip.sys文件;Tcpip.sys文件被替换后,随之会弹出系统文件保护对话框,你可以点击“取消”按钮,然后点击“是”按钮,重新启动后,Tcpip.sys文件的替换就大功告成了! x0dx0ax0dx0a 现在你的最大并发连接数已超过10个,达到了250个,因此Windows XP SP2的多线程访问速度得到了提升,当你用FlashGet、BT等多线程下载时,就不会感到网络带宽的限制了。 x0dx0ax0dx0a 三、DOS下修改Tcpip.sys文件 x0dx0ax0dx0a 以上替换程序EvID4226Patch.exe也可以在DOS下使用,方法是:首先把EvID4226Patch.exe拷贝到C盘根目录下;然后再进入DOS模式,进入C盘根目录,输入命令EvID4226Patch/L=$n$/w=C:\WINDOWS\system32\drivers/L=tcpip.sys即可修改Tcpip.sys文件。 x0dx0ax0dx0a 注意:以上$n$为你要设置的最大安全连接数,假如要把最大并发连接数设置为250个线程,那么输入命令EvID4226Patch/L=150/w=C:\WINDOWS\system32\drivers/L=tcpip.sys即可。 x0dx0ax0dx0a 四、使用比特精灵附带的工具 x0dx0ax0dx0a 比特精灵附带的工具“TCP/IP连接数破解补丁”也可以替换Tcpip.sys,突破SP2的TCP并发连接数限制。 x0dx0ax0dx0a 从网上下载比特精灵(BitSpirit)V2.7.2.225简体中文正式版,然后双击下载文件进行安装。你可以选择安装哪些组件(下图2),应该安装“用于Windows XP SP2的TCP/IP连接数破解补丁”,安装结束后,XP开始菜单中就会有BitSpirit程序组,单击其中的“XP SP2连接数破解补丁”,即可修改Tcpip.sys文件。 x0dx0a x0dx0a 单击“XP SP2连接数破解补丁”,弹出该软件的界面,界面中列出了当前Tcpip.sys的版本、及最大并发连接数(右图3),你可以在“TCP/IP Linitation”输入一个数,来设置最大并发连接数,例如输入250,然后按“Apply”按钮,重启系统后,你的SP2最大并发连接数就改为了250。 x0dx0ax0dx0a以上几种方法虽然提高了Windows XP SP2的多线程访问速度,但却降低了SP2的安全性能,如果你的电脑感染了病毒和木马,过多地启用新线程,会加速病毒和木马地蔓延,因此你在追求网络下载速度的同时,也要注意网络安全。建议你及时安装升级杀毒软件和防火墙,如果是普通用户,可以利用上面的方法,将TCP最大并发连接数设置为5~8,BT用户可以设置为160~400。

9. 每个ip tcp连接数设置多少

windows xp的连接数默认设置为10,windows 10 默认没有限制。

如果需要解除连接数限制,可以将其设为最大值250。

设置方法

一、注册表修改法的误区

通过修改注册表的“TcpNumConnections”的键值的方法是无效的,windows是通过“Tcpip.sys”这个系统文件来实现,并不是通过注册表实。

二、使用工具来替换Tcpip.sys

Tcpip.sys是活跃的系统文件,简单的复制粘贴无法替换,必须在安全模式或纯DOS模式下才能替换,网络上可以搜索到专门的替换工具,如下图截图。

热点内容
scratch少儿编程课程 发布:2025-04-16 17:11:44 浏览:626
荣耀x10从哪里设置密码 发布:2025-04-16 17:11:43 浏览:356
java从入门到精通视频 发布:2025-04-16 17:11:43 浏览:71
php微信接口教程 发布:2025-04-16 17:07:30 浏览:296
android实现阴影 发布:2025-04-16 16:50:08 浏览:787
粉笔直播课缓存 发布:2025-04-16 16:31:21 浏览:337
机顶盒都有什么配置 发布:2025-04-16 16:24:37 浏览:202
编写手游反编译都需要学习什么 发布:2025-04-16 16:19:36 浏览:798
proteus编译文件位置 发布:2025-04-16 16:18:44 浏览:355
土压缩的本质 发布:2025-04-16 16:13:21 浏览:582