Fail2ban: self-service modification of SSH ports and prevention of SSH brute force cracking

Fail2ban: self-service modification of SSH ports and prevention of SSH brute force cracking

Introduction to Fail2ban <br />This is a script that uses iptables and the open source program fail2ban to perform simple anti-exploitation on servers. SSH defense rules are provided by default.

Fail2ban function <br />Self-service modification of SSH port to customize the maximum time for banning IP (in hours)
Customize the number of SSH connection attempts to prevent brute force cracking with one click

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 all performed under SSH, as root user.
Installation of Fail2ban

 wget --no-check-certificate https://zhujiwiki.com/wp-content/uploads/2018/07/fail2ban.sh && bash fail2ban.sh 2>&1 | tee fail2ban.log

Uninstalling Fail2ban

 wget --no-check-certificate https://zhujiwiki.com/wp-content/uploads/2018/07/unfail2ban.sh && bash unfail2ban.sh

Precautions
After the installation is complete, please restart the SSH service and reconnect the SSH session. <br />If SSH cannot 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

<<:  Jingwen Internet 2GB memory 50Mbps bandwidth Japan Softbank KVM VPS review

>>:  Hostsolutions: €37/month/2*E5-2450L/32GB memory/1TB hard disk/20TB traffic/Romania

Recommend

DGCHost: $48/year/1GB memory/30GB SSD space/2TB traffic/KVM/Los Angeles

DGCHost, a Chinese hosting provider, has many neg...

CrownCloud: $17/year/256MB/20GB space/3000GB traffic/OpenVZ

CrownCloud is an Australian hosting company found...

vMbox: $20/year/2 cores/1GB memory/50GB space/2TB traffic/2 IP/OpenVZ/free SSL

VMBox is an American hosting company established ...

web-project: £5/month/4GB RAM/200GB storage/5TB bandwidth/Xen/OVH Germany

web-project, a British hosting provider, was esta...

SpeedyKVM 12GB RAM KVM VPS Seattle Review

Details: SpeedyKVM 2017 coupon code, minimum 1GB ...

3ix.org - $1 hosting

3ix.org started providing hosting services in 200...

VPSNodes: $5/month/4 cores/2G/100G SSD-Cache/3000G/OpenVZ

VPSNodes注冊于2009年,是美國主機商,數據中心位于美國達拉斯,最近推出的大容量SSD-C...