simple-tls一款shadowsocks的SIP003插件 作者: Hogwarts 发布于: 2022-12-01 更新于: 2022-12-01 分类: 默认分类 simple-tls是一款简单易用的TCP连接转发器,可为原始数据流加一层TLS。支持通过 gRPC 传输。与shadowsocks的其它SIP003插件:simple-obfs、cloak、v2ray-plugin、xray-plugin一样,配合shadowsocks使用,减少被墙的机率。 #一、Shadowsocks的安装 可安装Libev版亦可安装Rust版。本例以Rust版,并安装在`/usr/local/bin/`目录下为例。 #二、simple-tls的安装 Github地址:`https://github.com/IrineSistiana/simple-tls/releases` 本例以Linux-AMD64为例 wget https://github.com/IrineSistiana/simple-tls/releases/download/v0.8.0/simple-tls-linux-amd64.zip unzip simple-tls-linux-amd64.zip chmod +x simple-tls mv simple-tls /usr/local/bin/ #三、Shadowsocks的配置文件 vim /etc/shadowsocks-rust/config.json { "server":"0.0.0.0", "server_port":your port, "password":"your password", "timeout":300, "method":"aes-128-gcm", "fast_open":false, "nameserver":"8.8.8.8", "mode":"tcp_only", "plugin":"simple-tls", "plugin_opts":"s;cert=/path to/fullchain.cer;key=/path to/private.key" } #四、客户端的设置 ##4.1 以win端为例 **插件程序:**`simple-tls.exe` **插件选项:**`n=yourdomain.com` ##4.2 Openwrt端 Openwrt中的passwall的插件选项是写死的,没有此项。 可将支持的`/usr/bin/simple-obfs`插件删除,再 将**simple-tls** 改名为 **simple-obfs** 即可。参数参照4.1。 #五、不一定正确的点评 ##5.1 测速时在systemctl中查看Memory 甲骨文ARM 1G1H的机器 simple-tls很稳定,占用30M左右。CPU几乎不会持续100% xray-plugin占用在50M左右,下载能到400M。CPU持续100%。 systemctl和top中的Memory是有区别的,硬件方面更不懂了。在探针中几乎看不到内存的变化。CPU的占用是在探针中看到的。 ##5.2 速度方面 排除其它影响,手机端和PC端测速测试simple-tls比xray-plugin约慢50M差距。且xray-plugin应该没有跑满。 ##5.3 吐槽 TLS协议不一定比WS协议跑的快。 不知simple-tls和xray-plugin在指纹方面有无建树。 xray-plugin有些臃肿,要是删除无用代码,仅将WS功能保留再编译的话,是否可以缩小体积,运行起来更轻巧呢。 #六、参考 [Github官方地址](https://github.com/IrineSistiana/simple-tls "Github官方地址") 标签: shadowsocks, simple-tls