How to add proxy support on the server side

1. install the shadowsocks server

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh

chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log
vim /etc/shadowsocks.json

2.  configure the server side

{
    "server":"0.0.0.0",
    "server_port":8388,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"pass",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open":false
}

3. expose the server_port to the remote host

4. related command

# start:
/etc/init.d/shadowsocks start

# stop: 
/etc/init.d/shadowsocks stop

# restart: 
/etc/init.d/shadowsocks restart

# status: 
/etc/init.d/shadowsocks status

 

Refer:

  1. Shadowsocks Python版一键安装脚本

Leave a Reply

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