Setup shadowsocks in Ubuntu 16.04 server [client & server]
1. Setup Server
*Install shadowsocks
> apt-get install shadowsocks
*Configure config file in /etc/shadowsocks/config.json
*Restart service
> sudo /etc/init.d/shadowsocks restart
2. Setup Client
*Install shadowsocks client
>sudo apt-get install python-pip
>sudo pip install shadowsocks
*Create config file in /etc/shadowsocks.conf.json
> sslocal -c /etc/shadowsocks.conf.json
*Install shadowsocks
> apt-get install shadowsocks
*Configure config file in /etc/shadowsocks/config.json
{
"server":"Your server ip",
"server_port":your server port,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"You Password",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 1
}
*Restart service
> sudo /etc/init.d/shadowsocks restart
2. Setup Client
*Install shadowsocks client
>sudo apt-get install python-pip
>sudo pip install shadowsocks
*Create config file in /etc/shadowsocks.conf.json
{
"server":"Your server ip",
"server_port":your server port,
"local_address":"your local ip",
"local_port":your local port,
"password":"Your password",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
*Start client> sslocal -c /etc/shadowsocks.conf.json
评论
发表评论