Loading... # shadowsocks安装教程(重置版) ## 前言 经过了19/6/1的超大面积封ss的ip之后,我博客直接被封了3个多月才解封.之后就不太敢自己搭了,直接一句  `ssserver -d stop` 把ss停了,选择去买了justmysocks的ss用 结果... 我竟然流量用超了,那就只能自己搭一个了 这次选用的是搬瓦工的vps,系统为centos7_x86-64_bbr ## 安装 ### centos7从零开始(bwh) 1.先把系统更新一下 ``` yum -y upgrade ``` 2.安装epel源 ``` yum install epel-release ``` 3.安装python3 dnf git vim wget ``` yum install python3 dnf git vim wget ``` 4.安装libsodium ``` dnf install libsodium ``` 5.安装前置应用 ``` yum install gcc gettext autoconf libtool automake make pcre-devel asciidoc xmlto c-ares-devel libev-devel libsodium-devel mbedtls-devel -y ``` 6.安装shadowsocks-libev ``` wget https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/repo/epel-7/librehat-shadowsocks-epel-7.repo #这里wget下载的请参考https://copr.fedorainfracloud.org/coprs/librehat/shadowsocks/ 按自己系统选择,这里是centos7的 mv librehat-shadowsocks-epel-7.repo /etc/yum.repos.d/ yum update yum install shadowsocks-libev ``` 7.安装simple-obfs ``` sudo yum install gcc autoconf libtool automake make zlib-devel openssl-devel asciidoc xmlto libev-devel git clone https://github.com/shadowsocks/simple-obfs.git cd simple-obfs git submodule update --init --recursive ./autogen.sh ./configure && make sudo make install ``` 8.配置文件 ``` vim /etc/shadowsocks-libev/config.json #按i进入插入模式 #配置文件举例 { "server":"0.0.0.0", "server_port":your_server_port, #改成需要代理的端口 "password":"your_password", #自定义ss的密码 "timeout":300, "method":"aes-256-gcm", "plugin":"obfs-server", "plugin_opts":"obfs=http" } ``` 9.启动 ``` systemctl start shadowsocks-libev ``` 10.客户端设置 ``` #其他地方和以前的ss设置一样 #插件设置: plugin:obfs-local #插件 plugin_opts:obfs=http;obfs-host=www.163.com #插件选项 #这里的域名可以改成别的,比如baidu的,腾讯的... ``` Last modification:February 15, 2023 © Allow specification reprint Support Appreciate the author Like 如果觉得我的文章对你有用,请随意赞赏