前幾天有個歐洲服務(wù)器的老客戶,說他的機(jī)器負(fù)載100%,我登錄上看到機(jī)器處于cc攻擊中,我用了下面的方便,將負(fù)載降下來
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 #拉黑時長設(shè)為10分鐘
Adminstrator Email: root@localhost #郵件對象設(shè)置為root@localhost(即關(guān)閉郵件發(fā)送)
Connections Allow: 100 #單個IP并發(fā)限制為100