全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 603|回复: 3

结帖!已经找到 wireguard在ubuntu使用客户端

[复制链接]
发表于 2020-3-16 12:25:44 | 显示全部楼层 |阅读模式
本帖最后由 52Fancy 于 2020-3-16 21:18 编辑

wireguard用的Azure日本,感觉还不错
就是现在常用的系统就是ubuntu。找来找去也没找到怎么在ubuntu安装客户端
大佬们,有路子吗?




---------------------------------------更新--------------------------------

https://github.com/TunSafe/TunSafe

Supported operating systems
TunSafe is officially supported on the following operating systems.

Windows 7, 8, 10
Linux
MacOS
FreeBSD
Android

Using TunSafe on POSIX compatible systems
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.

Follow the instructions below to download, compile and install TunSafe on unix-like systems.

1. Download the TunSafe source code
$ git clone https://github.com/TunSafe/TunSafe.git
$ cd TunSafe

2. Install compiler environment
Linux
$ sudo apt-get install clang-6.0
FreeBSD
$ sudo pkg install gcc7

3. Build and install TunSafe
$ make
$ sudo make install
If everything went well, you now have a tunsafe tool in the /usr/bin directory.

4. Run TunSafe
To use TunSafe you need a WireGuard configuration file from a 扶墙 provider. You can also use the free TunSafe 扶墙 servers. Assuming it's named TunSafe.conf, do the following to start TunSafe:

$ sudo tunsafe start -d TunSafe.conf
If everything went well, TunSafe daemonizes and continues running in the background. To instead run in the foreground, omit the -d flag.

You can verify that TunSafe is running with the tunsafe show command. It should look similar to this.

$ sudo tunsafe show
interface: tun0
  public key: 8q1SiKy7hKDTPXltp2iimxLjWpL53lRnQzms9f8LXU0=
  private key: (hidden)
  listening port: 8040

peer: T/DjhrM8hkbqYnOYQvHExF0HI/Csi6DktQth5ijcpDI=
  allowed ips: 192.168.2.0/24
Stop TunSafe by using tunsafe stop.

$ sudo tunsafe stop tun0
 楼主| 发表于 2020-3-16 18:15:26 | 显示全部楼层
有大佬知道嘛
发表于 2020-3-16 21:45:08 来自手机 | 显示全部楼层
感谢,或许我也需要
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-26 16:23 , Processed in 0.103228 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表