Server-side Installation shadowsocks#
First install the shadowsocks on the server (such as VPS) and configure and enable it according to the Shadownsocks installation instructions.
Local Install shadowsocks#
On this machine, we also need a shadowsocks client. Usually installed as server-side, Shadowsocks provides sslocal command after installation.
Take my OpenSUSE 13.2 as an example, after installing Shadowsocks-libev, modify the/etc/shadowsocks/shadowsocks-libev-config.json file based on the server-side configuration, and then execute ss-local Command (note that the Libev version of the command has one more middle hyphen than the other version of the Shadowsocks command):
Ss-local-c/etc/shadowsocks/shadowsocks-libev-config.json
The results of the operation are as follows:
2014-11-12 09:49:44 info:initialize ciphers ... aes-256-cfb
2014-11-12 09:49:44 Info:server listening at Port 1080.
Indicates that the local shadowsocks server has been listening on the 127.0.0.1:1080.
Privoxy Forwarding #
The next step is to forward the Privoxy traffic to the local 1080 port.
Open the Privoxy config file and add the following rule:
forward-socks5/127.0.0.1:1080.
The specific meaning of the rules see SSH to build a SOCKS proxy server.