Code Monkey home page Code Monkey logo

jail2ban's Introduction

Jail2Ban

Fail2ban version for windows in vb.net - inspired on wail2ban - json based -> jail :)

What project does

Jail2Ban locks IP addresses using Windows Firewall

How it works

  • Search for failed login attempts into the windows event log
  • Retrives the remote endpoint ip address from the log properties
  • Creates multiple firewall rules if not existing grouping banned IPs using the first two block of IPv4 address
  • Adds a locked IP address
  • Shows into the console the "jail" status

Improvements from base version

  • Added a json configuration file
  • Added sql server ban
  • Added simple feature for IIS W3Svc log inspection (now searches for php calls and 404 response)
  • Added the OverallThreshold parameter for banning IP which reach a total amount of fails ever

Future updates:

  • Handle different operating systems
  • Log every failed attempt (windows log does not retain a lot of data by default setting)
  • Add a redemption time
  • Create a webservice (maybe REST) to share between different server an IP reputation
  • Add into the webservice project a web page showing IP reputation and logs
  • Publish webservice for the community (source code of webservice will be shared in this repo)

jail2ban's People

Contributors

alebros avatar

Stargazers

 avatar  avatar Pablo avatar  avatar

Watchers

 avatar

Forkers

lerys

jail2ban's Issues

Checktime: wrong evaluation

When failed attempt count reaches the CheckCount value, the software checks if between the first time and the last time there is a different less than CheckTime minutes.

That is wrong, the software should check how many attempts are counted in the last CheckTime minutes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.