Giter Club home page Giter Club logo

piwik-loginfaillog's People

Contributors

lcuis avatar patrickbr avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

emstatay

piwik-loginfaillog's Issues

Another Noob Question

Hi Patrick,
I am feeling very stupid right now, so excuse the stupid question: Where is the output of your plugin logged?! I have a running Matomo instance and I have a running Fail2Ban instance. I understand the filters basically and I got something like this to work for Nextcloud. The only thing I am apparently missing is where to point my jail config.
Can you help here?

Thanks in advance!
Thorian93

Incompatibility with Piwik 4.1.X

On Piwik grater then 4.0.0 the plugin gets disabled. See plugin list and the message from Matomo System Check.

The plugin LoginFailLog could not be loaded as it has missing dependencies: LoginFailLog requires Piwik <4.0.0-b1. Please contact your Matomo administrator.

Please update the plugin, if possible, for the latest releases.

noob feedback

Hi Patrick,

Thanks for your work. Perhaps it is apparent to everyone else except me how to implement this.

  1. need to setup piwik to log to file ... (my default installation was logging to screen only)
  2. In case I manage to write (eventually) your entry to the "main" auth.log I have modified your php code to make a log entry "Failed PIWIK login ..." to distinguish piwik login failures from others in the same log.
  3. Created a matching filter to use that log entry ... and saved in /etc/fail2ban/filters.d/
  4. need to set up a jail with path to the piwik log ... (/path to piwik/tmp/logs/piwik.log) and using the above filter.
  5. restart fail2ban on your server

Tested by logging in (from another IP via VPN) - failed login recorded in log file and fail2ban blocking access for the IP ... YEAH!
If you like the these files for posting here or on your site - please let me know (not yet familiar with the proper etiquette here ... :-)

Greets/Jes

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.