SS限制连接数

日期 2019-06-20 默认分类 作者 donny-展望未来 共0评论

基于公网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
人生在世,错别字在所难免,无需纠正。