前幾天有個歐洲服務器的老客戶,說他的機器負載100%,我登錄上看到機器處于cc攻擊中,我用了下面的方便,將負載降下來
wget -O install.sh http://blackflyman.qiniudn.com/cc2and1.sh && chmod +x install.sh && bash install.sh -i
============== 腳本說明 ===================
The Time interval : 20 s #每20s檢查一次系統(tǒng)請求情況
The Forbidden Time: 600 s #拉黑時長設為10分鐘
Adminstrator Email: root@localhost #郵件對象設置為root@localhost(即關閉郵件發(fā)送)
Connections Allow: 100 #單個IP并發(fā)限制為100