基于公网IP 和端口做限制终端连接数量
GIT地址
地址:https://github.com/falseen/PySocket
、
master地址 https://github.com/falseen/PySocket/archive/master.zip
限制文件
文件:/PySocket-master/Limit_Clients/socket.py
ss基于 python
socket 需要放到 /usr/bin/ 下 或者 /etc/init.d/ (需要重启ss,具体不知道哪一个生效的,同公网下的局域网终端可以同时连接)
mkdir ip && cd ip && wget https://github.com/falseen/PySocket/archive/master.zip && unzip master.zip && cd PySocket-master/Limit_Clients/ && cp socket.py /usr/bin/ && cp socket.py /etc/init.d/ && /etc/init.d/shadowsocks restart
/etc/init.d/shadowsocks stop && cd /etc/init.d/ && rm -rf socket.py && /etc/init.d/shadowsocks start && /etc/init.d/shadowsocks status
/etc/init.d/shadowsocks stop && cd /usr/bin/ && rm -rf socket.py && /etc/init.d/shadowsocks start && /etc/init.d/shadowsocks status
本文由 donny-展望未来 创作,采用 知识共享署名4.0 国际许可协议进行许可