Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-10072

Multiple errors in Fail2Ban jail.local

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: 12
    • Fix Version/s: None
    • Component/s: Fail2Ban
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      11
    • Distro Version:
      6.12.65-29
    • Distro:
      FreePBX Distro

      Description

      The jail.local file in /etc/fail2ban has multiple syntax errors resulting in duplicate chains and incorrect email reporting.

      Problem #1:
      The [pbx-gui] jail incorrectly defines the jail name in the action parameter as "SIP"

      action = iptables-allports[name=SIP, protocol=all]

      where that should be

      action = iptables-allports[name=HTTP, protocol=all]

      Problem #2
      All jails have as name=recidive in the sendmail action, where each should have the same name as the jail header.

      E.g. for the [asterisk-iptables] jail:

      sendmail[name=recidive, dest=<redacted>@<redacted>, sender=<redacted>@<redacted>]

      should be

      sendmail[name=asterisk, dest=<redacted>@<redacted>, sender=<redacted>@<redacted>]

      This file is generated by the SysAdmin Module, that is a commercial module so the code is not accessible to us.

      Please correct.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                GameGamer43 Bryan Walters
                Reporter:
                corradomella Corrado Mella
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.