惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

博客园 - Hoooooo

华为交换机系统视图状态system-view超时设置 access trunk hybird untagged和tagged区别 yum 安装包时解决依赖关系 Shell脚本--磁盘空间有超过80%时发信息 dos修改字符串排序,可用于修改文件名 linux系统调优用命令 centos7安装配置vnc和远程桌面,WIN10 mstsc远程linux gnome桌面 在linux系统中curlftpfs自动挂载ftp 文件抽取 win10 ie ActiveX 对应注册表编号 AUTUCAD2017 key 五种开源协议(BSD,Apache,GPL,LGPL,MIT) mysql中字符查询与替换 vim 编辑不显示以#或其它开始的行 mysql忘记root密码解决办法 Redhat 7及Centos 7系统网卡启动 mysql ROOT管理员密码修改 awk字符意义 redhat 7安装oracle 11gr2
WIN系统命令行添加防火墙配置
Hoooooo · 2022-04-25 · via 博客园 - Hoooooo

(1)启用桌面防火墙
  netsh advfirewall set allprofiles state on
  (2)设置默认输入和输出策略
  netsh advfirewall set allprofiles firewallpolicy allowinbound,allowoutbound
  以上是设置为允许,如果设置为拒绝使用blockinbound,blockoutbound
  (3)关闭tcp协议的139端口
  netsh advfirewall firewall add rule name=”deny tcp 139″ dir=in protocol=tcp localport=139 action=block
  (4)关闭udp协议的139端口
  netsh advfirewall firewall add rule name=”deny udp 139″ dir=in protocol=udp localport=139 action=block
  (5)关闭tcp协议的445端口
  netsh advfirewall firewall add rule name=”deny tcp 445″ dir=in protocol=tcp localport=445 action=block
  (6)关闭udp协议的445端口
  netsh advfirewall firewall add rule name=”deny udp 445″ dir=in protocol=udp localport=445 action=block
  (7)使用相同的方法,依次关闭TCP协议的21、22、23、137、138、3389、5800、5900端口。
  netsh advfirewall firewall add rule name= “deny tcp 21″ dir=
  in protocol=tcp localport=21 action=block
  netsh advfirewall firewall add rule name= “deny tcp 22″ dir=in protocol=tcp localport=22 action=block
  netsh advfirewall firewall add rule name= “deny tcp 23″ dir=in protocol=tcp localport=23 action=block
  netsh advfirewall firewall add rule name= “deny tcp 3389″ dir=in protocol=tcp localport=3389 action=block
  netsh advfirewall firewall add rule name= “deny tcp 5800″ dir=in protocol=tcp localport=5800 action=block
  netsh advfirewall firewall add rule name= “deny tcp 5900″ dir=in protocol=tcp localport=5900 action=block
  netsh advfirewall firewall add rule name= “deny tcp 137″ dir=in protocol=tcp localport=137 action=block
  netsh advfirewall firewall add rule name= “deny tcp 138″ dir=in protocol=tcp localport=138 action=block
  (8)执行完毕后暂停
  pause
  echo 按任意键退出
  2.恢复初始配置
  (1)恢复初始防火墙设置
  netsh advfirewall reset
  (2)关闭防火墙
  netsh advfirewall set allprofiles state off

posted @ 2022-04-25 09:35  Hoooooo  阅读(684)  评论()    收藏  举报