前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >dos新版命令之防火墙

dos新版命令之防火墙

作者头像
随心助手
发布2019-10-15 11:23:01
4060
发布2019-10-15 11:23:01
举报
文章被收录于专栏:nginx遇上redisnginx遇上redis
代码语言:javascript
复制
net start MpsSvc           //开启服务

sc config MpsSvc start= auto   //开机启动

netsh advfirewall set allprofiles state on     //启用防火墙

netsh advfirewall firewall add rule name="Allow Ping" dir=in protocol=icmpv4 action=allow

netsh advfirewall firewall add rule name="FTP" protocol=TCP dir=in localport=20 action=allow

netsh advfirewall firewall add rule name="SSH" protocol=TCP dir=in localport=22 action=allow

netsh advfirewall firewall add rule name="Telnet" protocol=TCP dir=in localport=23 action=allow

netsh advfirewall firewall add rule name="SMTP" protocol=TCP dir=in localport=25 action=allow

netsh advfirewall firewall add rule name="TFTP" protocol=UDP dir=in localport=69 action=allow

netsh advfirewall firewall add rule name="POP3" protocol=TCP dir=in localport=110 action=allow

netsh advfirewall firewall add rule name="HTTPS" protocol=TCP dir=in localport=443 action=allow

netsh advfirewall firewall add rule name="Netbios-ns" protocol=UDP dir=in localport=137 action=allow

netsh advfirewall firewall add rule name="Netbios-dgm" protocol=UDP dir=in localport=138 action=allow

netsh advfirewall firewall add rule name="Netbios-ssn" protocol=TCP dir=in localport=139 action=allow

netsh advfirewall firewall add rule name="Netbios-ds" protocol=TCP dir=in localport=445 action=allow

netsh advfirewall firewall add rule name="HTTP" protocol=TCP dir=in localport=80 action=allow

netsh advfirewall firewall add rule name="HTTP" protocol=TCP dir=in localport=8080 action=allow
本文参与 腾讯云自媒体分享计划,分享自微信公众号。
原始发表:2019-07-16,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 nginx遇上redis 微信公众号,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档