2019.03.14 | 零零碎碎 | 6764 浏览 | 9 赞 | 0 条评论


请注意,本文编写于 1864 天前,最后修改于 1864 天前,其中某些信息可能已经过时。
AI摘要:本文介绍了自建shadowsocks服务器的原因、购买VPS的推荐以及shadowsocks和shadowsocks-r的区别。文章还提供了使用一键安装脚本搭建shadowsocks/shadowsocksr的详细步骤。自建服务器可以提高稳定性和流量,适合需要24小时挂在墙外的用户。

Powered by AISummary and MoonShot Kimi Chat.

这本来应该是很早的一篇博客XD但是嘤嘤嘤咕咕咕了很久~

为什么自建shadowsocks

对于傻翠来说,既然反正也要用服务器来搭建自己的网站,不如顺便翻个墙也不错ww

另外自建服务还有什么其他的好处呢~

首先就是稳定性的提高啦,有一个自己的服务器,怎么折腾也都不怕。就算有一天shadowsocks有一天被ban了(2019.03.03更新:一语成谶...)也可以通过其他的手段连接到服务器并通向墙外,总归是有办法的啦ww对于傻翠这种需要24小时挂在墙外,,没有谷歌活不了的傻孩子来讲就更重要啦ww

其次就是流量是足够的,由于走的是服务器的流量,所以完全不用担心流量的问题~

注册购买VPS

首先需要租用国外的服务器,话不多说,推荐两个

Bandwagon 这里 镜像1 镜像2

Vultr 这里

值得一提的是,Bandwagon内置直接进行shadowsocks和shadowsocks-r的搭建,还是比较方便的。

shadowsocks和shadowsocks-r有什么不同

简单来说,shadowsocks-r是从shadowsocks上衍生出的一个项目。shadowsocks的本愿是加密,也即与服务器间的加密通信。然而对于天朝来讲在管控严格的时候,可能会对加密过的通信实施无差别的封禁,导致shadowsocks失效;而shadowsocks-r也应运而生,其在ss上增加了混淆的功能,可以将与服务器的通信伪装成正常的IP请求,逃避GFW的检查。

对于shadowsocks,其官网在[这里](),官方仓库在[这里](),当然,由于政治原因该repo在墙内无法看到,需要翻墙查看。

另外一点需要注意的是,对于ssr世面上的版本比较混乱,其原版repo地址在这里,然而其由于其作者被喝茶已经停止维护。现在我们所说的ssr大体是指由Akkariiin所维护的ssrr,repo在这里

在这里做一个区分是因为自己当时为了捋清他们三个的关系还是做了一点功课的,在此做一下笔记。

shadowsocks/shadowsocksr搭建

以下内容转自Shadowsocks 一键安装脚本(四合一)

使用root用户登录,运行以下命令:

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

之后会出现设置

  • 服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成) 推荐自己设定
  • 密码:自己设定(如不设定,默认为 teddysun.com) 推荐使用一个强一些的密码
  • 加密方式:自己设定(如不设定,Python 和 libev 版默认为 aes-256-gcm,R 和 Go 版默认为 aes-256-cfb) 由于破解等原因,建议使用chacha20
  • 协议(protocol):自己设定(如不设定,默认为 origin)(仅限 ShadowsocksR 版) 建议使用auth_aes128_md5
  • 混淆(obfs):自己设定(如不设定,默认为 plain)(仅限 ShadowsocksR 版) 建议使用http_simple

安装完成后,脚本提示如下

Congratulations, your_shadowsocks_version install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Encryption Method:your_encryption_method

Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients)
 ss://your_encryption_method:your_password@your_server_ip:your_server_port
Your QR Code has been saved as a PNG file path:
 your_path.png

Welcome to visit:https://teddysun.com/486.html
Enjoy it!

然后就可以使用shadowsocks/shadowsocksr了

Shadowsocks-Python 版:
/etc/init.d/shadowsocks-python start | stop | restart | status

ShadowsocksR 版:
/etc/init.d/shadowsocks-r start | stop | restart | status

Shadowsocks-Go 版:
/etc/init.d/shadowsocks-go start | stop | restart | status

Shadowsocks-libev 版:
/etc/init.d/shadowsocks-libev start | stop | restart | status

本文链接:https://idealclover.top/archives/543/

本作品由 idealclover 采用 知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议 进行许可,转载请注明出处。

标签: 博客, 服务器, install, shadowsocks, path

9

没有评论 T^T


🤔关于我
翠翠 idealclover
Product Manager @ByteDance
南京大学 2016 级本科生
了解更多
🏠关于博客
基于 Typecho 博客框架
使用个人的 clover clover 主题