Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows Server 系統教學 >> Server 2000

Windows 2000 登錄安全硬化 13 項關鍵參數

編輯:Server 2000

網路層防護參數 (Tcpip\Parameters)

參數路徑建議值預設說明
DefaultTTLTcpip\Parameters0xFF (255)128偽裝 OS 指紋 (Unix-like),誤導攻擊者偵察
EnableICMPRedirectsTcpip\Parameters01拒絕 ICMP 重導向,防路由表被惡意竄改
PerformRouterDiscoveryTcpip\Parameters\Interfaces\{GUID}02禁止 ICMP 路由器發現,防路由污染/流量劫持
SynAttackProtectTcpip\Parameters20啟用 SYN Flood 保護 (等級 2 最強,延遲連線指示至三向交握完成)
AutoShareServer / AutoShareWksLanmanServer\Parameters01停用 C$/D$/ADMIN$ 預設管理共享
RestrictAnonymousControl\Lsa10限制匿名枚舉用戶/共享;值 2 可能導致 SQL Server 等服務失敗
IGMPLevelTcpip\Parameters02停用 IGMP (多播),移除路由表 224.0.0.0 項,減少攻擊面
ArpCacheLife / ArpCacheMinReferencedLifeTcpip\Parameters視環境 (預設 120/600 秒)120/600ARP 快取老化時間,防 ARP 欺騙殘留;高安全環境可縮短
EnableDeadGWDetectTcpip\Parameters01關閉失效閘道偵測,避免攻擊觸發閘道切換風暴
IPEnableRouterTcpip\Parameters00確保非路由器角色不啟用轉發功能
MaxUserPortTcpip\Parameters655345000NAT/Proxy 環境擴大暫時埠範圍,防埠耗盡

網卡 MAC 位址修改 (防 MAC 綁定/追蹤)

路徑:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}
展開子機碼 0000, 0001... 找到 DriverDesc 為目標網卡說明的分支
新增字串值:NetworkAddress = 004040404040 (12 位十六進位,不含分隔符)
重開機後 ipconfig /all 驗證

注意:部分驅動程式/硬體不支援軟體改 MAC;若導致網路失效,刪除該值重開機恢復。

部署自動化腳本 (anti_harden.reg)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"DefaultTTL"=dword:000000ff
"EnableICMPRedirects"=dword:00000000
"SynAttackProtect"=dword:00000002
"EnableDeadGWDetect"=dword:00000000
"IPEnableRouter"=dword:00000000
"IGMPLevel"=dword:00000000
"MaxUserPort"=dword:0000fffe
"DisableIPSourceRouting"=dword:00000002
"TcpTimedWaitDelay"=dword:0000001e

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters]
"AutoShareServer"=dword:00000000
"AutoShareWks"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa]
"RestrictAnonymous"=dword:00000001

儲存為 harden.reg,regedit /s harden.reg 靜默匯入,重開機生效。介面層 PerformRouterDiscovery 需依實際 GUID 另行補充。

驗證清單

  • net share:無 C$, ADMIN$ 等管理共享。
  • net use \\127.0.0.1\IPC$ "" /u:"":拒絕存取 (RestrictAnonymous=1 效果)。
  • route print:無 224.0.0.0 多播路由 (IGMPLevel=0)。
  • ping -n 1 目標:封包 TTL=255 (DefaultTTL 生效)。
  • netstat -an:無異常大量 TIME_WAIT (TcpTimedWaitDelay=30)。

維護提醒

  • 修補程式/Service Pack 可能重置參數,建議納入基線稽核腳本定期比對。
  • 參數調整具副作用 (如 SynAttackProtect=2 可能影響高併發正常連線),必須在預演環境壓測驗證後再上生產。
  • MAC 修改僅影響軟體層,實體網卡燒錄 MAC 不變;若環境有 802.1X/靜態 ARP 綁定,修改前協調網管。
Copyright © Windows教程網 All Rights Reserved