shadowsocks-client-on-Ubuntu
shadowsocks-client-on-Ubuntu copied to clipboard
Ubuntu shadowsocks client
Install from PPA
Shadowsocks-libev is included in Ubuntu repository since 17.04.
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
Config
sudo vim /etc/shadowsocks-libev/config.json
{
"server":["$your_server", "127.0.0.1"],
"mode":"tcp_and_udp",
"server_port":$your_server_port,
"local_port":10800,
"password":"$your_password",
"timeout":600,
"method":"aes-256-gcm"
}
sudo ss-local -c /etc/shadowsocks-libev/config.json
or for default sudo vim /etc/default/shadowsocks-libev
sudo ss-local
start-up
sudo vim /etc/rc.local
add nohup ss-local >/dev/null 2>&1 & before exit 0
Config google chrome

Using proxy in terminal
(https://github.com/haad/proxychains)
- Install proxychains
sudo apt install proxychains tor
sudo service tor start
- Config proxychains
sudo vim /etc/proxychains.conf
Remove default ProxyList content Add "socks5 127.0.0.1 10800" to ProxyList
- Use proxychains
proxychains git clone xxxxxxxxx
Using proxy in WSL 2
- Add following commands to ~/.bashrc
host_ip=$(cat /etc/resolv.conf |grep "nameserver" |cut -f 2 -d " ")
export ALL_PROXY="http://$host_ip:10800"
source ~/.bashrc
Test if socks5 can connect google
curl www.google.com