﻿{"id":297,"date":"2018-11-12T10:58:03","date_gmt":"2018-11-12T02:58:03","guid":{"rendered":"http:\/\/www.cloudy.pub\/?p=297"},"modified":"2018-11-12T11:08:10","modified_gmt":"2018-11-12T03:08:10","slug":"windows-server-xia-pei-zhi-duan-kou-zhuan-fa","status":"publish","type":"post","link":"https:\/\/www.0moon.com\/?p=297","title":{"rendered":"windows server\u4e0b\u914d\u7f6e\u7aef\u53e3\u8f6c\u53d1"},"content":{"rendered":"<p>\u51c6\u5907\uff1a\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00 CMD \u547d\u4ee4\u884c\u3002<\/p>\n<p>\u6dfb\u52a0\u8f6c\u53d1\uff1a<\/p>\n<pre>netsh interface portproxy add v4tov4 listenaddress=localaddress listenport=localport connectaddress=destaddress connectport=destport\r\n listenaddress -- \u7b49\u5f85\u8fde\u63a5\u7684\u672c\u5730ip\u5730\u5740\uff0c *\u8868\u793a\u5168\u90e8IP\r\n listenport -- \u672c\u5730\u76d1\u542c\u7684TCP\u7aef\u53e3\uff08\u5f85\u8f6c\u53d1\uff09\r\n connectaddress -- \u88ab\u8f6c\u53d1\u7aef\u53e3\u7684\u672c\u5730\u6216\u8005\u8fdc\u7a0b\u4e3b\u673a\u7684ip\u5730\u5740\r\n connectport -- \u88ab\u8f6c\u53d1\u7684\u7aef\u53e3<\/pre>\n<p>&nbsp;<br \/>\n\u5220\u9664\u8f6c\u53d1\uff1a<\/p>\n<pre>netsh interface portproxy\u00a0delete\u00a0v4tov4 listenaddress=localaddress listenport=localport<\/pre>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u8f6c\u53d1\uff1a<\/p>\n<pre>netsh interface portproxy show all<\/pre>\n<p>&nbsp;<\/p>\n<p>\u67e5\u770b\u7aef\u53e3\u662f\u5426\u5f00\u542f\uff1a<\/p>\n<pre>netstat -an|findstr xxx\r\n\r\nxxx --\u7aef\u53e3\u53f7<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u51c6\u5907\uff1a\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00 CMD \u547d\u4ee4\u884c\u3002 \u6dfb\u52a0\u8f6c\u53d1\uff1a netsh interface portproxy add [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,13],"tags":[62,61],"class_list":["post-297","post","type-post","status-publish","format-standard","hentry","category-windows","category-study","tag-windows","tag-duan-kou-zhuan-fa"],"_links":{"self":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=297"}],"version-history":[{"count":5,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions"}],"predecessor-version":[{"id":303,"href":"https:\/\/www.0moon.com\/index.php?rest_route=\/wp\/v2\/posts\/297\/revisions\/303"}],"wp:attachment":[{"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.0moon.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}