在win7下用命令行关闭445等端口只开放特定IP
将以下文件存为.BAT,并命令提示符下运行
@echo offtitle创建IP安全策略屏蔽135、 139、 445. . .等端口netshipsec static add pol icy name=安全策略20170621netshipsec static add fi lterl ist name=阻止20170621netshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=135protocol=TCPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=135protocol=UDPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=137protocol=TCPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=137protocol=UDPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=138protocol=TCPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=138protocol=UDPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=139protocol=TCPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=139protocol=UDP
netshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=445protocol=TCPnetshipsec static add fi lter fi lterl ist=阻止20170621 srcaddr=any dstaddr=Me dstport=445protocol=UDPnetshipsec static add fi lteraction name=Fi lteraAtion20170621 action=blocknetshipsec static add rule name=Rule1 pol icy=安全策略20170621 fi lterl ist=阻止20170621 fi lteraction=Fi lteraAtion20170621netshipsec static add fi lterl ist name=允许20170621netshipsec static add fi lter fi lterl ist=允许20170621 srcaddr=22.148.18.88 dstaddr=Medstport=445 protocol=TCPnetshipsec static add fi lter fi lterl ist=允许20170621 srcaddr=22.148.18.88 dstaddr=Medstport=445 protocol=UDPnetshipsec static add fi lteraction name=Fi lterbAtion20170621 action=permitnetshipsec static add rule name=Rule2 pol icy=安全策略20170621 fi lterl ist=允许20170621 fi lteraction=Fi lterbAtion20170621netshipsec static set pol icy name=安全策略20170621 assign=yexit
企鹅小屋怎么样?企鹅小屋最近针对自己的美国cn2 gia套餐推出了2个优惠码:月付7折和年付6折,独享CPU,100%性能,三网回程CN2 GIA网络,100Mbps峰值带宽,用完优惠码1G内存套餐是年付240元,线路方面三网回程CN2 GIA。如果新购IP不能正常使用,请在开通时间60分钟内工单VPS技术部门更换正常IP;特价主机不支持退款。点击进入:企鹅小屋官网地址企鹅小屋优惠码:年付6折优惠...
点击进入亚云官方网站(www.asiayun.com)公司名:上海玥悠悠云计算有限公司成都铂金宿主机IO测试图亚洲云Asiayun怎么样?亚洲云Asiayun好不好?亚云由亚云团队运营,拥有ICP/ISP/IDC/CDN等资质,亚云团队成立于2018年,经过多次品牌升级。主要销售主VPS服务器,提供云服务器和物理服务器,机房有成都、美国CERA、中国香港安畅和电信,香港提供CN2 GIA线路,CE...
天上云怎么样?天上云隶属于成都天上云网络科技有限公司,是一家提供云服务器及物理服务器的国人商家,目前商家针对香港物理机在做优惠促销,香港沙田机房采用三网直连,其中电信走CN2,带宽为50Mbps,不限制流量,商家提供IPMI,可以自行管理,随意安装系统,目前E3-1225/16G的套餐低至572元每月,有做大规模业务的朋友可以看看。点击进入:天上云官方网站天上云香港物理机服务器套餐:香港沙田数据中...