**标注:**此脚本进行本地策略配置,设置后可防止“永恒之蓝”被其它机器感染和去感染其它机器,但不能避免从USB或者上网感染,所以还是得打补丁,详细可参考:[https://technet.microsoft.com/zh-cn/library/security/MS17-010](https://technet.microsoft.com/zh-cn/library/security/MS17-010)
链接可详细了解”[永恒之蓝](http://baike.baidu.com/item/WannaCry/20797421?fr=aladdin&fromtitle=%E6%B0%B8%E6%81%92%E4%B9%8B%E8%93%9D&fromid=4951714)“
####
REM =================开始================
netsh ipsec static del policy windowsDBA
netsh ipsec static add policy name = windowsDBA
netsh ipsec static del filteraction FILTERblock
netsh ipsec static del filteraction FILTERPermit
netsh ipsec static add filteraction FILTERblock action =block
netsh ipsec static add filteraction FILTERPermit action =permit
netsh IPsec static del filterlist name = AllowList
netsh IPsec static del filterlist name = DenyList
netsh IPsec static add filterlist name = AllowList
netsh IPsec static add filterlist name = DenyList
REM 允许指定的IP访问3389端口
netsh IPsec static add filter filterlist = AllowList srcaddr = 192.168.1.1 dstaddr = me dstport = 3389 description = vpn protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = AllowList srcaddr = 10.100.1.1 dstaddr = me dstport = 3389 description = vpn protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = AllowList srcaddr = 192.168.2.2 dstaddr = me dstport = 3389 description = vpn protocol = TCP mirrored = yes
REM 禁止出入139、135、445端口
netsh IPsec static add filter filterlist = DenyList srcaddr =any dstaddr = me dstport = 445 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =any dstaddr = me dstport = 135 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =any dstaddr = me dstport = 139 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =me dstaddr = any dstport = 445 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =me dstaddr = any dstport = 135 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =me dstaddr = any dstport = 139 protocol = TCP mirrored = yes
netsh IPsec static add filter filterlist = DenyList srcaddr =any dstaddr = me dstport = 3389 protocol = TCP mirrored = yes
netsh ipsec static add rule name=AllowIPList policy=windowsDBA filterlist=AllowList filteraction=FILTERPermit
netsh ipsec static add rule name=DenyPortList policy=windowsDBA filterlist=DenyList filteraction=FILTERblock
netsh ipsec static set policy name = windowsDBA assign = y
pause
文章最后更新时间:
2017年06月06日 05:09:58
ripmyg <a href=>buy cheap viagra</a>
svawhh <a href=>write my essay</a>
Thanks designed for sharing such a pleasant idea, post is good, thats why i have read it entirely
Hello1Bing1Bing1BinHello Hello1Bing1Bing1BinHelloSORYMEPLS I take pleasure in, lead to I found just what I was looking for. You have ended my 4 day lengthy hunt! God Bless you man. Have a great day. Bye
Hello1Bing1Bing1BinHello Hello1Bing1Bing1BinHelloSORYMEPLS I am always looking online for ideas that can aid me. Thanks!
Hello1Bing1Bing1BinHello Hello1Bing1Bing1BinHelloSORYMEPLS Hello! I know this is kinda off topic however , I'd figured I'd ask. Would you be interested in exchanging links or maybe guest writing a blog post or vice-versa? My website goes over a lot of the same topics as yours and I feel we could greatly benefit from each other. If you're interested feel free to shoot me an email. I look forward to hearing from you! Great blog by the way!
hey all, I used to be simply checkin’ out this blog and I actually admire the basis of the article, and don't have anything to do, so if anybody would like to to have an engrossing convo about it, please contact me on AIM, my name is heather smith My companion and I actually loved reading this weblog put up, I was simply itching to know do you trade featured posts? I'm at all times trying to find somebody to make trades with and merely thought I'd ask. Actually one of the challenges which individuals starting a new on-line company face is that of obtaining guests to their web site. Now you've your new web page and you’re keen to start making some sales! However, how will you make sales when you wouldn't have high volumes of holiday makers to your website? Search engine optimization needs a superb search engine optimizer plan. Simply one in every of these methods could make a big distinction in your sites place and company your website brings you. Many thanks for posting this, It?s just what I used to be researching for on bing. I?d so much comparatively hear opinions from an individual, slightly than an organization web page, that?s why I like blogs so significantly. Many thanks! Simply killing some in between class time on Digg and I found your article . Not usually what I want to examine, nevertheless it was completely worth my time. Thanks. What i discover difficult is to find a blog that can seize me for a minute but your weblog is different. Bravo. I've to confess that i sometimes get bored to read the entire thing however i believe you can add some value. Bravo ! Hey – good blog, just trying round some blogs, seems a pretty nice platform You Are using. I’m presently utilizing Drupal for a number of of my websites however trying to change one of them over to a platform very much the same to yours as a trial run. Something specifically you'll suggest about it? I’ve not too long ago began a weblog, the knowledge you provide on this site has helped me tremendously. Thanks for all your time & work. Hiya intelligent points.. now why didn't i think of these? Off topic slightly, is this web page sample merely from an odd installation or else do you use a customized template. I exploit a webpage i’m looking for to improve and nicely the visuals is likely one of the key issues to complete on my list. Actually like your websites details! Undoubtedly a wonderful supply of information that is extraordinarily helpful. Carry on to carry publishing and i’m gonna proceed reading by way of! Cheers. Congratulations on possessing actually certainly one of probably the most refined blogs Ive arrive across in a while! Its just amazing how a lot you’ll have the ability to consider away from a thing basically merely because of how visually gorgeous it is. Youve place collectively a fantastic weblog website space –great graphics, motion pictures, layout. That is actually a must-see website! IЎЇm delighted that I've noticed this weblog. Lastly something not a junk, which we undergo extremely frequently. The web site is lovingly serviced and saved up to date. So it should be, thanks for sharing this with us. My neighbor and I were just debating this particular subject, he's normally looking for to prove me incorrect. Your view on this is nice and precisely how I actually feel. I simply now mailed him this website to point out him your individual view. After wanting over your website I ebook marked and will likely be coming back to read your new posts! I wished to thank you for this nice learn!! I definitely enjoying every little little bit of it I have you bookmarked to take a look at new stuff you post This one is an inspiration personally to uncover out far more associated to this subject. I must confess your data extended my sentiments in addition to I'm going to right now take your feed to remain up to date on every coming weblog posts you would possibly probably create. You're worthy of thanks for a job perfectly executed! You ought to actually take into consideration engaged on creating this weblog into a serious authority on this market. You evidently have a grasp deal with of the subjects everyone seems to be trying to find on this web site in any case and you would certainly even earn a buck or two off of some advertisements. I might discover following recent matters and elevating the quantity of write ups you place up and I assure you’d start seeing some wonderful focused traffic in the near future. Only a thought, good luck in no matter you do! Thanks for taking the time to discuss this, I feel strongly about it and love studying extra on this topic. If possible, as you acquire experience, would you mind updating your blog with extra info? It is extremely helpful for me. I’m still studying from you, however I’m bettering myself. I actually love studying all the things that is written in your blog.Keep the stories coming. I loved it! Thanks for taking the time to debate this, I really feel strongly about it and love studying more on this topic. If doable, as you acquire experience, would you thoughts updating your blog with additional info? This can be very helpful for me. I know this isn’t precisely on topic, but i have a web site utilizing the same program as properly and i am getting troubles with my comments displaying. is there a setting i am missing? it’s doable you may assist me out? thanx. Very efficiently written information. Will probably be invaluable to anyone who usess it, including myself. Sustain the nice work – for positive i'll take a look at more posts. Highly rated post. I learn something completely new on totally different blogs everyday. Deciding on one . stimulating to learn the paper content from different writers and learn a little bit one thing from their website. I’d like to use sure of this content material on my weblog you’re mind. Natually I’ll give a hyperlink here we are at your web-site. Recognize your sharing.
I have been checking out a few of your articles and it's pretty clever stuff. I will make sure to bookmark your website.
For the reason that the admin of this web site is working, no doubt very shortly it will be famous, due to its quality contents.
I am delighted to watch this you tube video at this site, therefore right now I am also going to add all my video tutorials at YouTube site.