sudo apt install -y shadowsocks
sudo gedit /lib/systemd/system/shadowsocks-local@.service
[Unit]
Description=Shadowsocks client mode service
Documentation=man:sslocal(1)
After=network-online.target
[Service]
Type=simple
User=nobody
Group=nogroup
ExecStart=/usr/bin/sslocal -q -c /etc/shadowsocks/%i.json
Restart=on-failure
RestartSec=30
[Install]
WantedBy=multi-user.target
mkdir /etc/shadowsocks/
sudo gedit /etc/shadowsocks/local.json
{
"server":"192.168.0.1",
"server_port":12345,
"local_address": "127.0.0.1",
"local_port":8044,
"password":"hahahahha",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false,
"workers": 1,
"prefer_ipv6": false
}
systemctl enable shadowsocks-local@local
systemctl start shadowsocks-local@local
systemctl status shadowsocks-local@local
git config --global http.proxy 'socks5://127.0.0.1:8044'