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

Firewall blacklist deletion not working with subnet masks

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15.0.23, 16.0.21
    • Fix Version/s: None
    • Component/s: Firewall
    • Labels:
      None
    • Sprint:
      Sprint 74, Sprint 75
    • Bug Tracker:
      Customer Issue
    • ToDo:
    • Asterisk Version:
      16.25.3 and 16.24.1
    • Distro Version:
      16.0.21.3 and 15.0.23.11
    • Distro:
      FreePBX Distro

      Description

      When trying to delete an entry from Firewall blacklist that uses a subnet mask, we get this error:

      In DB_Helper.class.php line 145:

      Can't getConfig for null

       

      Here is how the error can be reproduced (Thanks to lgaetz!)

      
      # fwconsole firewall add blacklist 23.23.23.23
      Attempting to add '23.23.23.23' to Blacklist ... Success!
      # fwconsole firewall list blacklist
      All blacklisted entries.
              23.23.23.23
      # fwconsole firewall del blacklist 23.23.23.23
      Removed 23.23.23.23 from Blacklist.
      
      # fwconsole firewall add blacklist 23.23.23.0/24
      Attempting to add '23.23.23.0/24' to Blacklist ... Success!
      [root@uc-68246819 admin]# fwconsole firewall list blacklist
      All blacklisted entries.
              23.23.23.0/24
      # fwconsole firewall del blacklist 23.23.23.0/24
      
      In DB_Helper.class.php line 145:
      
        Can't getConfig for null
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fdanard Franck Danard [X] (Inactive)
                Reporter:
                nmartine nmartine
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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