wget https://cloud-ips.saas-secure.com/dl/clips-setup-1.2.tar.gzNow uncompress the install scripts:
tar xfvz clips-setup-1.2.tar.gzThis creates a folder with the same name like archive. Change into the folder and start install script
cd clips-setup-1.2/ ./ install.shFirst the install script check the base reqirements and will inform you if something is missing or wrong.
Current database file is: `- /var/lib/fail2ban/fail2ban.sqlite3As result you get the path and name of the database file where fail2ban stores IP addresses. Now you have to stop fail2ban and then the database file can be removed.
service fail2ban stop * Stopping authentication failure monitor fail2ban [ OK ] rm /var/lib/fail2ban/fail2ban.sqlite3Now you can restart fail2ban and a new database will be created.
service fail2ban start * Starting authentication failure monitor fail2ban [ OK ]Now you can check if fail2bans IP's are not longer blocked.
iptables -L -n Chain INPUT (policy ACCEPT) target prot opt source destination f2b-blocklist tcp -- 0.0.0.0/0 0.0.0.0/0 Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Chain f2b-blocklist (1 references) target prot opt source destination RETURN all -- 0.0.0.0/0 0.0.0.0/0Now you can remove the Cloud-IPS daemon as well.
service clips stop Stopping CLIPS - Cloud based Intrusion Prevention System Client: clips.Now remove the autorun script and other files not longer needed.
rm /etc/clips.conf rm /etc/init.d/clips rm /etc/rc2.d/S06clips rm /etc/rc3.d/S06clips rm /etc/rc4.d/S06clips rm /etc/rc5.d/S06clips rm /usr/bin/clips-daemon.php rm /var/log/clips.log rm -r /var/lib/clipsThat's all.
fail2ban-client set sshd banip 1.0.1.0You can choose the IP address you want to use to simulate the attack.
wget https://github.com/fail2ban/fail2ban/archive/debian/0.9.3-1.zipNow uncompress fail2ban source:
unzip 0.9.3-1.zipThis ceates a new folder (name can differ). Change into and start install script:
cd fail2ban-debian-0.9.3-1/ python setup.py installAfter the installation is successfully done, copy the init scripts, to start fail2ban when your system boots:
cp files/debian-initd /etc/init.d/fail2ban update-rc.d fail2ban defaults service fail2ban startNow you can check if fail2ban is installed with a matching version:
fail2ban-client --v Fail2Ban v0.9.3 Copyright (c) 2004-2008 Cyril Jaquier, 2008- Fail2Ban Contributors Copyright of modifications held by their respective authors. Licensed under the GNU General Public License v2 (GPL). Written by Cyril JaquierThat's it!. Many contributions by Yaroslav O. Halchenko .