Windows防火牆管理-netsh
Windows 防火牆管理-netsh
管理工具
netsh advfirewall
# 匯出防火牆規則
netsh advfirewall export advfirewallpolicy.wfw
# 匯入防火牆規則
netsh advfirewall import advfirewallpolicy.wfw
# 查看防火牆狀態
netsh advfirewall show allprofiles state
# 查看防火牆預設規則
netsh advfirewall show allprofiles firewallpolicy
# netsh advfirewall set allprofiles firewallpolicy blockinbound,allowoutbound
# netsh advfirewall set allprofiles firewallpolicy blockinbound,blockoutbound
# 查看防火牆設定
netsh advfirewall show allprofiles settings
# 啟用防火牆
netsh advfirewall set allprofiles state on
# 停用防火牆
netsh advfirewall set allprofiles state off
# 查看防火牆規則
netsh advfirewall firewall show rule name=all
# 查看防火牆狀態
netsh advfirewall monitor show firewall
netsh firewall(deprecated)
# 查看防火牆狀態
netsh firewall show state
netsh mbn(Mobile Broadband network)
netsh wfp
# 查看防火牆狀態
netsh wfp show state
# 查看防火牆規則
netsh wfp show filters