tcp伺服器限制單個ip連接數
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模式下才能替換,網路上可以搜索到專門的替換工具,如下圖截圖。