提高Windows服务器安全,关闭无用端口 - 技术文档

  1. 客戶系統
  2. 技术文档

提高Windows服务器安全,关闭无用端口

你必须要做的七项服务器安全措施--景安网络

以下端口非常容易遭到黑客利用,为了保证服务器安全我们通常会禁用以下端口,直接放入cmd中允许即可。

netsh advfirewall firewall add rule name="block445 (TCP-In)" protocol=TCP dir=in localport=445 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block445 (UDP-In)" protocol=UDP dir=in localport=445 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block137 (TCP-In)" protocol=TCP dir=in localport=137 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block137 (UDP-In)" protocol=UDP dir=in localport=137 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block138 (TCP-In)" protocol=TCP dir=in localport=138 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block138 (UDP-In)" protocol=UDP dir=in localport=138 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block139 (TCP-In)" protocol=TCP dir=in localport=139 service=any profile=any description="For foreign Windows editions" action=block

netsh advfirewall firewall add rule name="block139 (UDP-In)" protocol=UDP dir=in localport=139 service=any profile=any description="For foreign Windows editions" action=block