技术支持

为您提供7*24小时在线技术支持、安全技术专家、行业资深安全顾问服务。400-888-1688

系统安全相关

您当前位置首页 > 技术支持 > 系统安全相关

Windows防火墙配置与安全策略设置指南

Windows防火墙是Windows操作系统内置的主机防火墙,配合本地安全策略和组策略,可以有效保护Windows系统免受网络攻击。本文详细介绍Windows防火墙的配置方法。

一、启用Windows防火墙

code
code
code
# 通过PowerShell管理防火墙
Get-NetFirewallProfile | Format-List Name, Enabled
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled True

二、添加入站规则

code
code
code
# 允许特定端口(如Web服务80端口)
New-NetFirewallRule -DisplayName "Allow HTTP 80" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow

# 限制IP范围
New-NetFirewallRule -DisplayName "RDP from Office" -Direction Inbound -Protocol TCP -LocalPort 3389 -RemoteAddress 192.168.1.0/24 -Action Allow

三、本地安全策略配置

通过secpol.msc打开本地安全策略编辑器:

  • 密码必须符合复杂性要求:已启用
  • 密码长度最小值:12个字符
  • 账户锁定阈值:5次无效登录

四、Windows Defender配置

code
code
code
# 查看Defender状态
Get-MpComputerStatus
# 启用实时保护
Set-MpPreference -DisableRealtimeMonitoring $false
# 执行快速扫描
Start-MpScan -ScanType QuickScan

五、安全加固建议

  • 禁用不必要的服务(Print Spooler、Remote Registry等)
  • 修改远程桌面默认端口
  • 配置Windows Update自动安装安全更新
  • 启用登录事件审核
这条帮助是否解决了您的问题? 已解决 未解决

安全合格的云服务,让您的业务轻松上云!

立即选购
https://affim.baidu.com/unique_50626027/chat?siteId=21806899&userId=50626027&siteToken=f4b13c0dda3b403b51fd8811d5a360c7