{"id":14684,"date":"2020-01-29T17:54:55","date_gmt":"2020-01-29T09:54:55","guid":{"rendered":"http:\/\/4563.org\/?p=14684"},"modified":"2020-01-29T17:54:55","modified_gmt":"2020-01-29T09:54:55","slug":"%e3%80%90nat-vps%e8%af%84%e6%b5%8b%e3%80%91g0fu-%e8%be%bd%e5%ae%81%e8%81%af%e9%80%9anat%e4%ba%91%e4%b8%bb%e6%9c%ba%e3%80%9030r%e5%b9%b4%e4%bb%98%e3%80%91","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=14684","title":{"rendered":"\u3010NAT VPS\u8bc4\u6d4b\u3011G0FU \u8fbd\u5b81\u806f\u901aNAT\u4e91\u4e3b\u673a\u301030R\u5e74\u4ed8\u3011"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u3010NAT VPS\u8bc4\u6d4b\u3011G0FU \u8fbd\u5b81\u806f\u901aNAT\u4e91\u4e3b\u673a\u301030R\u5e74\u4ed8\u3011<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 kzklot \u4e8e 2020-1-29 19:39 \u7f16\u8f91 <\/p>\n<p> \u524d\u8a00:<br \/>  \u770b\u5230&quot;\u67d0\u4eba\u7684\u7533\u8a34?!&quot;\u5e16\u5b50\u4e4b\u5f8c&#8230;&#8230;\u767c\u73fe\u4e86\u9019\u5bb6NAT VPS&#8230;..<br \/>  \u96d6\u7136\u5e26\u5bbd\u53ea\u670910M \u4e0a\u884c \/100M \u4e0b\u884c&#8230;<br \/>  \u4f4630R\u5e74\u4ed8&#8230;\u514d\u5be6\u540d&#8230;&#8230;<br \/>  \u6c7a\u5b9a\u4e0a\u8eca\u73a9\u73a9&#8230;\u8a66\u8a66\u505a\u4e2d\u8f49&#8230;<br \/>  \u6ce8\u610f\u516c\u53f8\u80cc\u666f\u4e0d\u8a73&#8230;.\u6703\u4e0d\u6703\u8dd1\u8def\u4e5f\u4e0d\u8a73&#8230;\u80fd\u770b\u80fd\u73a9\u5c31\u597d&#8230;yc022t <\/p>\n<p>  \u8a08\u5283:<br \/>  vCPU\uff1a1\u6838 \uff082.66GHz\uff09<br \/>  \u5185\u5b58\uff1a1024M<br \/>  \u78c1\u76d8\uff1aWindows\u662f50G\/Linux30G\u7cfb\u7edf\u76d8+10G\u6570\u636e\u76d8<br \/>  \u5e26\u5bbd\uff1a10Mbps\u4e0a\/100Mbps\u4e0b<br \/>  \u7f51\u7edc\uff1a10\u4e2aIPv4\u7aef\u53e3<br \/>  \u64cd\u4f5c\u7cfb\u7edf\uff1aDebian\/Ubuntu\/CentOS<br \/>  \u6570\u636e\u6d41\u91cf\uff1a100GB (\u514d\u8cbb\u63d0\u5347200GB) **\u8d85\u6d41\u9650\u901f1m\u4e0d\u65ad\u7f51**<\/p>\n<p>  \u57fa\u672c\u8bc4\u6d4b<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/wh5OKz.jpg<\/p>\n<p>  \u6e2c\u901f\u8bc4\u6d4b<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/bznZId.jpg<\/p>\n<p>  \u5176\u4ed6<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/u4nrlf.jpg<\/p>\n<p>  ====== NAT &lt;&gt; VPS \u8def\u7531\u53c3\u8003 (PR, RUVDS, GCV) =====<br \/>  PR<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/9Ug2lx.jpg<\/p>\n<p>  https:\/\/upload.cc\/i1\/2020\/01\/29\/9giQz6.jpg<\/p>\n<p>  RUVDS<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/1P0kqz.jpg<\/p>\n<p>  https:\/\/upload.cc\/i1\/2020\/01\/29\/GzRJQ5.jpg<\/p>\n<p>  GCV<br \/>  https:\/\/upload.cc\/i1\/2020\/01\/29\/SvYPDQ.jpg<\/p>\n<p>  https:\/\/upload.cc\/i1\/2020\/01\/29\/V5hWGj.jpg<\/p>\n<p>  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>KKhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6d4b\u901f\u811a\u672c \u4e0d\u653e\u51fa\u6765\u5417\uff1f \u989c\u8272\u597d\u770b:lol\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tKKhost \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-29 17:32<br \/>  \u6d4b\u901f\u811a\u672c \u4e0d\u653e\u51fa\u6765\u5417\uff1f \u989c\u8272\u597d\u770b<\/p>\n<p>  bash &lt;(curl -Lso- https:\/\/raw.githubusercontent.com\/ernisn\/superspeed\/master\/superspeed.sh)\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>lanP1ng<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u633a\u4fbf\u5b9c\u7684\uff0c\u54ea\u6574\u7684\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlanP1ng \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-29 17:35<br \/>  \u633a\u4fbf\u5b9c\u7684\uff0c\u54ea\u6574\u7684\uff1f<\/p>\n<p> \u5728HOSTLOC\u627e\u627e\u5c31\u6703\u6709&#8230;yc003t\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>woniu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t200G\u6d41\u91cf \u6253\u4e2a\u55b7\u568f\u6ca1\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\twoniu \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-29 17:45<br \/>  200G\u6d41\u91cf \u6253\u4e2a\u55b7\u568f\u6ca1\u4e86<\/p>\n<p> yc020t \u8a66\u8a66\u5c31\u597d&#8230;\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>vhost<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tkzklot \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-29 17:47<br \/>  \u8a66\u8a66\u5c31\u597d&#8230;<\/p>\n<p> \u6709NAT\u7684\u4e2d\u8f6c\u6559\u7a0b\u5417\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>kzklot<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tvhost \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-1-29 17:52<br \/>  \u6709NAT\u7684\u4e2d\u8f6c\u6559\u7a0b\u5417\uff1f<\/p>\n<p>  \u8a2d\u5b9a\u90fd\u4e0d\u6703\u6709\u96e3\u5ea6&#8230;IPTABLES \u6703\u7528\u5c31\u597d..<br \/>  # \u6539\u4e3a net.ipv4.ip_forward=1<br \/>  nano \/etc\/sysctl.conf<br \/>  # \u66f4\u65b0\u7cfb\u7edf\u8bbe\u7f6e\u4f7f\u4fee\u6539\u751f\u6548<br \/>  sysctl -p<\/p>\n<p>  iptables -t nat -A PREROUTING -p tcp &#8211;dport \u7aef\u53e3\u53f7 -j DNAT &#8211;to-destination \u76ee\u6807IP<br \/>  iptables -t nat -A PREROUTING -p udp &#8211;dport \u7aef\u53e3\u53f7 -j DNAT &#8211;to-destination \u76ee\u6807IP<br \/>  iptables -t nat -A POSTROUTING -p tcp -d \u76ee\u6807IP &#8211;dport \u7aef\u53e3\u53f7 -j SNAT &#8211;to-source \u672c\u673a\u5185\u7f51IP<br \/>  iptables -t nat -A POSTROUTING -p udp -d \u76ee\u6807IP &#8211;dport \u7aef\u53e3\u53f7 -j SNAT &#8211;to-source \u672c\u673a\u5185\u7f51IP<\/p>\n<p>  iptables-save &gt; \/etc\/iptables.up.rules<br \/>  iptables-restore &lt; \/etc\/iptables.up.rules\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6cd5\u62c9\u5229<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5b9e\u9645\u4e2d\u8f6c\u6548\u679c\u600e\u4e48\u6837\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>kzklot \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u3010N&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\/14684"}],"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=14684"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/14684\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14684"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}