Install ShadowsocksR Clients on Linux(Ubuntu)

Start by installing on your Linux PC the prerequisite packages for ShadowsocksR:

sudo apt-get install git python-m2crypto libsodium18

We are going to install ShadowsocksR into our Downloads directory, so change into that directory if you need to:

cd ~/Downloads

Get ShadowsocksR from Github:

git clone -b manyuser https://github.com/shadowsocksrr/shadowsocksr.git

Note that long commands may appear on multiples lines on this web page, but you should enter them as a single command.

Edit your initial ShadowsocksR configuration file:

sudo vi /etc/shadowsocks.json

You can start with the template below. Of course, you must substitute in your values for the ShadowsocksR server IP address, port, password, encryption method, protocol, obfuscation method, and so on. Here is the template to start with:

{
"server":"12.34.56.78",
"server_ipv6":"::",
"server_port":8388,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"happy2017",
"timeout":300,
"udp_timeout":60,
"method":"aes-128-ctr",
"protocol":"auth_aes128_md5",
"protocol_param":"",
"obfs":"tls1.2_ticket_auth",
"obfs_param":"",
"fast_open":false,
"workers":1
}

Press <strong>Esc</strong> if you need to escape from insert or replace mode. Type <strong>:wq</strong> to write the file to disk and quit the editor.

Change into the directory for the single-user version of SSR:

cd shadowsocksr/shadowsocks

Start the ShadowsocksR client running as a daemon:

sudo python local.py -c /etc/shadowsocks.json -d start

Check that it is running okay:

sudo tail /var/log/shadowsocksr.log

If you are using Firefox, configure it to send traffic to ShadowsocksR on localhost port 1080. You do this under Preferences>Advanced>Network>Settings. Make sure you also proxy your DNS traffic.

If you are using Chrome instead of Firefox, install the extension Proxy SwitchyOmega by FelisCatus, and configure it for a SOCKS5 proxy server on localhost port 1080.

When you have finished using ShadowsocksR, set Firefox or Chrome back to using the system proxy settings, and stop the daemon:

sudo python local.py -c /etc/shadowsocks.json -d stop

If you subsequently add a new server, you will need to edit the file/etc/shadowsocks.json and restart the daemon.

reference: https://dcamero.azurewebsites.net/shadowsocksr.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注