connect shadowsocks server on ubuntu via ss-local

Server config

Set up your own shadowsocks server or found/buy one.
You should have a shadowsocks server with below informations:

  • server ip
  • server port
  • password
  • method

install

sudo apt-get install software-properties-common -y
sudo add-apt-repository ppa:max-c-lv/shadowsocks-libev -y
sudo apt-get update
sudo apt install shadowsocks-libev

configure

match to the server's info.

sudo vim /etc/shadowsocks-libev/config.json
{
    "server":"xx.xx.xx.xx", // server IP
    "server_port":8911,
    "local_port":1008, // local port
    "password":"jesuslove",
    "timeout":60,
    "method":"chacha20-ietf-poly1305"
}

run ss-local

sudo ss-local -c /etc/shadowsocks-libev/config.json

export socks proxy system wide

export http_proxy=socks5://127.0.0.1:1008
export https_proxy=socks5://127.0.0.1:1008

use proxy extension set for chrome/firefox browser

config your proxy extension in your browser to use socks5 proxy
127.0.0.1:1008

Subscribe to Post, Code and Quiet Time.

Don’t miss out on the latest issues. Sign up now to get access to the library of members-only issues.
jamie@example.com
Subscribe