Protect Your Mining & Node Centos 7 Servers With Fail2Ban

Written by CC Freak on August 8, 2017
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

So you just received a bunch of credits from a VPS provider and you want to start mining or simply host a node. A simple way to protect your new Centos 7 mining and/or node server is to install Fail2ban to prevent SSH brute force attacks to guess your root password. This article isn’t about top notch security and I realize that you can disable root login and/or disable password login. This is for those that simply want decent security while still maintaining root login with password.

Lets get started:

yum -y install epel-release
yum -y install fail2ban
systemctl enable fail2ban
nano /etc/fail2ban/jail.local

and copy the following into jail.local

[DEFAULT]
# Ban hosts for one hour:
bantime = 3600
# Override /etc/fail2ban/jail.d/00-firewalld.conf:
banaction = iptables-multiport
[sshd]
enabled = true

Save and restart

systemctl restart fail2ban

Check status

fail2ban-client status

Your mining and/or node server now has a bit more security for whatever coin you are supporting! If you found this helpful, consider a donation!


  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Topic tags:

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments