openmediavault-fail2ban first version now available for testing

  • Hi


    I also use GLPI at work and I just wrote the filter.


    Could you test ?


    fail2ban-regex /opt/glpi/files/_log/event.log /etc/fail2ban/filter.d/glpi.conf



    Add glpi.conf to /etc/fail2ban/filter.d


    Add to jail.conf

    Code
    [glpi]
    enabled  = true
    port     = http,https
    filter   = glpi
    logpath  = /opt/glpi/files/_log/event.log
    maxretry = 6
  • I did the test, but it failed to ban.
    It seem like it missing a date/time format in the filter.


    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    2 Mal editiert, zuletzt von tinh_x7 ()

  • Hi,
    I just wanted to suggest to include the 'whois' package to be installed with the fail2ban-plugin.


    When the mail-setting is set to 'action_mwl' The whois information cannot be retrieved & shown inside the email.


    Correct me if I'm wrong. I just encountered this issue personally.


    Thanks!

    OMV 5.x | Banana PI (M1) | Seafile Server
    OMV 4.x | ShuttlePC SH55J2

  • @sieben
    hi
    you are right, I will add fix in the next version.


    Envoyé de mon SM-N9005 en utilisant Tapatalk

  • Source Code


    • # Fail2Ban filter for glpi
    • #
    • [Definition]
    • failregex = ^.*$^(\[login\]).*?(Failed login for).*?(IP).<HOST>.*?
    • ignoreregex =
    • # DEV Notes:
    • #
    • # pattern :
    • # 2016-07-28 21:44:19 [@server]
    • # [login] 1: Failed login for user1 from IP ::ffff:70.33.11.00 2016-07-02 21:35:44 [@server]
    • #
    • # Author: Julien DARY



    Multiline is works with fail2ban verison < 0.9.0

  • Yes you need fail2ban >9.0 to works...
    For that you need to enable testing repo and install fail2ban 9.x


    Fail2ban 8.x don't support multilines filter, your GLPI log file is on 2 lines, filter need multilines, my GLPI filter don't work with fail2ban 8.x.


    I'am sorry



    Envoyé de mon SM-N9005 en utilisant Tapatalk

  • You're fine.
    I have testing repo enabled, but don't see the version 9.
    I only seeing openmediavault-fail2ban 1.1.5.
    Perhaps you're referring to the fail2ban from Github?

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

    Einmal editiert, zuletzt von tinh_x7 ()

  • On debian 8 Jessie


    Add into your /etc/apt/source.list
    Source : http://www.binarytides.com/enable-testing-repo-debian/

    Bash
    # Testing repository - main, contrib and non-free branches
    deb http://http.us.debian.org/debian testing main non-free contrib
    deb-src http://http.us.debian.org/debian testing main non-free contrib


  • No need, omv-fail2ban works with any fail2ban, you may have message about version of file jail.conf, take new version, old version is saved.


    Envoyé de mon SM-N9005 en utilisant Tapatalk

  • I added the repo, and try to download, but it said I already have the latest version.
    It isn't.


    Do I need to install this manually?

    Code
    ii  fail2ban                                                         0.8.6-3wheezy3                     all          ban hosts that cause multiple authentication errors
    ii  openmediavault-fail2ban                                          1.1.5

    OMV v5.0
    Asus Z97-A/3.1; i3-4370
    32GB RAM Corsair Vengeance Pro

  • Hum i have test and you can't install testing version of fail2ban without make a lot of change ...


    Test OMV3

  • @pr_bond i must do the installation from the fail2ban plugin on OMV3 manual? I have don't see the plugin in the plugin list.

    omv 6.x | 64 bit | omvextrasorg 6.x |
    used plugins: omv-extras | portainer | rsnapshot | antivirus
    used container: portainer/portainer | nextcloud/all-in-one | linuxserver/swag | paperless-ngx | jellyfin/jellyfin | lmscommunity/logitechmediaserver | adguard/adguardhome |

  • For OMV3 you need to install plugin manually, i would like to be in plugin list, what i need to do for it ?

    • Offizieller Beitrag

    i would like to be in plugin list, what i need to do for it ?

    I wasn't sure if it was ready to be in the repo or not. So, just let me know.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!