Last update at :2024-06-03,Edit by888u
Fail2ban introduction: This is a script that uses iptables and the open source program fail2ban to simply prevent explosions on the server. It comes with SSH defense rules by default.
Fail2ban function can self-modify the SSH port, customize the time for the highest blocked IP (in hours), customize the number of SSH connection attempts, and complete SSH with one click to prevent brute force cracking
Fail2ban supported systems Centos 6/7 (x86/x64)Ubuntu 14.04 (x86/x64)Ubuntu 16.10 (x86/x64)Debian 7 (x86/x64)Debian 8 (x86/x64)
The following operations are performed under SSH and as root user. Installation of Fail2ban
wget --no-check-certificate https://us.com/wp-content/uploads/2018/07/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.logUninstalling Fail2ban
wget --no-check-certificate https://us.com/wp-content/uploads/2018/07/unfail2ban.sh && bash unfail2ban.shNotes: After the installation is complete, please restart the SSH service and reconnect to the SSH session. If SSH fails to connect, please check whether the SSH port has been modified. Please fill in the correct port after the modification to connect
via: https://github.com/FunctionClub/Fail2ban
Recommended site search: foreign virtual host, free virtual space, dual-line server hosting, Taiwan server rental, all-round virtual host, domain name registration price, domain name query network, free permanent virtual host registration center, Hong Kong vps host,
发表评论