{"id":517552,"date":"2021-07-17T16:51:08","date_gmt":"2021-07-17T08:51:08","guid":{"rendered":"http:\/\/4563.org\/?p=517552"},"modified":"2021-07-17T16:51:08","modified_gmt":"2021-07-17T08:51:08","slug":"%e6%b1%82%e4%b8%80%e4%b8%aapve-%e7%bd%91%e7%bb%9c%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=517552","title":{"rendered":"\u6c42\u4e00\u4e2apve \u7f51\u7edc\u914d\u7f6e~"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>ffb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u6c42\u4e00\u4e2apve \u7f51\u7edc\u914d\u7f6e~<\/h3>\n<p>  \t\t\u4ee5\u4e0b\u4e3ainterfaces\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u5f00\u4e86\u4e00\u4e2awin2016nat\u5c0f\u9e21\uff0c\u7136\u540e\u670d\u52a1\u5668\u7684IP\u7ed1\u5b9a\u4e86\u4e2a\u57df\u540d\uff0c\u4f46\u662fnat\u4e0d\u80fd\u8bbf\u95ee\u8fd9\u4e2a\u57df\u540d\uff0c\u81ea\u5df1\u7535\u8111\u8bbf\u95ee\u8fd9\u4e2a\u57df\u540d\u662f\u6b63\u5e38\u7684\u3002\u60f3\u95ee\u95ee\u4ee5\u4e0b\u914d\u7f6e\u6587\u4ef6\u8fd8\u6709\u90a3\u513f\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u624d\u80fd\u8ba9nat\u5c0f\u9e21\u53ef\u4ee5\u8bbf\u95ee\u8fd9\u4e2a\u57df\u540d\uff1f\uff1f<br \/>  auto lo<br \/>  iface lo inet loopback<\/p>\n<p>  iface enp1s0 inet manual<\/p>\n<p>  auto vmbr0<br \/>  iface vmbr0 inet static<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;address \u516c\u7f51IP\u5730\u5740\/32<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gateway 100.64.35.133<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-ports enp1s0<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-stp off<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-fd 0<\/p>\n<p>  iface vmbr0 inet6 static<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;address IPV6\/64<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;gateway IPV6\u7f51\u5173<\/p>\n<p>  auto vmbr2<br \/>  iface vmbr2 inet static<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;address 10.0.0.254\/24<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-ports none<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-stp off<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;bridge-fd 0<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A POSTROUTING -s &#8216;10.0.0.0\/24&#8217; -o vmbr0 -j MASQUERADE<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D POSTROUTING -s &#8216;10.0.0.0\/24&#8217; -o vmbr0 -j MASQUERADE<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp &#8211;dport 8888 -j DNAT &#8211;to 10.0.0.102:8888<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp &#8211;dport 8888 -j DNAT &#8211;to 10.0.0.102:8888<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp &#8211;dport 3389 -j DNAT &#8211;to 10.0.0.102:3389<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp &#8211;dport 3389 -j DNAT &#8211;to 10.0.0.102:3389<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp &#8211;dport 10022 -j DNAT &#8211;to 10.0.0.102:22<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp &#8211;dport 10022 -j DNAT &#8211;to 10.0.0.102:22<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp &#8211;dport 80 -j DNAT &#8211;to 10.0.0.102:80<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp &#8211;dport 80 -j DNAT &#8211;to 10.0.0.102:80<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp &#8211;dport 443 -j DNAT &#8211;to 10.0.0.102:443<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp &#8211;dport 443 -j DNAT &#8211;to 10.0.0.102:443  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>optimism<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8bba\u575b\u5927\u4f6c\u591a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ffb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\toptimism \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-7-17 16:42<br \/>  \u8bba\u575b\u5927\u4f6c\u591a<\/p>\n<p> \u662f\u7684\uff0c\u6b63\u5728\u7b49\u5f85\u5927\u4f6c\u5e2e\u5fd9\u770b\u770b\u3002\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>loveqianool<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9e21\u5185 IP \u6b63\u786e\u5417\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>ffb \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u6c42\u4e00\u4e2apv&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\/517552"}],"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=517552"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/517552\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=517552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=517552"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=517552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}