Windows之Windows防火墙基础命令

netsh firewall show config       【防火墙 显示 配置信息】                          
netsh firewall show allowedprogram 【显示被允许的/已经允许过的程序(例外的) 】                          
netsh firewall add allowedprogram c:/test.exe test enable   【加允许过的程序 路径 开启】

netsh firewall delete allowedprogram c:/test.exe 【删除允许过的程序】
netsh firewall set portopening TCP 3389 enable    【设置 开放中的端口 类型与端口 启用】
netsh firewall set portopening TCP 3389 远程桌面 ENABLE all 【允许所有IP连接】
netsh firewall set portopening TCP 3389 远程桌面 ENABLE CUSTOM 1.1.1.1 【只允许1.1.1.1连接】
lookback
  • 本文由 发表于 2016年6月25日18:58:19
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: