功能
Features
监控vps的流量, 并在流程超过限制的时候自动关闭对应的端口, 主要在通过有限流量的服务器翻墙的情况下使用
Monitoring vps traffic, and automatically close the corresponding port when the process exceeds the limit, mainly in the case of cross GFW through a limited traffic server
适用环境
Applicable environment
CentOS 7 x64
使用方式
How to use
1 yum -y install vnstat
2 vnstat -u -i eth0
3 添加定时任务 Add a timed task
(crontab -e) 1,21,41 * * * * python /root/FlowControl/txss.py
pnjgyl / vpsscript Goto Github PK
View Code? Open in Web Editor NEWThis project forked from peterpanformal/vpsscript
Script For VPS
License: GNU General Public License v3.0