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

firewall automatically puts any host in /etc/hosts to trusted zone

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 14, 15
    • Component/s: Firewall
    • Labels:
      None
    • Sprint:
      Sprint 41
    • ToDo:
    • Asterisk Version:
      13
    • Distro Version:
      Sangoma Linux release 7.8.2003 (Core) /FreePBX 15.0.16.75
    • Module Fix Version:

      Description

      I noticed hosts in the iptables fpbxhosts chain that I didn't put there. Investigation found that fpbx is automatically putting any hosts specified in /etc/hosts into fpbxhosts as trusted.

      Code looks to be at in /var/www/html/admin/modules/firewall/bin/getservices) but comments do not say why this is done:
      // Grab /etc/hosts and make sure that every host in there is added
      // to the trusted zone

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fdanard Franck Danard
                Reporter:
                nielsen nielsen
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

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