• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Setup Fail2Ban Log Analytics Graph With badips.com

By Abhishek Ghosh November 30, 2016 2:43 am Updated on November 30, 2016

Setup Fail2Ban Log Analytics Graph With badips.com

Advertisement

This guide with badips.com is kind of officially known reporting and analysis system. You already have one config file in Fail2Ban software by badips.com. We are showing the steps of how to setup Fail2Ban log analytics graph with badips.com and get a basic online Pie Chart analysis of the attackers. It is very easy and free service. You should use it because the reporting attackers IPs is important.

 

What I Need to Setup Fail2Ban Log Analytics Graph With badips.com?

 

You need to follow some kind like our guide iptables Basics : Chapter 2 to install and setup Fail2Ban. If you already running Fail2Ban properly, you need not to read it. The graph will look like this :

setup-fail2ban-log-analytics-graph-with-badips-com

 

Steps to Setup Fail2Ban Log Analytics Graph With badips.com

 

SSH to your server. If you run a cat on /etc/fail2ban/action.d/badips.conf file :

Advertisement

---

Vim
1
/etc/fail2ban/action.d/badips.conf

We were talking about this file at the beginning of this guide. If you followed our to setup Fail2Ban, it is just easy few steps. We gave the readers those configuration files which are on Github as gist for these two configuration files (they were too much easy, sufficient to the basic work) :

Vim
1
2
/etc/fail2ban/jail.conf
/etc/fail2ban/jail.local

In both files, we had this stanza :

Vim
1
2
3
4
5
6
7
[sshd]
 
enabled = true
port    = ssh
filter  = sshd
logpath  = /var/log/auth.log
maxretry = 3

You will modify the entries like this :

Vim
1
2
3
4
5
6
7
8
9
[sshd]
 
enabled = true
action = iptables-multiport
badips[category=ssh]
port    = ssh
filter  = sshd
logpath  = /var/log/auth.log
maxretry = 3

We added two lines in both file’s that [sshd] entry. Save the files. Now restart and check status of Fail2Ban :

Vim
1
2
sudo service fail2ban restart
systemctl status fail2ban.service

Service is running means everything is fine. Run a cat on Fail2Ban log :

Vim
1
cat /var/log/fail2ban.log

Copy any of the attacker’s IP, suppose it is 218.161.3.238 (change with whatever attacker IP you have in log).

Now run these two commands :

Vim
1
2
wget https://www.badips.com/add/ssh/218.161.3.238
wget -q -O – http://www.badips.com/get/key

At the end will get a response like this :

Vim
1
2
3
4
5
{
  "err":"",
  "suc":"new key 88f92219d8fc5b1b6ecc47e27b6c75b4d42f5c69 has been set.",
  "key":"88f92219d8fc5b1b6ecc47e27b6c75b4d42f5c69"
}

Instead of that 88f92219d8fc5b1b6ecc47e27b6c75b4d42f5c69 key, use your own key to compose this kind of URL :

Vim
1
https://www.badips.com/stats?key=88f92219d8fc5b1b6ecc47e27b6c75b4d42f5c69

This is a working example of Fail2Ban log analytics graph, open it on browser:

Vim
1
https://www.badips.com/stats?key=ea49a83bab4875db136bfb2c399a52ec5a6cf0f8

Tagged With fail2ban and analytics , fail2ban graph , log analytics how to graph
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Setup Fail2Ban Log Analytics Graph With badips.com

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Configure Apache With Fail2Ban on Ubuntu 18.04

    Here is How To Configure Apache With Fail2Ban on Ubuntu 18.04 to block more types of malicious attempts towards server to create a practical firewall.

  • SSH Commands For Fail2Ban Log Analysis

    This Guide SSH Commands For Fail2Ban Log Analysis Shows Some One Liner Complex Commands For Quick Analysis Works Like Grouping & Sorting IPs.

  • Fail2ban GeoIP Action Script to Block SSH by Country

    Instead of Using Bash Script to Restrict SSH by Countries Based on GeoIP, We Can Create Fail2ban GeoIP Action Script to Block SSH by Country.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy