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

SecuredSpeed: $3.5/month/1GB memory/35GB space/1TB traffic/OpenVZ/Los Angeles

SecuredSpeed, an American hosting provider, offic...

Godaddy .com/.net/.org domain renewal discount code (test valid)

I recently needed to renew my domain name, so I l...

Linode 1GB RAM KVM VPS Fremont Simple Review

Details : Linode: $5/month/1GB memory/20GB SSD sp...

vpsao: $3.5/year/96MB memory/5GB space/300GB traffic/OpenVZ/Los Angeles

vpsao, a Chinese hosting provider, now has 4 spec...

Aoyouhost 2 cores 2GB memory San Jose CN2 high defense KVM VPS review

Details : Aoyouhost: 68 yuan/month/2GB memory/40G...

NAMESILO domain name registration and transfer discount code

NAMESILO is a small but dynamic domain name regis...

[Black Friday] MLNL: Hong Kong KVM VPS, International Network

Hong Kong VPS, average cost performance KVM-512M ...

StableBox: $0.99/year/10GB storage/100GB traffic/1 site

Stablebox is an American hosting company founded ...

KTS24: A special VPS every day in December

KTS24 or GT-Host, haendler (same company, just di...

Hostient: $5/year/1GB space/10GB traffic/unlimited domain names can be bound

Previously introduced: https://zhujiwiki.com/sear...