- 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.aclinto/etc/shadowsocks-libev/ - edit the env file:
/etc/default/shadowsocks-libevby adding-i enp0s3 --acl /etc/shadowsocks-libev/server_block_local.acltoDAEMON_ARGS=param- So it will become
DAEMON_ARGS="-i enp0s3 --acl /etc/shadowsocks-libev/server_block_local.acl" -i enp0s3mean bind toenp0s3interface 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.servicesystemctl start shadowsocks-libev.servicesystemctl 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 = 1into cat /etc/sysctl.conf and run sysctl --system
optional local tunnel not for server
local tunnel for WG if needed, run with
ss-tunnel -c this_config.json{ "server": "WG server IP", "server_port": <SS port>, "local_address": "0.0.0.0", "local_port": <local client port>, "password": "<server password>", "timeout": 300, "method": "chacha20-ietf-poly1305", "mode": "tcp_and_udp", "tunnel_address": "127.0.0.1:<WG server port>" }