rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmyum -y install fail2bansed -i “50s#ignoreip = 127.0.0.1/8#ignoreip = 127.0.0.1/8 113.108.131.85/24#” /etc/fail2ban/jail.confsed -i “59s#bantime = 600#bantime = 7200#” /etc/fail2ban/jail.confsed -i “63s#findtime = 600#findtime = 86400#” /etc/fail2ban/jail.confsed -i “129s/destemail = root@localhost/destemail = t891958201@126.com/” /etc/fail2ban/jail.confsed -i “216a enabled = true” /etc/fail2ban/jail.confsed -i “218a action = iptables[name=SSH, port=ssh, protocol=tcp]” /etc/fail2ban/jail.confsed -i ‘219a sendmail-whois[name=SSH, dest=t891958201@126.com, sender=root@localhost, sendername=”Fail2Ban”]’ /etc/fail2ban/jail.confsed -i ‘220s#^# #’ /etc/fail2ban/jail.confsed -i “220a bantime = 7200” /etc/fail2ban/jail.confsed -i “221a findtime = 86400” /etc/fail2ban/jail.confsed -i “222a maxretry = 5” /etc/fail2ban/jail.confsed -i “230a enabled = true” /etc/fail2ban/jail.confsed -i “232a action = iptables[name=ssh-ddos, port=ssh,sftp protocol=tcp,udp]” /etc/fail2ban/jail.confsed -i ‘233a sendmail-whois[name=SSH, dest=t1934844044@126.com, sender=ro免费云主机域名ot@localhost, sendername=”Fail2Ban”]’ /etc/fail2ban/jail.confsed -i ‘234s#^# #’ /etc/fail2ban/jail.confsed -i “234a bantime = 7200” /etc/fail2ban/jail.confsed -i “235a findtime = 86400” /etc/fail2ban/jail.confsed -i “236a maxretry = 5” /etc/fail2ban/jail.confservice fail2ban start
这篇文章主要介绍“Linux下apt-get命令参数有哪些”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“Linux下apt-get命令参数有哪些”文章能帮助大家解决问题。常用的APT命令参数:Linux的版本有:Dee…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。