Skip to content

Instantly share code, notes, and snippets.

View gaoxt's full-sized avatar
🍉
studying

simer gaoxt

🍉
studying
  • China
View GitHub Profile
@liantian-cn
liantian-cn / file
Last active October 26, 2022 18:51
shadowsocks iptables规则
# 新建一个无密码,无法登陆,没home的系统用户,就叫shadowsocks
adduser --system --disabled-password --disabled-login --no-create-home shadowsocks
# 修改 /etc/default/shadowsocks-libev
USER=shadowsocks
GROUP=nogroup
# 使用setcap,允许非root用户无法监听低位端口
apt-get install libcap2-bin
setcap 'cap_net_bind_service=+ep' /usr/bin/ss-server