rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
創(chuàng)新互聯(lián)自2013年起,是專業(yè)互聯(lián)網(wǎng)技術(shù)服務(wù)公司,擁有項(xiàng)目成都網(wǎng)站建設(shè)、成都網(wǎng)站制作網(wǎng)站策劃,項(xiàng)目實(shí)施與項(xiàng)目整合能力。我們以讓每一個(gè)夢(mèng)想脫穎而出為使命,1280元金林做網(wǎng)站,已為上家服務(wù),為金林各地企業(yè)和個(gè)人服務(wù),聯(lián)系電話:18982081108yum -y install fail2ban
sed -i "50s#ignoreip = 127.0.0.1/8#ignoreip = 127.0.0.1/8 113.108.131.85/24#" /etc/fail2ban/jail.conf
sed -i "59s#bantime = 600#bantime = 7200#" /etc/fail2ban/jail.conf
sed -i "63s#findtime = 600#findtime = 86400#" /etc/fail2ban/jail.conf
sed -i "129s/destemail = root@localhost/destemail = t891958201@126.com/" /etc/fail2ban/jail.conf
sed -i "216a enabled = true" /etc/fail2ban/jail.conf
sed -i "218a action = iptables[name=SSH, port=ssh, protocol=tcp]" /etc/fail2ban/jail.conf
sed -i '219a sendmail-whois[name=SSH, dest=t891958201@126.com, sender=root@localhost, sendername="Fail2Ban"]' /etc/fail2ban/jail.conf
sed -i '220s#^# #' /etc/fail2ban/jail.conf
sed -i "220a bantime = 7200" /etc/fail2ban/jail.conf
sed -i "221a findtime = 86400" /etc/fail2ban/jail.conf
sed -i "222a maxretry = 5" /etc/fail2ban/jail.conf
sed -i "230a enabled = true" /etc/fail2ban/jail.conf
sed -i "232a action = iptables[name=ssh-ddos, port=ssh,sftp protocol=tcp,udp]" /etc/fail2ban/jail.conf
sed -i '233a sendmail-whois[name=SSH, dest=t1934844044@126.com, sender=root@localhost, sendername="Fail2Ban"]' /etc/fail2ban/jail.conf
sed -i '234s#^# #' /etc/fail2ban/jail.conf
sed -i "234a bantime = 7200" /etc/fail2ban/jail.conf
sed -i "235a findtime = 86400" /etc/fail2ban/jail.conf
sed -i "236a maxretry = 5" /etc/fail2ban/jail.conf
service fail2ban start
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。