Shadowsocks: Install and config on CentOS-7

Shadowsocks is a fast tunnel proxy that helps bypass firewall limitations. For more details, you can refer to its homepage.

The installation of shadowsocks on CentOS-7 is pretty easy as we just need to run pip, as below:

# pip install shadowsocks

Then, a config file need to be created manually,

# cat > /etc/shadowsocks.json <<_END
{
"server": "0.0.0.0",
"server_port": 8388,
"password": "Dr0oPxs3ML3d0n”,
"method": "aes-256-cfb"
}
_END

A control script for shadowsocks with systemd needs to be manually created as well,

# cat >/etc/systemd/system/shadowsocks.service <<_END
[Unit]
Description=Shadowsocks

[Service]
TimeoutStartSec=0
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json

[Install]
WantedBy=multi-user.target
_END

Finally enable & restart the service as follows,

# systemctl enable shadowsocks
# systemctl start shadowsocks
Share Button

Leave a comment

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