{"id":323754,"date":"2021-02-06T23:45:20","date_gmt":"2021-02-06T15:45:20","guid":{"rendered":"http:\/\/4563.org\/?p=323754"},"modified":"2021-02-06T23:45:20","modified_gmt":"2021-02-06T15:45:20","slug":"euserv-ipv6-ovz%e5%b0%8f%e9%b8%a1%e5%ae%89%e8%a3%85wireguard%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=323754","title":{"rendered":"Euserv IPV6 OVZ\u5c0f\u9e21\u5b89\u88c5wireguard\u6559\u7a0b"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>ymcoming<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Euserv IPV6 OVZ\u5c0f\u9e21\u5b89\u88c5wireguard\u6559\u7a0b<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 ymcoming \u4e8e 2021-2-6 21:07 \u7f16\u8f91 <\/p>\n<p> 100%\u53ef\u884c\uff0c\u56e0\u4e3a\u62112\u53eaeuserv\u5c0f\u9e21\u90fd\u6210\u529f\u4e86:) <\/p>\n<p>  \u5148\u671f\u5de5\u4f5c\uff1a\u5148\u641e\u4e00\u4e2awg0.conf\u7684\u914d\u7f6e\uff0c\uff08https:\/\/github.com\/ViRb3\/wgcf\uff09\uff0c\u5982\u679c\u73b0\u5728\u6ce8\u518c\u65f6\u663e\u793a\u592a\u591a\u7528\u6237\u4e86\uff0c\u90a3\u4e48\u4f60\u662f\u5f97\u4e0d\u5230warp\u7684\u914d\u7f6e\u3002\u8fd9\u6837\u7684\u8bdd\uff0c\u53bb\u8c37\u6b4c\u5546\u5e97\u4e0b\u8f7d1.1.1.1\u7684\u624b\u673a\u7248\uff0c\u8fde\u4e0awarp\u540e\uff0c\u597d\u50cf\u53ef\u4ee5\u5907\u4efd\u5bfc\u51fa\u624b\u673a\u4e0a\u7684\u5ba2\u6237\u7aef\u914d\u7f6e\uff0c\u8fd9\u4e2aconf\u6539\u540d\u4e3awg0.conf\uff0c\u4e0b\u8f7d\u56de\u7535\u8111\uff0c\u5728wireguard\u5b89\u88c5\u597d\u540e\u518d\u4e0a\u4f20\u5230euserv<\/p>\n<p>  \u6b63\u5f0f\u6b65\u9aa4\uff1a<\/p>\n<p>  1\u3001\u7ed9euserv\u5b89\u88c5go<\/p>\n<p>  echo &quot;deb http:\/\/deb.debian.org\/debian\/ unstable main&quot; &gt; \/etc\/apt\/sources.list.d\/unstable.list &amp;&amp; printf &#8216;Package: *nPin: release a=unstablenPin-Priority: 90n&#8217; &gt; \/etc\/apt\/preferences.d\/limit-unstable &amp;&amp; apt update<br \/>  apt install wireguard-tools &#8211;no-install-recommends<br \/>  cd \/tmp &amp;&amp; wget https:\/\/dl.google.com\/go\/go1.13.4.linux-amd64.tar.gz &amp;&amp; tar zvxf go1.13.4.linux-amd64.tar.gz &amp;&amp;mv go \/opt\/go1.13.4 &amp;&amp;ln -s \/opt\/go1.13.4\/bin\/go \/usr\/local\/bin\/go<br \/>  go version<\/p>\n<p>  2\u3001\u7ed9euserv\u5b89\u88c5wireguard-go<\/p>\n<p>  apt install make<br \/>  cd \/usr\/local\/src &amp;&amp; wget https:\/\/git.zx2c4.com\/wireguard-go\/snapshot\/wireguard-go-0.0.20191012.tar.xz &amp;&amp; tar xvf wireguard-go-0.0.20191012.tar.xz &amp;&amp; cd wireguard-go-0.0.20191012<br \/>  make<br \/>  cp wireguard-go \/usr\/local\/bin<br \/>  wireguard-go &#8211;version<\/p>\n<p>  3\u3001\u751f\u6210wireguard KEY<\/p>\n<p>  wg genkey | tee private key | wg pubkey &gt; publickey<\/p>\n<p>  4\u3001\u7f16\u8f91 \/lib\/systemd\/system\/wg-quick@.service\uff0c\u5728\u201cEnvironment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity \u201d\u8fd9\u884c\u7684\u4e0b\u65b9\uff0c\u63d2\u5165\u4e00\u884c:&nbsp; &nbsp;<\/p>\n<p>  Environment=WG_I_PREFER_BUGGY_USERSPACE_TO_POLISHED_KMOD=1<\/p>\n<p>  5\u3001\u6267\u884c\uff1a<\/p>\n<p>  ln -s \/usr\/bin\/resolvectl \/usr\/local\/bin\/resolvconf<br \/>  ln -sf \/lib\/systemd\/system\/systemd-resolved.service \/etc\/systemd\/system\/dbus-org.freedesktop.resolve1.service<\/p>\n<p>  6\u3001\u653e\u5165\u5148\u671f\u5de5\u4f5c\u7684wg0.conf\u5230\/etc\/wireguard\u76ee\u5f55\u4e0b\uff0c\u9700\u8981\u4fee\u6539\uff0c\u65b9\u6cd5\u53c2\u89c1https:\/\/www.hostloc.com\/thread-805047-1-1.html\uff0c\u5220AllowedIPs = ::\/0\uff0c\u5e76\u6539endpoint=:2408<\/p>\n<p>  7\u3001\u8fd0\u884c<\/p>\n<p>  wg-quick up wg0<br \/>  wg-quick down wg0<br \/>  systemctl enable wg-quick@wg0<br \/>  systemctl start wg-quick@wg0<br \/>  wg<\/p>\n<p>  8\u3001\u68c0\u9a8c\uff0cPing ipv4\u7f51\u7ad9\uff0c\u5982\u4e0b\u5c31\u6210\u529f\u4e86\u3002\u3002\u3002\uff08\u5bf9\u4e86\uff0c\u8bb0\u5f97\u628a\u4f60\u4eecIPV4\u96a7\u9053\uff0c\u6539NAT64\u90fd\u5173\u4e86\uff01\uff09<\/p>\n<p>  root@:~# ping github.com<br \/>  PING github.com (140.82.121.3) 56(84) bytes of data.<br \/>  64 bytes from lb-140-82-121-3-fra.github.com (140.82.121.3): icmp_seq=1 ttl=59 time=22.2 ms<br \/>  64 bytes from lb-140-82-121-3-fra.github.com (140.82.121.3): icmp_seq=2 ttl=59 time=17.1 ms<br \/>  64 bytes from lb-140-82-121-3-fra.github.com (140.82.121.3): icmp_seq=3 ttl=59 time=15.0 ms<\/p>\n<p>  \t\t\t\t\t<strong>FallFor<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eabzsbd\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wifitry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>f10<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6ca1\u770b\u61c2\u600e\u4e48\u73a9\uff0c\u7528wg\u5957CF\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>red233<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u641c\u4e86\u4e0b\u8fd9\u4f5c\u7528\u4e5f\u662f\u6234\u7b20\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Yancheng<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tf10 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-2-6 20:55<br \/>  \u6ca1\u770b\u61c2\u600e\u4e48\u73a9\uff0c\u7528wg\u5957CF\uff1f<\/p>\n<p>  \u7d66\u53ea\u6709 IPv6 \u7684\u5c0f\u96de\u900f\u904e CF warp \u9023 IPv4\uff0cCF warp \u5c31\u662f Wireguard\u3002<br \/>  Scaleway \u661f\u5875\u4e5f\u80fd\u7528\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>f10<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tYancheng \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2021-2-6 21:00<br \/>  \u7d66\u53ea\u6709 IPv6 \u7684\u5c0f\u96de\u900f\u904e CF warp \u9023 IPv4\uff0cCF warp \u5c31\u662f Wireguard\u3002<br \/>  Scaleway \u661f\u5875\u4e5f\u80fd\u7528 &#8230;<\/p>\n<p> \u5927\u6982\u660e\u767d\u4e86:lol \u6709\u7a7a\u53bb\u661f\u5c18\u4e0a\u641e\u4e0b\u8bd5\u8bd5\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>b66667777<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5e2e\u9876\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u7eb3\u7c73\u79d1\u6280<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed1\u5b9a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>fule<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\u5206\u4eab  \t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>ymcoming \u5927\u4f6c\u6709\u8bdd\u8bf4 : &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\/323754"}],"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=323754"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/323754\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=323754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=323754"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=323754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}