How to Install and Configure Shadowsocks on Ubuntu

Server:

Install shadowsocks; both the server and the client need to have it installed

sudo apt-get install python-gevent python-pip
sudo pip install shadowsocks

Create a shadow.json with the following contents:

{
"server":"0.0.0.0",
"server_port":8388,
"local_port":10808,
"password":"The password should be the same as the client configuration",
"timeout":600,
"method":"aes-256-cfb"
}

Start the server:

ssserver -c shadow.json

The client’s shadow.json contents:

{
"server":"Server IP address",
"server_port":8388,
"local_port":10808,
"password":"The password should be the same as the server configuration",
"timeout":600,
"method":"aes-256-cfb"
}

Client startup command

sslocal -c shadow.json

This creates a socks5 proxy on local port 10808

Run the server in the background

nohup ssserver -c  shadow.json> log &

View background jobs: jobs

Stop it: fg %n

Start automatically on boot:

cd /etc/
sudo vim rc.local

Add a line:

/usr/local/bin/ssserver -c fullpath/shadow.json

Leave a Comment

Your email address will not be published. Required fields are marked *

中文 EN
🚀

RedGate VPN

免费节点太挤太慢?
升级高速稳定专线

立即体验 →

告别卡顿

RedGate VPN
全球高速节点

免费下载 →
Scroll to Top