{"id":23375,"date":"2020-02-10T00:32:45","date_gmt":"2020-02-09T16:32:45","guid":{"rendered":"http:\/\/4563.org\/?p=23375"},"modified":"2020-02-10T00:32:45","modified_gmt":"2020-02-09T16:32:45","slug":"%e5%86%8d%e4%bb%8b%e7%bb%8d%e4%b8%80%e4%b8%aa%e9%9a%a7%e9%81%93%e8%bd%af%e4%bb%b6-%e6%9c%89%e8%af%a6%e7%bb%86%e6%95%99%e7%a8%8b%e5%92%8c%e8%af%b4%e6%98%8e","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=23375","title":{"rendered":"\u518d\u4ecb\u7ecd\u4e00\u4e2a\u96a7\u9053\u8f6f\u4ef6 \u6709\u8be6\u7ec6\u6559\u7a0b\u548c\u8bf4\u660e"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u8be1\u8c32<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>\u518d\u4ecb\u7ecd\u4e00\u4e2a\u96a7\u9053\u8f6f\u4ef6 \u6709\u8be6\u7ec6\u6559\u7a0b\u548c\u8bf4\u660e<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u8be1\u8c32 \u4e8e 2020-2-10 00:15 \u7f16\u8f91 <\/p>\n<p> \u4ee5\u4e0b\u5185\u5bb9\u51fa\u73b0\u7684\u6276\u5899\u81ea\u89c9\u6362\u6210 v p n\u3002\u3002\u3002<\/p>\n<p>  \u96a7\u9053\u8f6f\u4ef6\u4f55\u5176\u591a\uff0c\u597d\u7528\u7684\u4e2a\u4eba\u611f\u89c9\u5e76\u4e0d\u7b97\u591a\u3002\u5927\u90e8\u5206\u96a7\u9053\u8f6f\u4ef6\u5efa\u7acb\u6210\u529f\u4e4b\u540e\uff0c\u662f\u521b\u5efa\u4e86\u7c7b\u4f3cC\/S\u67b6\u6784\u7684\u70b9\u5bf9\u70b9\u7684\u901a\u4fe1\uff0c\u4e5f\u5c31\u662f\u4f1a\u6709\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u7684\u533a\u522b\uff0c\u4e0b\u4e2a\u8bbe\u5907\u518d\u8fdb\u6765\uff0c\u4e5f\u4e00\u6837\u8fd9\u6837\u521b\u5efa\u3002\u5982\u679c\u4f60\u9700\u8981\u521b\u5efa\u7c7b\u4f3czerotier\u8fd9\u6837\u7684\u865a\u62df\u5c40\u57df\u7f51\uff0c\u90a3\u4e48\u4f60\u5c31\u5e94\u8be5\u770b\u770b\u8fd9\u4e2a\u96a7\u9053\u8f6f\u4ef6\uff0c\u5b83\u662f\u5f00\u6e90\u7684\uff0c\u540d\u5b57\u53eb\u505a\u6276\u5899cloud <\/p>\n<p>  \u529f\u80fd\u548c\u4f18\u70b9\uff0c\u6587\u6863\u4e4b\u7c7b\u7684\uff0c\u4f60\u4eec\u76f4\u63a5\u53bb\u770b\u5b98\u7f51\u7684\u8bf4\u660e\u597d\u4e86\uff1ahttps:\/\/\u6276\u5899cloud.ddswd.de<\/p>\n<p>  \u5bf9\u6211\u6765\u8bf4\u5b83\u7684\u6700\u5927\u4f18\u70b9\u662f\u53bb\u4e2d\u5fc3\u5316\u7684\u865a\u62df\u7ec4\u7f51\uff0c\u591a\u4e2a\u8bbe\u5907\u63a5\u5165\u540e\uff0c\u53ef\u4ee5\u4e92\u76f8\u901a\u4fe1\u800c\u4e0d\u9700\u8981\u7ecf\u8fc7\u6240\u8c13\u7684\u4e3b\u670d\u52a1\u5668\uff0c\u8fd9\u6837\u5c31\u80fd\u7b26\u5408\u865a\u62df\u5c40\u57df\u7f51\u7684\u9700\u6c42\u3002<\/p>\n<p>  \u6709\u4e2d\u5fc3\u8282\u70b9\u7684\u96a7\u9053\u6280\u672f\u6709\uff1apptp\u3001open\u6276\u5899\u3001l2tp\u3001wireguard\u3001ocserv\u7b49\u7b49<br \/>  \u53bb\u4e2d\u5fc3\u5316\u8282\u70b9\u7684\u96a7\u9053\u6280\u672f\u6709\uff1an2n\u3001zerotier\u3001\u6276\u5899cloud<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u5206\u5272\u7ebf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>  \u6ca1\u7528\u8fc7\u6211\u5c31\u4e0dbb\uff0c\u4f46\u5176\u5b9e\u6211\u5df2\u7ecf\u5728\u6211\u7684\u751f\u4ea7\u73af\u5883\u4e2d\u7528\u4e86\u63a5\u8fd1\u4e24\u5e74\uff0c\u975e\u5e38\u7a33\u5b9a\u3002\u6211\u9700\u8981\u628a\u6211\u7684\u51e0\u4e2a\u670d\u52a1\u5668\/vps\u653e\u5728\u4e00\u4e2a\u5b50\u7f51\u5185\uff0c\u4ee5\u89c4\u907f\u4e00\u4e9b\u95ee\u9898\u3002<\/p>\n<p>  \u6bd4\u5982\u6211\u6709\u4e00\u4e2a\u5e94\u7528\u573a\u666f\u662f\u8fd9\u6837\uff1a<\/p>\n<p>  \u5728\u516c\u53f8\u6709\u4e00\u4e2a\u673a\u67dc\uff0c\u91cc\u9762\u653e\u7740\u8bb8\u591a\u7f51\u7edc\u8bbe\u5907\uff0c\u6709nas\u3001voip\u3001\u6253\u5370\u673a\u3001\u76d1\u63a7\u6444\u50cf\u7b49\uff0c\u4f46tm\u6ca1\u6709\u516c\u7f51IP\uff0c\u5728\u7f51\u5173\u505a\u7aef\u53e3\u6620\u5c04\u6beb\u65e0\u610f\u4e49\uff0c\u53ea\u80fd\u63a5\u5165\u865a\u62df\u5c40\u57df\u7f51<br \/>  \u7136\u540e\u5728\u6211\u5bb6\u91cc\uff0c\u4e5f\u6709\u82e5\u5e72\u7684\u8bbe\u5907\uff0c\u6709\u65f6\u5019\u4e5f\u5728\u5bb6\u91cc\u529e\u516c\uff0c\u9700\u8981\u65f6\u65f6\u5230\u516c\u53f8\u7684\u7f51\u6bb5\u5f04\u70b9\u4ec0\u4e48\u4e1c\u897f\u7684\u3002<\/p>\n<p>  \u8fd9\u65f6\u5019\u6211\u53ea\u9700\u8981\u628a\u516c\u53f8\u548c\u5bb6\u91cc\u8fde\u5230\u4e00\u4e2a\u5c40\u57df\u7f51\u5185\uff0c\u518d\u505a\u4e2a\u8def\u7531\u8868\uff0c\u6211\u5c31\u53ef\u4ee5\u628a\u516c\u53f8\u548c\u5bb6\u91cc\u7684\u6240\u6709\u8bbe\u5907\u90fd\u80fd\u7ec4\u5728\u4e00\u8d77<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u5206\u5272\u7ebf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>  \u53e6\u5916\u4e00\u4e2a\u573a\u666f\u662fweb<\/p>\n<p>  \u6211\u6709\u4e00\u4e2a\u7528gitea\u642d\u5efa\u7684\u670d\u52a1\uff0c\u670d\u52a1\u5668\u653e\u5728\u516c\u53f8\u673a\u67dc\uff0c\u6ca1\u6709\u516c\u7f51IP\u3002\u3002\u3002\u6240\u4ee5\u6211\u628a\u5b83\u52a0\u5165\u5230\u865a\u62df\u5c40\u57df\u7f51<br \/>  \u7136\u540e\u6211\u7528\u7684\u963f\u91cc\u4e91\u56fd\u5185ecs\uff0c\u4e5f\u52a0\u5165\u5230\u865a\u62df\u5c40\u57df\u7f51\u4e86\u3002gitea\u6211\u4eec\u7528\u7684\u65f6\u5019\u9664\u4e86\u9700\u8981\u7528\u5230https\uff0c\u4e5f\u9700\u8981ssh\u8fd9\u79cd\u65b9\u5f0f\uff0c\u6240\u4ee5\u8fd9\u65f6\u5019\u5c31\u53ef\u4ee5\u76f4\u63a5\u7aef\u53e3\u8f6c\u53d1\u5230\u8fd9\u4e2a\u96a7\u9053IP\u4e0a<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- \u5927\u5206\u5272\u7ebf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>  BB \u90a3\u4e48\u591a\uff0c\u76f4\u63a5\u5206\u4eab\u5b89\u88c5\u6b65\u9aa4\u5427<\/p>\n<p>  \u6211\u5e73\u65f6\u53ea\u73a9ubuntu\uff0c\u6240\u4ee5\u5176\u4ed6\u53d1\u884c\u7248\u4f60\u4eec\u6709\u5174\u8da3\u81ea\u5df1\u6298\u817e\uff0c\u5b98\u7f51\u4e5f\u6709\u8bf4\u660e\u3002<\/p>\n<p>  ubuntu\u5c31\u7b80\u5355\u4e86\u3002\u76f4\u63a5apt\u5b89\u88c5\u5373\u53ef\u3002<\/p>\n<p>  echo &quot;deb https:\/\/repo.ddswd.de\/deb stable main&quot; | sudo tee \/etc\/apt\/sources.list.d\/\u6276\u5899cloud.list<br \/>  wget https:\/\/repo.ddswd.de\/deb\/public.key -qO &#8211; | sudo apt-key add<br \/>  sudo apt update<br \/>  sudo apt install \u6276\u5899cloud<\/p>\n<p>  \u7136\u540e\u914d\u7f6e\u96a7\u9053\u53c2\u6570\uff0c\u8fdb\u5165\/etc\/\u6276\u5899cloud\/\u8def\u5f84\uff0c\u91cc\u9762\u6709\u4e00\u4e2a\u793a\u4f8b\u6587\u4ef6\uff0c\u5355\u72ec\u521b\u5efa\u4e00\u4e2a\uff0c\u7136\u540e\u7f16\u8f91\u5b83<br \/>  touch private.net<br \/>  vim private.net<\/p>\n<p>  # each \u6276\u5899 running on their own port<br \/>  port: 3210<\/p>\n<p>  # members of our private network<br \/>  peers:<br \/>  &#8211; 202.175.123.1:3210 #10.192.88.1<br \/>  &#8211; 140.238.220.31:3210 #10.192.88.2<\/p>\n<p>  # timeouts<br \/>  peer_timeout: 1800<br \/>  dst_timeout: 300<\/p>\n<p>  # token that identifies the network and helps to distinguish from other networks<br \/>  magic: &quot;22e03358&quot;<\/p>\n<p>  # pre shared key<br \/>  shared_key: &quot;eTBK6A37u9NUYQ4GPWpQSdNj4zsjcWMG&quot;<\/p>\n<p>  # encryption<br \/>  crypto: aes256<\/p>\n<p>  # device info<br \/>  device_name: &quot;\u6276\u5899cloud%d&quot;<br \/>  device_type: tap<\/p>\n<p>  # \u6276\u5899 modes: hub \/ switch \/ router \/ normal<br \/>  mode: normal<\/p>\n<p>  # subnet to be used for our private network<br \/>  subnets:<br \/>  &#8211; 10.192.0.0\/16<\/p>\n<p>  # command to setup the network<br \/>  ifup: &quot;ifconfig $IFNAME 10.192.88.1\/16 mtu 1400&quot;<br \/>  ifdown: &quot;ifconfig $IFNAME down&quot;<\/p>\n<p>  # user\/group owning the process<br \/>  user: &quot;root&quot;<br \/>  group: &quot;root&quot;<\/p>\n<p>  \u6700\u540e\u8ba9\u6276\u5899cloud\u5f00\u673a\u542f\u52a8\u548c\u8fd0\u884c<\/p>\n<p>  systemctl enable \u6276\u5899cloud@private<br \/>  systemctl restart \u6276\u5899cloud@private<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; \u5206\u5272\u7ebf &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>  \u7ecf\u9a8c\u5206\u4eab<\/p>\n<p>  0. \u6bcf\u4e2a\u8282\u70b9\u7684IP\u90fd\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u914d\u7f6e\uff0c\u4e0d\u4f1a\u81ea\u52a8\u5206\u914d\u7684\u3002\u4e5f\u5c31\u662fifup: &quot;ifconfig $IFNAME 10.192.88.1\/16 mtu 1400&quot; \u8fd9\u884c<br \/>  1. \u8fd9\u4e2a\u662fudp\u7684\uff0c\u6216\u591a\u6216\u5c11\u4f1a\u6536\u5230qos\u5f71\u54cd<br \/>  2. \u5982\u679c\u4f60\u7684\u8bbe\u5907\u7684CPU\u80fd\u786c\u89e3AES\uff0c\u90a3\u4e48\u5728\u914d\u7f6e\u6587\u4ef6\u4e2dcrypto\u9009\u62e9\u7528aes256\uff0c\u5426\u5219\u7528chacha20\uff0c\u6240\u6709\u8fde\u4e0a\u6765\u7684\u8282\u70b9\u90fd\u9700\u8981\u540c\u6837\u7684\u52a0\u5bc6\u65b9\u5f0f<br \/>  3. ping\u6216\u6d4b\u901f\u4ec0\u4e48\uff0c\u90fd\u662f\u53d6\u51b3\u4e8e\u4f60\u539f\u6765\u5230\u76ee\u6807\u670d\u52a1\u5668\u7684\u5ef6\u8fdf\u548c\u901f\u5ea6\u6709\u591a\u5c11\uff0c\u548c\u96a7\u9053\u6ca1\u592a\u5927\u5173\u7cfb\uff0c\u7f51\u7edc\u8be5\u70c2\u7684\u8fd8\u662f\u70c2\u3002<br \/>  4. \u5982\u679c\u60f3\u8981\u4f18\u5316\u541e\u5410\u91cf\uff0c\u53ef\u4ee5\u8003\u8651\u628aMTU\u52a0\u5927\uff0c\u6211\u81ea\u5df1\u76ee\u524d\u8bbe\u7f6e\u7684MTU\u662f7000\uff0c\u7528\u4e0b\u6765\u4e5f\u662f\u975e\u5e38\u9760\u8c31\u7684\uff0c\u5bf9\u6bd4\u6d4b\u8bd5\u53ef\u4ee5\u770b\u5b98\u65b9\u7684\u6587\u6863 https:\/\/\u6276\u5899cloud.ddswd.de\/features\/performance\/<br \/>  5. \u5173\u4e8e\u52a0\u5bc6\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u5730\u65b9\u53ef\u4ee5\u8bbe\u7f6e\u7684\uff0c\u4e00\u4e2a\u662f\u957f\u5ea6\u4e3a4byte\u7684magic\uff0c\u53e6\u5916\u4e00\u4e2a\u662f\u9884\u5171\u4eab\u5bc6\u94a5shared_key\uff0c\u957f\u5ea6\u4e3a32\u4f4d\uff0c\u6bcf\u4e00\u4e2a\u8282\u70b9\u90fd\u662f\u4e00\u6837\u7684\u3002<br \/>  6. \u6211\u4e60\u60ef\u5728peers\u90a3\u91cc\u7559\u4e24\u4e2a\u957f\u671f\u7a33\u5b9a\u8fd0\u884c\u7684\u8282\u70b9\uff0c\u5176\u4ed6\u4e0d\u91cd\u8981\u7684\u8282\u70b9\u5c31\u6ca1\u5fc5\u8981\u5199\u5728\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u4e2d\u4e86\uff0c\u6709\u8282\u70b9\u4e0a\u7ebf\uff0c\u4f1a\u81ea\u52a8\u5e76\u5165\u7f51\u7edc\u7684\u3002<\/p>\n<p>  \u5173\u4e8enat\u7684\u95ee\u9898<br \/>  \u65e2\u7136\u8fd9\u662f\u4e2a\u865a\u62df\u7ec4\u7f51\u7684\u8f6f\u4ef6\uff0c\u90a3\u81ea\u7136nat\u662f\u4e0d\u5728\u8bdd\u4e0b\u7684\uff0c\u4f60\u53ea\u9700\u8981\u5728\u67d0\u4e2a\u8282\u70b9\uff0c\u628aiptable\u8f6c\u53d1\u6253\u5f00\uff0c\u5c31\u8ddf\u4f60\u4eec\u5e38\u7528\u7684\u6276\u5899\u90a3\u79cd\u8bbe\u7f6e\u4e00\u6837\u3002\u5176\u4ed6\u8282\u70b9\u518d\u6574\u4e2a\u7b56\u7565\u8def\u7531\uff0c\u628aip\u6574\u7406\u597d\uff0c\u76f4\u63a5\u8d70\u8fd9\u4e2a\u865a\u62df\u5185\u7f51\u5c31\u597d\u3002<\/p>\n<p>  \u6362\u53e5\u8bdd\u8bf4\u8fd9\u53ef\u4ee5\u600e\u4e48\u73a9\uff1f<br \/>  \u4f60\u53ef\u4ee5\u5728\u56fd\u5185\u4e00\u4e2a\u4e3b\u673a\u4e0a\u505a\u6700\u7b80\u5355\u7684socks\u4ee3\u7406\uff0c\u5206\u522b\u628a\u8981\u4ee3\u7406\u7684\u76ee\u6807\uff0c\u901a\u8fc7\u7b56\u7565\u8def\u7531\u5bfc\u5230\u4e0d\u540c\u7684\u843d\u5730\u8282\u70b9\u53bb\u3002<\/p>\n<p>  \u795d\u5927\u5bb6\u73a9\u7684\u6109\u5feb\u3002\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u8be1\u8c32<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5360\u697c:lol\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\u770b\u4e0d\u61c2 \u7ed1\u5b9a\u5927\u4f6c\u5206\u4eab\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6316\u5751\u8fbe\u4eba<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e09\u4e2a\u59d1\u5a18<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\uff0c\u5b57\u6570\u8865\u4e01\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\t666 \u7d2b\u85af\u5e03\u4e01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>limonada<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t666 \u7d2b\u85af\u5e03\u4e01\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ChinaT<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u9a6c\u514b\uff0c\u5b66\u4e60\u4e86\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u5148\u5bb9\u6211\u6c34\u4e00\u53d1<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmark\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>deyu<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u770b\u4e0d\u61c2\u5b9a\u4e00\u4e0b\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8be1\u8c32 \u5927\u4f6c\u6709\u8bdd\u8bf4 : \u518d\u4ecb\u7ecd\u4e00\u4e2a\u96a7&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\/23375"}],"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=23375"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/23375\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23375"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}