• 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 graph , log analytics how to graph

This Article Has Been Shared 354 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Security Concerns of Server Virtualization and Solutions

    Recent discovery of VENOM and related critical bugs in the Xen, KVM, and native QEMU virtual machine platforms again brought the topic Security Concerns of Server Virtualization in to lime light. VENOM was unknown, from Heartbleed, what we have learned is quite clear – frankly there is nothing to do with the unknown, undiscovered bugs […]

  • OCSP Stapling Nginx : Working Guide to Enable

    Many Users Complain of Not Working OCSP Stapling in Nginx or Facing Chain Error. Here is Working Step by Step Guide on OCSP Stapling Nginx.

  • Ubuntu 14.04 Nginx HTTP/2 Directive, NPN & ALPN

    Here is a Handy Guide For the New Users Around Ubuntu 14.04 Nginx HTTP/2 Directive, NPN & ALPN. Sadly, HTTP/2 is Not Exactly Easy Like SPDY.

  • Update letsencrypt to certbot (Ubuntu letsencrypt 16.04 Error Fix)

    Here Are Steps To Update letsencrypt to certbot For the Users Who Used Former Before letsencrypt Became certbot. It is Mandatory For Ubuntu.

  • Limit SSH Access By Country To Save From SSH Brute Force

    SSH Brute Force is Known Way to Blow Away. Here is How To Limit SSH Access By Country To Save From SSH Brute Force & Filter With Fail2Ban.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • 5 Sectors That Have Undergone Revamps in Digital Landscape February 24, 2021
  • What You Can Control with a Smartwatch and ESP32 February 23, 2021
  • What Does Data Cleansing Mean? February 21, 2021
  • How to Find the Right Software for Your Company February 20, 2021
  • What is Code Refactoring? February 19, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Setup Fail2Ban Log Analytics Graph With badips.com," in The Customize Windows, November 30, 2016, February 25, 2021, https://thecustomizewindows.com/2016/11/setup-fail2ban-log-analytics-graph-with-badips-com/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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