Fail2ban for OMV 4 Arrakis

    • Official Post

    How can i install the Fail2ban plugin on Openmediavault 4 Arrakis?

    You can't. It hasn't been ported to OMV 4.x.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

    • Official Post

    when i can download fail2ban for OMV 4?

    When someone (other than me) ports it.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

    • Official Post

    Can you do something to make it faster so fail2ban is availabel for OMV 4?

    Um, no. I don't want to port it (never used fail2ban). You would have to bug the original author to port it.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Is there any alternative for fail2ban?

    Which services are you trying to protect? I use denyhosts to protect sshd, bu there is no plugin for it, you will have to install and configure it by hand.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

    • Official Post

    I think he developed the plugin.

    Just a warning... It has been over a year since he committed to the plugin.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • if you need help setting up fail2ban + automatic abuseIPDB report PM me.


    Just spend the last few days making it work ... on a Debian

    • Official Post

    Here is a testing version of the plugin for 4.x - http://omv-extras.org/testing/…ault-fail2ban_4.0_all.deb

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

    • Official Post

    Thanks for the test version. However - doesn't work
    Here the syslog

    Strange since it is running on my test system:


    Have you made any changes that will update the config file? I guess I can have it automatically do that on installation.


    But I still need people to tell me what is wrong with the config file it is generating since I don't use fail2ban.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • I'm still checking the plugin. One file has to be removed from the package:
    rm /etc/fail2ban/jail.d/defaults-debian.conf
    This causes the server to error out


    If I encounter anything else, I will post it here. Right now, it looks good though

  • One thing is fishy about the config.xml: Two jails have the same UUID. This causes one jail not to show up in the list (nginx-404).

    • Official Post

    One file has to be removed from the package:
    rm /etc/fail2ban/jail.d/defaults-debian.conf
    This causes the server to error out

    This is why I asked if you made any changes because it will remove the file - https://github.com/OpenMediaVa…vault/mkconf/fail2ban#L41
    New version will remove it at install.


    One thing is fishy about the config.xml: Two jails have the same UUID. This causes one jail not to show up in the list (nginx-404).

    This has actually always been this way looking at the code. I just fixed it and put a new version of the plugin in the same download location.

    omv 7.6.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.16 | compose 7.3.3 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!