Difference between revisions of "SELinux,Fail2ban,Security Configurations"

From Rhomicom Wiki
Jump to navigation Jump to search
(Created page with "== FAIL2BAN == sudo yum -y install epel-release sudo yum -y install fail2ban sudo systemctl enable fail2ban [DEFAULT] # Ban hosts for one hour: bantime = 360000...")
 
m (Admin moved page Fail2ban to SELinux,Fail2ban,Security Configurations: Change of name)

Revision as of 12:02, 30 January 2021

FAIL2BAN

 sudo yum -y install epel-release
 sudo yum -y install fail2ban
 sudo systemctl enable fail2ban
 [DEFAULT]
 # Ban hosts for one hour:
 bantime = 360000
 findtime = 3600
 maxretry = 2
 # Override /etc/fail2ban/jail.d/00-firewalld.conf:
 banaction = iptables-multiport
 ignoreip = 127.0.0.1/8 154.160.2.127/8
 [sshd]
 enabled = true
 phpinfo,
 sudo systemctl restart fail2ban
 sudo fail2ban-client status
 sudo fail2ban-client status sshd
 sudo fail2ban-client status wordpress
 sudo fail2ban-client status wordpress2
 sudo fail2ban-client status wordpress3
 sudo fail2ban-client status http-get-post-dos