{"id":515746,"date":"2021-07-12T16:32:40","date_gmt":"2021-07-12T08:32:40","guid":{"rendered":"http:\/\/4563.org\/?p=515746"},"modified":"2021-07-12T16:32:40","modified_gmt":"2021-07-12T08:32:40","slug":"%e6%95%99%e7%a8%8b%e4%bd%bf%e7%94%a8nginx%e5%81%9atcp-udp%e4%b8%ad%e8%bd%ac%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=515746","title":{"rendered":"[\u6559\u7a0b]\u4f7f\u7528Nginx\u505aTCP\/UDP\u4e2d\u8f6c\u670d\u52a1\u5668"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>SAJ<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>[\u6559\u7a0b]\u4f7f\u7528Nginx\u505aTCP\/UDP\u4e2d\u8f6c\u670d\u52a1\u5668<\/h3>\n<p>  \t\t\u5929\u5929\u6c34\u8d34\u7ed9\u4f60\u4eec\u641e\u4e2a\u6280\u672f\u8d34\u5427<br \/>  \u6bd4\u5982\u6211\u8981\u7528<br \/>  \u6211\u7684\u5c0f\u9e21\u7684666\u7aef\u53e3\u4e2d\u8f6chostloc.com\u7684443\u7aef\u53e3,<br \/>  \u6211\u7684\u5c0f\u9e21\u7684888\u7aef\u53e3\u4e2d\u8f6chostloc.com\u76843389\u7aef\u53e3,<br \/>  \u53ea\u9700\u8981\u628a\u5982\u4e0b\u4ee3\u7801\u52a0\u5165\u5230nginx\u7684\u914d\u7f6e\u6587\u4ef6\u4e2d:<\/p>\n<p>  stream{<br \/>  &nbsp; &nbsp; upstream hostloc {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;serverhostloc.com:443;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; server{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;listen 666;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;listen 666 udp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass hostloc;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; upstream hostlocrdp {<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;serverhostloc.com:3389;<br \/>  &nbsp; &nbsp; }<br \/>  &nbsp; &nbsp; server{<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;listen 888;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;listen 888 udp;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;proxy_pass hostlocrdp;<br \/>  &nbsp; &nbsp; }<br \/>  }<\/p>\n<p>  \u66f4\u591a\u5e94\u7528: \u6bd4\u5982\u4e2d\u8f6c3389\u52a0\u901f\u8fdc\u7a0b\u684c\u9762,\u4e2d\u8f6c22\u52a0\u901fssh,\u4e2d\u8f6c\u5404\u79cd\u5783\u573e\u7ebf\u8def\u843d\u5730\u673a\u670d\u52a1\u7aef\u53e3&#8230;\u7b49\u7b49\u7b49&#8230;<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u79cd\u4e8b\u60c5\u4e3a\u4ec0\u4e48\u8981\u9ebb\u70e6nginx\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6ca1\u6709\u7684<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9876\uff01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>sagerking<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u79cd\u4e8b\u60c5\u4e3a\u4ec0\u4e48\u8981\u9ebb\u70e6nginx\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>SAJ<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\th20 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-12 16:35<br \/>  \u8fd9\u79cd\u4e8b\u60c5\u4e3a\u4ec0\u4e48\u8981\u9ebb\u70e6nginx<\/p>\n<p> \u9632\u706b\u5899\u5378\u8f7d\u6389\u4e86:)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7b11\u82b1\u843d\u534a\u4e16\u7409\u7483<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5c45\u7136\u4e0d\u7528iptables\u8fd9\u79cd\u5185\u6838\u7ea7\u522b\u7684\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>SAJ \u5927\u4f6c\u6709\u8bdd\u8bf4 : [\u6559\u7a0b]\u4f7f&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/515746"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=515746"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/515746\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=515746"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=515746"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=515746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}