shadowsocks

If you want to keep a secret, you must also hide it from yourself.

Project V,一个工具集合,官网: https://www.v2ray.com/ ,它可以帮助你打造专属的基础通信网络。Project V 的核心工具称为V2Ray,其主要负责网络协议和功能的实现,与其它 Project V 通信。V2Ray 可以单独运行,也可以和其它工具配合,以提供简便的操作流程。

Project V 工具比较复杂,本文仅针对 Shadowsocks

官网:https://shadowsocks.org/

Servers

GitHub: https://github.com/shadowsocks

Shadowsocks 有利用多个语言开发的多个版本,之间的区别见官网 https://shadowsocks.org/en/spec/Implementations.html

以下内容是关于 shadowsocks-libev 版本,操作指南来自 GitHub: https://github.com/shadowsocks/shadowsocks-libev

安装

从仓库安装

1
2
3
4
sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev

若安装失败,应该是缺少依赖,请阅读: https://github.com/shadowsocks/shadowsocks-libev#linux

编辑配置文件

1
2
# Edit the configuration file
sudo vim /etc/shadowsocks-libev/config.json

配置:

1
2
3
4
5
6
7
8
9
{
"server":"156.56.98.300", # 您的主机或服务器IP (IPv4 / IPv6)
"server_port":8005, # 服务器对外端口号
"local_port":1080, # 本地端口号
"password":"123456", # 用于加密传输的密码
"timeout":60, # 连接超时,单位:秒
"method":"chacha20-ietf-poly1305" # 加密方式
}

启动

1
2
3
# Start the service
sudo /etc/init.d/shadowsocks-libev start # for sysvinit, or
sudo systemctl start shadowsocks-libev # for systemd

img

查看进程运行状态

1
2
ps aux
ps aux | grep shadowsocks

img

​ pid == 6842 是刚刚执行的查看进程语句的进程。6518 才是shadowsocks的进程。

杀死进程

​ kill 6518

Client

Shadowsocks:

Windows: https://github.com/shadowsocks/shadowsocks-windows/releases

Android : https://github.com/shadowsocks/shadowsocks-android/releases

IOS: App Store

Outline:

Windows: https://github.com/Jigsaw-Code/outline-client/releases

Android: https://github.com/Jigsaw-Code/outline-releases/blob/master/client/Outline.apk?raw=true

IOS: App Store

Outline 客户端生成 access-keyss://base64(method:password)@IP:port

Proxy SwitchyOmega

官网: https://proxy-switchyomega.com/

安装

官方文档: https://proxy-switchyomega.com/download/

.crx 文件无法使用问题:

1、准备好下载的扩展程序文件(.crx后缀文件),更改后缀为 .rar 并解压。
2、打开 Chrome 浏览器 扩展程序 ,开启 开发者模式
3、点击【加载已解压的扩展程序】 选项,选择刚解压的文件夹,即可安装成功。

proxy模式

img

auto switch模式

GFWList: https://github.com/FelisCatus/SwitchyOmega/wiki/GFWList

img

常见问题

https://proxy-switchyomega.com/faq/