把Orangepipc2打造成shadowsocks服务器
安装shadowsocks
sudo apt install shadowsocks-libev
会在
/usr/bin
下创建两个文件:ss-local
和ss-server
创建Shadowsocks配置文件 "/etc/shadowsocks-libev/jp1.json"
{ "server": "jp1-sta9.27dzn.site", "server_port": 17588, "local_address": "0.0.0.0", "local_port":1080, "password":"密码", "timeout":300, "method": "chacha20-ietf-poly1305", "fast_open": false, "workers": 1 }
启动服务
nohup ss-local -c /etc/shadowsocks-libev/jp1.json &
设置自动启动服务
sudo systemctl enable shadowsocks-libev-local@jp1.service sudo systemctl start shadowsocks-libev-local@jp1.service