{"id":62946,"date":"2020-04-07T22:45:37","date_gmt":"2020-04-07T14:45:37","guid":{"rendered":"http:\/\/4563.org\/?p=62946"},"modified":"2020-04-07T22:45:37","modified_gmt":"2020-04-07T14:45:37","slug":"%e7%bb%93%e5%b8%96%ef%bc%81%e5%b7%b2%e7%bb%8f%e6%89%be%e5%88%b0-wireguard%e5%9c%a8ubuntu%e4%bd%bf%e7%94%a8%e5%ae%a2%e6%88%b7%e7%ab%af","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=62946","title":{"rendered":"\u7ed3\u5e16\uff01\u5df2\u7ecf\u627e\u5230 wireguard\u5728ubuntu\u4f7f\u7528\u5ba2\u6237\u7aef"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-16 12:25:44\t<\/p>\n<h3>\u7ed3\u5e16\uff01\u5df2\u7ecf\u627e\u5230 wireguard\u5728ubuntu\u4f7f\u7528\u5ba2\u6237\u7aef<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 52Fancy \u4e8e 2020-3-16 21:18 \u7f16\u8f91 <\/p>\n<p> wireguard\u7528\u7684Azure\u65e5\u672c\uff0c\u611f\u89c9\u8fd8\u4e0d\u9519<br \/>  \u5c31\u662f\u73b0\u5728\u5e38\u7528\u7684\u7cfb\u7edf\u5c31\u662fubuntu\u3002\u627e\u6765\u627e\u53bb\u4e5f\u6ca1\u627e\u5230\u600e\u4e48\u5728ubuntu\u5b89\u88c5\u5ba2\u6237\u7aef<br \/>  \u5927\u4f6c\u4eec\uff0c\u6709\u8def\u5b50\u5417\uff1f<\/p>\n<p>  &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;\u66f4\u65b0&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>  https:\/\/github.com\/TunSafe\/TunSafe<\/p>\n<p>  Supported operating systems<br \/>  TunSafe is officially supported on the following operating systems.<\/p>\n<p>  Windows 7, 8, 10<br \/>  Linux<br \/>  MacOS<br \/>  FreeBSD<br \/>  Android<\/p>\n<p>  Using TunSafe on POSIX compatible systems<br \/>  TunSafe does not yet have a graphical user interface for Linux, OSX, or FreeBSD. However, you can compile TunSafe from source and run it from a command prompt.<\/p>\n<p>  Follow the instructions below to download, compile and install TunSafe on unix-like systems.<\/p>\n<p>  1. Download the TunSafe source code<br \/>  $ git clone https:\/\/github.com\/TunSafe\/TunSafe.git<br \/>  $ cd TunSafe<\/p>\n<p>  2. Install compiler environment<br \/>  Linux<br \/>  $ sudo apt-get install clang-6.0 <br \/>  FreeBSD<br \/>  $ sudo pkg install gcc7<\/p>\n<p>  3. Build and install TunSafe<br \/>  $ make<br \/>  $ sudo make install<br \/>  If everything went well, you now have a tunsafe tool in the \/usr\/bin directory.<\/p>\n<p>  4. Run TunSafe<br \/>  To use TunSafe you need a WireGuard configuration file from a \u6276\u5899 provider. You can also use the free TunSafe \u6276\u5899 servers. Assuming it&#8217;s named TunSafe.conf, do the following to start TunSafe:<\/p>\n<p>  $ sudo tunsafe start -d TunSafe.conf<br \/>  If everything went well, TunSafe daemonizes and continues running in the background. To instead run in the foreground, omit the -d flag.<\/p>\n<p>  You can verify that TunSafe is running with the tunsafe show command. It should look similar to this.<\/p>\n<p>  $ sudo tunsafe show<br \/>  interface: tun0<br \/>  public key: 8q1SiKy7hKDTPXltp2iimxLjWpL53lRnQzms9f8LXU0=<br \/>  private key: (hidden)<br \/>  listening port: 8040<\/p>\n<p>  peer: T\/DjhrM8hkbqYnOYQvHExF0HI\/Csi6DktQth5ijcpDI=<br \/>  allowed ips: 192.168.2.0\/24<br \/>  Stop TunSafe by using tunsafe stop.<\/p>\n<p>  $ sudo tunsafe stop tun0  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-16 18:15:26\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u6709\u5927\u4f6c\u77e5\u9053\u561b\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>52Fancy<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-16 21:18:15\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7ed3\u5e16\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>C51<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-16 21:45:08\t<\/p>\n<h3><\/h3>\n<p>  \t\t\u611f\u8c22\uff0c\u6216\u8bb8\u6211\u4e5f\u9700\u8981\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>52Fancy \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&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\/62946"}],"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=62946"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/62946\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62946"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}