静看光阴荏苒
不管不顾不问不说也不念

WireGuard for CentOS7一键安装脚本

我不知道为什么最近这个东西会热门起来,实际上这玩意国内很多ISP都有干扰的,用起来是绝对没有SS/SSR舒服的,下面是我实测的结果:

因为它是走的UDP协议,现在很多ISP都对UDP有限速,一旦你的流量跑高了就会被ISP阻断,就像上图这样。当然绝大多数这种封锁都是暂时的,一般隔个几分钟就会给你解开,所以说这东西不太适合需要跑大流量的客户用。

除此之外,因为WireGuard的协议非常明显,大范围使用绝对会是下一个OpenVPN,做备胎还行。。。

WireGuard的安装和配置比较麻烦,所以我写了一个一键安装脚本,喜欢折腾的可以安装一个玩玩。

注:WireGuard只支持安装在KVM/XEN-HVM等全虚拟化VPS和独立服务器上,不支持OpenVZ,此外本脚本仅支持CentOS764位系统。

使用方法:

wget https://lala.im/static/script/WireGuardinstall.sh && chmod +x WireGuardinstall.sh
./WireGuardinstall.sh

第一次运行脚本请输入1更新系统:

完成之后会提示你重启服务器,再次执行脚本的时候选择2开始安装,并填写服务端口号和你的服务器外网网卡的名字,如果你不知道你的网卡名字是什么,请执行下面的命令:

ifconfig

显示在第一位的一般就是你的机器外网网卡,一般都是eth0,个别机器比如Hetzner的独立服务器可能是enp开头的。

等待脚本执行完成之后,会回显给你类似如下图的配置信息:

请将上面的内容复制粘贴保存到本地电脑命名为xxx.conf:

现在你应该下载客户端,Win版的下载地址:

https://tunsafe.com/download

安装并打开这个软件,选择如下图所示的按钮导入xxx.conf配置文件:

最后连接即可:

赞(2)
未经允许不得转载:荒岛 » WireGuard for CentOS7一键安装脚本
分享到: 更多 (0)

评论 14

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
  1. #1

    沙发,不看好这个,觉得会沦落为下一个openvpn

    TheEastWind6年前 (2018-11-22) Google Chrome 69.0.3497.92 Google Chrome 69.0.3497.92 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 不过有个好处,是可以恢复那些被ban的ip,继续使用,适合那些没法换ip但是又没法退款的机器。

      TheEastWind6年前 (2018-11-22) Google Chrome 69.0.3497.92 Google Chrome 69.0.3497.92 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 目前来看也就这点用途了。。

        LALA6年前 (2018-11-23) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 我也不看好这个。

      LALA6年前 (2018-11-23) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
  2. #2

    lala edge浏览器好用不

    瞎折腾6年前 (2018-11-22) Google Chrome 68.0.3440.91 Google Chrome 68.0.3440.91 Android 6.0.1 Android 6.0.1回复
    • 难用的一匹,不过也算是微软这么多年来做的最好的一款浏览器了。。

      LALA6年前 (2018-11-23) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
      • 我的辣鸡电脑是带不起 :cry: 刚刚在loc推了一波lala.im

        瞎折腾6年前 (2018-11-25) Google Chrome 68.0.3440.91 Google Chrome 68.0.3440.91 Android 6.0.1 Android 6.0.1回复
        • 哈?

          LALA6年前 (2018-11-27) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
  3. #3

    LALA博主 如何能联系到你呀,有点事!希望你能看见,谢谢!

    NN6年前 (2018-11-23) Maxthon 5.2.4.3000 Maxthon 5.2.4.3000 Windows 7 x64 Edition Windows 7 x64 Edition回复
  4. #4

    博主用什么软件截图gif的?

    deng6年前 (2018-11-25) Google Chrome 67.0.3396.87 Google Chrome 67.0.3396.87 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • 这个:https://github.com/NickeManarin/ScreenToGif
      我感觉不怎么好用啊,随便找的一个临时用下。

      LALA6年前 (2018-11-27) Google Chrome 70.0.3538.110 Google Chrome 70.0.3538.110 Windows 10 x64 Edition Windows 10 x64 Edition回复
  5. #5

    Hi Sir, can you make a step by step manual tutorial or one-click script for this project?

    https://github.com/subspacecloud/subspace

    aquacode4475年前 (2019-03-13) Google Chrome 72.0.3626.121 Google Chrome 72.0.3626.121 Windows 10 x64 Edition Windows 10 x64 Edition回复
    • Let me have a look

      LALA5年前 (2019-03-13) Google Chrome 71.0.3578.98 Google Chrome 71.0.3578.98 Windows 10 x64 Edition Windows 10 x64 Edition回复

分享创造快乐

广告合作资源投稿