Giter Club home page Giter Club logo

f2bread's People

Contributors

atmosx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

f2bread's Issues

Bans per day display infinite

Bans per day display 'Inf' when it's running for 1 day or the number is too small. Need to check it out (division by 0?).

[atma@comodino ~]$ sudo f2bread -i

Log file: '/var/log/fail2ban.log'

First entry: 2013-06-26 05:46:57
Last entry: 2013-06-26 10:36:53
Time frame: 04:49:56
Banned IPs: 4
Countries: 1
Protocol(s): [ssh-pf]
Bans per day: Inf #1

Adjust error message when root permissions are required

[user@server ]$ f2bread -i
/home/atma/.rvm/gems/ruby-2.0.0-p195/gems/f2bread-0.0.1/lib/f2bread.rb:35:in readlines': Permission denied - /var/log/fail2ban.log (Errno::EACCES) from /home/atma/.rvm/gems/ruby-2.0.0-p195/gems/f2bread-0.0.1/lib/f2bread.rb:35:ininitialize'
from /home/atma/.rvm/gems/ruby-2.0.0-p195/gems/f2bread-0.0.1/bin/f2bread:66:in new' from /home/atma/.rvm/gems/ruby-2.0.0-p195/gems/f2bread-0.0.1/bin/f2bread:66:in<top (required)>'
from /home/atma/.rvm/gems/ruby-2.0.0-p195/bin/f2bread:23:in load' from /home/atma/.rvm/gems/ruby-2.0.0-p195/bin/f2bread:23:in

'
from /home/atma/.rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in eval' from /home/atma/.rvm/gems/ruby-2.0.0-p195/bin/ruby_noexec_wrapper:14:in'

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.