在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
极光KVM创立于2018年,主要经营美国洛杉矶CN2机房、CeRaNetworks机房、中国香港CeraNetworks机房、香港CMI机房等产品。其中,洛杉矶提供CN2 GIA、CN2 GT以及常规BGP直连线路接入。从名字也可以看到,VPS产品全部是基于KVM架构的。极光KVM也有明确的更换IP政策,下单时选择“IP保险计划”多支付10块钱,可以在服务周期内免费更换一次IP,当然也可以不选择,...
pigyun怎么样?PIGYun成立于2019年,2021是PIGYun为用户提供稳定服务的第三年,期待我们携手共进、互利共赢。PIGYun为您提供:香港CN2线路、韩国CN2线路、美西CUVIP-9929线路优质IaaS服务。月付另有通用循环优惠码:PIGYun,获取8折循环优惠(永久有效)。目前,PIGYun提供的香港cn2云服务器仅29元/月起;韩国cn2云服务器仅22元/月起;美国CUVI...
Budgetvm(原EZ机房),2005年成立的美国老品牌机房,主打美国4个机房(洛杉矶、芝加哥、达拉斯、迈阿密)和日本东京机房的独立服务器和VPS业务,而且不限制流量,默认提供免费的1800G DDoS防御服务,支持IPv6和IPMI,多种免费中文操作系统可供选择,独立服务器主打大硬盘,多硬盘,大内存,用户可以在后台自行安装系统等管理操作!内存可定制升级到1536G,多块硬盘随时加,14TBSA...