WireGuard是一款新型的VPN代理工具,作用类似于Shadowsocks/SSR/V2Ray/Trojan等,可以作为以上几款工具的备用补充。下面我们介绍另一款WireGuard一键脚本,适配CentOS/Debian/Ubuntu三大系统,可以作为以上脚本的备用版本使用。

WireGuard一键脚本秋水版 特点

  • 支持CentOS、Debian、Ubuntu系统下的一键安装。
  • 支持两种安装方式:从代码编译安装、从repository直接安装。
  • 支持多用户,可自定义添加多个客户端配置。
  • 支持一键升级、一键卸载。
  • 支持配置参数文件下载,支持二维码连接。

准备

1. 在搭建之前你需要一台国外服务器! 建议选择Debain 9 及以上,或者Ubuntu 16 及以上、又或者CentOS 7 及以上。为什么需要一台服务器请参考这里。如何选择优质的服务器请参考什么是VPS?应该如何选择?

2. 服务器购买之后 需要通过SSH客户端连接服务器,以便操作你购买的远程服务器 Windows系统请参考 Bitvise连接Linux服务器教程,mac用户请参考 Mac电脑连接Linux教程

3.如果你觉得搭建流程太麻烦,可以考虑Justmysocks的代理服务,可以免去搭建流程,速度和性价比也不错。just-my-socks购买和使用教程

WireGuard一键脚本秋水版 使用教程

1.ssh连接至VPS,安装 wget 依赖包

yum -y install wget    ##ContOS Yum 安装 wget

apt-get install wget   ##Debian Ubuntu 安装 wget

2.复制以下命令下载脚本

wget --no-check-certificate -O /opt/wireguard.sh https://raw.githubusercontent.com/teddysun/across/master/wireguard.sh

3.修改脚本运行权限

chmod 755 /opt/wireguard.sh

4.以下命令任选其一,开始安装WireGuard。安装需要点时间

从代码编译安装:

/opt/wireguard.sh -s

从repository直接安装:

/opt/wireguard.sh -r

5.当出现下图界面时,代表WireGuard安装完成:

WireGuard一键安装脚本

根据上图提示:

WireGuard客户端配置文件位于:/etc/wireguard/wg0_client

WireGuard客户端配置二维码图片位于:/etc/wireguard/wg0_client.png

6.接下来根据自身需求,下载对应的WireGuard客户端连接服务端即可。

WireGuard客户端的下载及使用教程,可以参考:

WireGuard各平台客户端下载汇总

WireGuard Windows客户端使用教程

WireGuard一键脚本秋水版 常见问题

1.使用本一键脚本安装WireGuard失败?

由于WireGuard的安装,涉及到系统内核版本,在部分系统内核下可能会出现安装失败的情况。

此时建议尝试另外一款WireGuard一键脚本:

WireGuard一键安装脚本三合一版 适用于CentOS/Debian/Ubuntu搭建

2.如何获取WireGuard客户端的配置文件?

WireGuard服务器端成功搭建完成后,客户端配置文件在VPS的如下位置:/etc/wireguard/wg0_client,可使用sz命令下载至本地电脑,用于WireGuard电脑端连接使用,比如WireGuard Windows客户端/Mac客户端/Linux客户端。

3.WireGuard 二维码如何使用?

二维码图片位于/etc/wireguard/wg0_client.png,可用sz命令下载至本地电脑,用于移动设备WireGuard客户端的连接,比如WireGuard 安卓客户端/iOS客户端,扫码之后会自动添加代理服务器。

4.如何为WireGuard添加用户,实现多用户连接?

运行以下命令新增客户端配置:

/opt/wireguard.sh -a

5.如何卸载WireGuard?

运行以下命令:

/opt/wireguard.sh -n

6.其它常用命令?

列出WireGuard客户端配置:

/opt/wireguard.sh -l

删除已添加的多用户(客户端配置):

/opt/wireguard.sh -d

查看当前WireGuard版本信息:

/opt/wireguard.sh -v

升级WireGuard到最新版本:

/opt/wireguard.sh -u

其它常用代理工具 一键搭建脚本

Shadowsocks一键安装脚本使用教程

SSR一键安装脚本使用教程

V2ray一键安装脚本使用教程

Trojan一键安装脚本使用教程

最后修改日期: 2022年 9月 22日

留言

Can I simply just say what a comfort to discover an individual who genuinely knows what they are discussing on the internet. You definitely realize how to bring an issue to light and make it important. More people should look at this and understand this side of the story. I was surprised that youre not more popular since you surely possess the gift.

Hi to every body, it’s mmy firrst payy a visit off this blog; thijs webpage consists of amaziong andd genuuinely fine information inn support of visitors.

Hello There. I found your webllog the uuse of msn. This iss a really smartly written article. I willl be surde to bookmark it annd return to lean more of your useful info. Thank yoou foor thhe post. I will definifely return.

I was very pleased to uncover this great site. I need to to thank you for ones time for this fantastic read!! I definitely appreciated every bit of it and I have you bookmarked to look at new information on your blog.

I was very pleased to uncover this great site. I need to to thank you for ones time for this fantastic read!! I definitely appreciated every bit of it and I have you bookmarked to look at new information on your blog.

I was very pleased to uncover this great site. I need to to thank you for ones time for this fantastic read!! I definitely appreciated every bit of it and I have you bookmarked to look at new information on your blog.

Wow, marvelous blog layout! Hoow long hae you ben blogginng for? you made blogging lokok easy. The overall look of your website is great, as well as tthe content!

I’m not sure exactly why but this web site is loadiing very slow forr me. Is nyone else hazving ths problem or iss iit a prblem on my end? I’ll check back ater oon and see if thee problem stll exists.

Thhis paragraph iis genuunely a nice onne iit assists new the web viewers, whoo are wishing in favor off blogging.

I just cohld not go awayy your webb sit beforde suggsting tha I really enjoyed the standard information ann indivicual supply on ykur guests? Is goiung to be back ceaselessly in order to check ouut neew posts

I amm really grateful to thhe hoklder of this website whoo hhas shared tthis enormouss post at at this place.

Withh havin soo much writften content do you ever run inyo any problemss of plagorism oor cpyright violation? My blog hass a loot off exclusive content I’ve eiher written myself or outsoutced but it looks like a lot off it is popping it up all ober tthe internet without mmy permission. Do yoou know aany soluytions to help rreduce cntent from being stolen? I’d genuinely appreciate it.

It’s amazing to pay a quick visit this wdbsite and reading the views of all friencs regarding thjs pece oof writing, while I amm also ager of getting know-how.

Thanks for finally writing about > WireGuard一键安装脚本秋水版 – 小黑CN < Loved it!

It’s in reallity a nice andd helpful piece oof info. I’m glad that you shared thuis useful infoormation with us. Pleasse staay us up to datte lik this. Thank you for sharing.

Itís nearly impossible to find educated people for this subject, but you sound like you know what youíre talking about! Thanks

Good write-up. I definitely appreciate this website. Continue the good work!

It’s an amazin post for all the onlinee users; they will tzke benefit fdom itt I aam sure.

Simply wznt tto ssay yopur article is as surprising. The clearness tto your put uup is just excellent annd that i can suppose youu aree a professioinal iin thhis subject. Finee together withh yoiur perfmission llet me tto grasp your RSS fered tto stay up too ate wikth drawing close post. Thanks onne million and plkease continue tthe enjoyable work.

Hey! Do you use Twitter? I’d like tto follow you if that woulod bbe ok. I’m definitely enjoying your blkog and look forward to neew posts.

I bewlieve tha iss onee of the such a lot important info for me. Andd i’m satisfed studyin you article. However shoul statement onn few geneeral things, Thhe site tastfe iss wonderful, the articles iss truly greaat : D. Excellent job, cheers

You ougyt too bbe a part of a contet for one oof tthe greatest websites on the net. I will hkghly recojmend this blog!

It’s an remarkable piece of writing designe for all the online people; tey wil get advantage frolm itt I aam sure.

Cann you tell us more anout this? I’d care too finhd outt mpre details.

Good post. I learn something totally new and challenging on blogs I stumbleupon on a daily basis. Its always useful to read content from other authors and practice something from their websites.

Appreciation tto my fatther who told mme conncerning thi webpage, tgis weblog iis genuinely remarkable.

A motivating discussion is definitely worth comment. Theres no doubt that that you need to write more on this subject matter, it may not be a taboo matter but generally folks dont discuss such subjects. To the next! Kind regards!!

Hello all, here every perwon is sharing thgese knowledge, so it’s fastidious to read this blog, and I used to visit tthis webpabe everyday.

Highly energetic article, I enoyed that a lot. Willl there be a part 2?

It’s nearly impossible tto fund experienced people abouyt this subject, however, yoou seem like yoou know what you’re talkjng about! Thanks

Thanks very interesting blog!

Remarkable! Its reallpy awesome paragraph, I have gott much clear idea about frolm this paragraph.

Hi, I do believe this is a great website. I stumbledupon it 😉 I’m going to revisit yet again since i have bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

I really like what you guys are usually up too. This type of clever work and reporting! Keep up the very good works guys I’ve you guys to my personal blogroll.

We are a bunch of volunteers and starting a brand new scheme in our community. Your web site offered us with useful information to work on. You have performed an impressive job and our whole neighborhood will probably be grateful to you.

Heya! I understand this is sort of off-topic but I needed to ask. Does managing a well-established blog such as yours require a massive amount work? I’m brand new to blogging however I do write in my diary daily. I’d like to start a blog so I will be able to share my personal experience and thoughts online. Please let me know if you have any kind of recommendations or tips for brand new aspiring bloggers. Thankyou!

Does your site have a contact page? I’m having trouble locating it but, I’d like to send you an e-mail. I’ve got some recommendations for your blog you might be interested in hearing. Either way, great website and I look forward to seeing it grow over time.

Pretty great post. I simply stumbled upon your blog and wished to mention that I have truly enjoyed surfing around your blog posts. After all I will be subscribing on your rss feed and I’m hoping you write once more soon!

Wonderful goods from you, man. I have understand your stuff previous to and you’re just too wonderful. I actually like what you have acquired here, certainly like what you’re stating and the way in which you say it. You make it enjoyable and you still take care of to keep it wise. I cant wait to read far more from you. This is really a wonderful site.

撰写回覆或留言