Skip to content

Instantly share code, notes, and snippets.

@jzztf
Created December 25, 2018 09:17
Show Gist options
  • Save jzztf/45e89cae030726abdc50a03e0d1a54bd to your computer and use it in GitHub Desktop.
Save jzztf/45e89cae030726abdc50a03e0d1a54bd to your computer and use it in GitHub Desktop.
set shadowsocks client in command line

installation

$ pip install shadowsocs
$ whereis sslocal
$ vim ~/.config/shadowsocks.json
$ sslocal -c ~/.config/shadowsocks.json
# start in the background
$ sudo sslocal -c ~/.config/shadowsocks.json -d start
# check the service
$ sudo systemctl status rc-local.service
# the output like this
● rc-local.service - /etc/rc.local Compatibility
Loaded: loaded (/etc/systemd/system/rc-local.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2015-11-27 03:19:25 CST; 2min 39s ago
Process: 881 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/rc-local.service
├─ 887 watch -n 60 su matrix -c ibam
└─1112 /usr/bin/python /usr/local/bin/sslocal -c /etc/shadowsocks....

shadowsocks.json

{
"server":"server-ip",
"server_port":8000,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"your-password",
"timeout":600,
"method":"aes-256-cfb"
}
@qianxin12568
Copy link

a lot of methods not been sopported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment