- install shadowsocks
aptitude install shadowsocks-libev
/apt-get -y install shadowsocks-libev
- edit
/etc/shadowsocks-libev/config.json
{
"server": "server IP or 0.0.0.0",
"server_port": <SS port>,
"password": "<server password>",
"timeout": 300,
"method": "chacha20-ietf-poly1305",
"mode": "tcp_and_udp"
}
the ACL:
- download the
https://raw.githubusercontent.com/shadowsocks/shadowsocks-libev/master/acl/server_block_local.acl
into/etc/shadowsocks-libev/
- edit the env file:
/etc/default/shadowsocks-libev
by adding-i enp0s3 --acl /etc/shadowsocks-libev/server_block_local.acl
toDAEMON_ARGS=
param- So it will become
DAEMON_ARGS="-i enp0s3 --acl /etc/shadowsocks-libev/server_block_local.acl"
-i enp0s3
mean bind toenp0s3
interface only (remove it if you don't need it / rename it to match yours)- if you have
Operation not permitted
, remove interface from this param
- So it will become
systemctl stop shadowsocks-libev.service
systemctl start shadowsocks-libev.service
systemctl status shadowsocks-libev.service
ss://method:password@hostname:port
- classic linkss://BASE64[method:password@hostname:port]#ss-server
- mobile app link or QR
add
net.ipv4.ip_forward = 1
net.ipv6.conf.all.forwarding = 1
into cat /etc/sysctl.conf
and run sysctl --system
https://shadowsocks.org/en/config/advanced.html