搭建Shadowsocks手记
Install
Debian / Ubuntu:
apt-get install python-pip
pip install shadowsocksConfigure
Create a config file /etc/shadowsocks.json. Example:
{
"server":"my_server_ip",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}Then turn on fast open on your OS temporarily:
echo 3 > /proc/sys/net/ipv4/tcp_fastopenUsage
To run in the foreground:
ssserver -c /etc/shadowsocks.jsonTo run in the background:
ssserver -c /etc/shadowsocks.json -d start
ssserver -c /etc/shadowsocks.json -d stopTo check the log:
sudo less /var/log/shadowsocks.logEnd
To config /etc/rc.local
echo 3 > /proc/sys/net/ipv4/tcp_fastopen
ssserver -c /etc/shadowsocks.json -d startEnjoy it!
本文作者:Lyvnee
文章标题: 搭建Shadowsocks手记
本文地址:https://lyvnee.com/post-137.html
版权声明:本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。
本文地址:https://lyvnee.com/post-137.html
版权声明:本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

