{"id":47480,"date":"2024-10-07T14:12:13","date_gmt":"2024-10-07T06:12:13","guid":{"rendered":"https:\/\/server.hk\/cnblog\/47480\/"},"modified":"2024-10-07T14:12:13","modified_gmt":"2024-10-07T06:12:13","slug":"iis%e6%96%b0%e6%89%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e4%bd%bf%e7%94%a8iis%e5%85%a5%e9%96%80dmz","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/47480\/","title":{"rendered":"IIS\u65b0\u624b\u6307\u5357\uff1a\u4f7f\u7528IIS\u5165\u9580DMZ"},"content":{"rendered":"<h1 id=\"iis%e6%96%b0%e6%89%8b%e6%8c%87%e5%8d%97%ef%bc%9a%e4%bd%bf%e7%94%a8iis%e5%85%a5%e9%96%80dmz-vLsDBuomWU\">IIS\u65b0\u624b\u6307\u5357\uff1a\u4f7f\u7528IIS\u5165\u9580DMZ<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u7db2\u7d61\u74b0\u5883\u4e2d\uff0c\u5b89\u5168\u6027\u548c\u53ef\u7528\u6027\u662f\u6bcf\u500b\u7db2\u7ad9\u548c\u61c9\u7528\u7a0b\u5e8f\u7684\u9996\u8981\u8003\u91cf\u3002DMZ\uff08\u975e\u8ecd\u4e8b\u5340\uff09\u662f\u4e00\u7a2e\u7db2\u7d61\u67b6\u69cb\uff0c\u65e8\u5728\u589e\u5f37\u5b89\u5168\u6027\uff0c\u7279\u5225\u662f\u5728\u4f7f\u7528IIS\uff08Internet Information Services\uff09\u6642\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728IIS\u4e2d\u8a2d\u7f6eDMZ\uff0c\u5e6b\u52a9\u65b0\u624b\u7528\u6236\u5feb\u901f\u5165\u9580\u3002<\/p>\n<h2 id=\"%e4%bb%80%e9%ba%bc%e6%98%afdmz%ef%bc%9f-vLsDBuomWU\">\u4ec0\u9ebc\u662fDMZ\uff1f<\/h2>\n<p>DMZ\u662f\u4e00\u500b\u4f4d\u65bc\u5167\u90e8\u7db2\u7d61\u548c\u5916\u90e8\u7db2\u7d61\u4e4b\u9593\u7684\u4e2d\u7acb\u5340\u57df\u3002\u5b83\u7684\u4e3b\u8981\u76ee\u7684\u662f\u4fdd\u8b77\u5167\u90e8\u7db2\u7d61\u4e0d\u53d7\u5916\u90e8\u653b\u64ca\uff0c\u540c\u6642\u5141\u8a31\u5916\u90e8\u7528\u6236\u8a2a\u554f\u67d0\u4e9b\u670d\u52d9\u3002DMZ\u901a\u5e38\u5305\u542b\u516c\u5171\u670d\u52d9\u5668\uff0c\u5982Web\u4f3a\u670d\u5668\u3001\u90f5\u4ef6\u4f3a\u670d\u5668\u548cDNS\u4f3a\u670d\u5668\u3002<\/p>\n<h2 id=\"iis%e7%b0%a1%e4%bb%8b-vLsDBuomWU\">IIS\u7c21\u4ecb<\/h2>\n<p>IIS\u662f\u5fae\u8edf\u63d0\u4f9b\u7684\u4e00\u500bWeb\u4f3a\u670d\u5668\uff0c\u5ee3\u6cdb\u7528\u65bcWindows\u74b0\u5883\u4e2d\u3002\u5b83\u652f\u6301\u591a\u7a2eWeb\u6280\u8853\uff0c\u5305\u62ecASP.NET\u3001PHP\u548cHTML\u3002IIS\u7684\u6613\u7528\u6027\u548c\u5f37\u5927\u7684\u529f\u80fd\u4f7f\u5176\u6210\u70ba\u8a31\u591a\u4f01\u696d\u7684\u9996\u9078\u3002<\/p>\n<h2 id=\"%e8%a8%ad%e7%bd%aeiis-dmz%e7%9a%84%e6%ad%a5%e9%a9%9f-vLsDBuomWU\">\u8a2d\u7f6eIIS DMZ\u7684\u6b65\u9a5f<\/h2>\n<h3 id=\"%e6%ad%a5%e9%a9%9f1%ef%bc%9a%e6%ba%96%e5%82%99%e7%92%b0%e5%a2%83-vLsDBuomWU\">\u6b65\u9a5f1\uff1a\u6e96\u5099\u74b0\u5883<\/h3>\n<ul>\n<li>\u78ba\u4fdd\u4f60\u6709\u4e00\u53f0\u904b\u884cWindows Server\u7684\u4f3a\u670d\u5668\u3002<\/li>\n<li>\u5b89\u88ddIIS\u3002\u53ef\u4ee5\u901a\u904e\u201c\u4f3a\u670d\u5668\u7ba1\u7406\u54e1\u201d\u4f86\u5b89\u88ddIIS\uff0c\u9078\u64c7\u201c\u6dfb\u52a0\u89d2\u8272\u548c\u529f\u80fd\u201d\uff0c\u7136\u5f8c\u9078\u64c7IIS\u3002<\/li>\n<\/ul>\n<h3 id=\"%e6%ad%a5%e9%a9%9f2%ef%bc%9a%e9%85%8d%e7%bd%ae%e7%b6%b2%e7%b5%a1-vLsDBuomWU\">\u6b65\u9a5f2\uff1a\u914d\u7f6e\u7db2\u7d61<\/h3>\n<p>\u5728\u8a2d\u7f6eDMZ\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u914d\u7f6e\u7db2\u7d61\u3002\u901a\u5e38\uff0cDMZ\u6703\u6709\u4e00\u500b\u7368\u7acb\u7684\u5b50\u7db2\u7d61\uff0c\u4e26\u4e14\u9700\u8981\u914d\u7f6e\u9632\u706b\u7246\u4ee5\u5141\u8a31\u7279\u5b9a\u7684\u6d41\u91cf\u9032\u5165\u548c\u96e2\u958bDMZ\u3002<\/p>\n<pre><code>\n# \u5047\u8a2d\u4f7f\u7528Windows\u9632\u706b\u7246\nNew-NetFirewallRule -DisplayName \"Allow HTTP\" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow\nNew-NetFirewallRule -DisplayName \"Allow HTTPS\" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow\n<\/code><\/pre>\n<h3 id=\"%e6%ad%a5%e9%a9%9f3%ef%bc%9a%e8%a8%ad%e7%bd%aeiis%e7%b6%b2%e7%ab%99-vLsDBuomWU\">\u6b65\u9a5f3\uff1a\u8a2d\u7f6eIIS\u7db2\u7ad9<\/h3>\n<ul>\n<li>\u5728IIS\u7ba1\u7406\u5668\u4e2d\uff0c\u53f3\u9375\u55ae\u64ca\u201c\u7db2\u7ad9\u201d\uff0c\u9078\u64c7\u201c\u6dfb\u52a0\u7db2\u7ad9\u201d\u3002<\/li>\n<li>\u586b\u5beb\u7db2\u7ad9\u540d\u7a31\u3001\u7269\u7406\u8def\u5f91\u548cIP\u5730\u5740\u3002\u78ba\u4fdd\u9078\u64c7DMZ\u4e2d\u7684IP\u5730\u5740\u3002<\/li>\n<li>\u914d\u7f6e\u7db2\u7ad9\u7684\u61c9\u7528\u7a0b\u5e8f\u6c60\uff0c\u9078\u64c7\u5408\u9069\u7684.NET\u7248\u672c\u3002<\/li>\n<\/ul>\n<h3 id=\"%e6%ad%a5%e9%a9%9f4%ef%bc%9a%e5%ae%89%e5%85%a8%e6%80%a7%e8%a8%ad%e7%bd%ae-vLsDBuomWU\">\u6b65\u9a5f4\uff1a\u5b89\u5168\u6027\u8a2d\u7f6e<\/h3>\n<p>\u5728DMZ\u4e2d\uff0c\u5b89\u5168\u6027\u81f3\u95dc\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5efa\u8b70\u7684\u5b89\u5168\u8a2d\u7f6e\uff1a<\/p>\n<ul>\n<li>\u555f\u7528SSL\u4ee5\u52a0\u5bc6\u6578\u64da\u50b3\u8f38\u3002<\/li>\n<li>\u9650\u5236\u8a2a\u554f\u6b0a\u9650\uff0c\u50c5\u5141\u8a31\u5fc5\u8981\u7684\u7528\u6236\u8a2a\u554f\u3002<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0IIS\u548c\u4f3a\u670d\u5668\u7684\u5b89\u5168\u88dc\u4e01\u3002<\/li>\n<\/ul>\n<h2 id=\"%e6%b8%ac%e8%a9%a6%e5%92%8c%e7%b6%ad%e8%ad%b7-vLsDBuomWU\">\u6e2c\u8a66\u548c\u7dad\u8b77<\/h2>\n<p>\u8a2d\u7f6e\u5b8c\u6210\u5f8c\uff0c\u61c9\u9032\u884c\u5168\u9762\u6e2c\u8a66\u4ee5\u78ba\u4fdd\u6240\u6709\u529f\u80fd\u6b63\u5e38\u904b\u884c\u3002\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5982Nmap\u4f86\u6383\u63cfDMZ\u4e2d\u7684\u670d\u52d9\u5668\uff0c\u6aa2\u67e5\u958b\u653e\u7684\u7aef\u53e3\u548c\u670d\u52d9\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u5b9a\u671f\u6aa2\u67e5\u65e5\u8a8c\u6587\u4ef6\uff0c\u76e3\u63a7\u7570\u5e38\u6d3b\u52d5\uff0c\u4e26\u6839\u64da\u9700\u8981\u8abf\u6574\u9632\u706b\u7246\u898f\u5247\u548c\u5b89\u5168\u8a2d\u7f6e\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-vLsDBuomWU\">\u7e3d\u7d50<\/h2>\n<p>\u8a2d\u7f6eIIS DMZ\u662f\u4e00\u500b\u6709\u6548\u7684\u65b9\u5f0f\u4f86\u589e\u5f37\u7db2\u7d61\u5b89\u5168\u6027\uff0c\u7279\u5225\u662f\u5728\u9762\u5c0d\u5916\u90e8\u5a01\u8105\u6642\u3002\u901a\u904e\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\uff0c\u65b0\u624b\u7528\u6236\u53ef\u4ee5\u5feb\u901f\u4e0a\u624b\u4e26\u5efa\u7acb\u4e00\u500b\u5b89\u5168\u7684Web\u74b0\u5883\u3002\u5982\u679c\u4f60\u6b63\u5728\u5c0b\u627e\u53ef\u9760\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u5e6b\u52a9\u4f60\u8f15\u9b06\u7ba1\u7406\u4f60\u7684\u4f3a\u670d\u5668\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22IIS\u65b0\u624b\u6307\u5357\uff0c\u5b78\u7fd2\u5982\u4f55\u5728DMZ\u74b0\u5883\u4e2d\u6709\u6548\u4f7f\u7528IIS\uff0c\u63d0\u5347\u7db2\u7ad9\u5b89\u5168\u6027\u8207\u6027\u80fd\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-47480","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=47480"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47480\/revisions"}],"predecessor-version":[{"id":47481,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/47480\/revisions\/47481"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=47480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=47480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=47480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}