ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Accessing the FreePBX UCP

    IT Discussion
    freepbx 14 freepbx setup freepbx ucp
    7
    28
    5.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EddieJenningsE
      EddieJennings
      last edited by

      There has to be something I'm missing here. 😞 The end goal is for all users to access the UCP using HTTPS.

      Going through FreePBX it looks like the way to do this is to go into System Admin > Port Management and for UCP disable the Insecure port, and set the Secure Port to 4443.

      The next thing I have to consider is the firewall. I have the FreePBX NIC set to the Internet zone and have added the local office IP (/32) to the Trusted zone. The UCP service (Connectivity > Firewall > Services) is set to the default setting of accessible from the following zones: Internet, Local, Other.

      Here is the behavior I'm expecting:
      From both our local office and other networks I should be able to load https://freepbxhost.tld/ucp

      Here is what's happening:
      From the local office I can load https://freepbxhost.tld/ucp.
      From other networks I cannot load that URL, but I can load https://freepbxhost.tld:4443.

      So it seems like the firewall is allowing traffic as it should, else I wouldn't be able to load https://freepbxhost.tld:4443. So the problem is likely how /ucp is being handled; however, I can't understand why I can use that URL from my office but not from a remote network.

      coliverC 1 Reply Last reply Reply Quote 1
      • coliverC
        coliver @EddieJennings
        last edited by

        @eddiejennings said in Accessing the FreePBX UCP:

        Here is what's happening:
        From the local office I can load https://freepbxhost.tld/ucp.
        From other networks I cannot load that URL, but I can load https://freepbxhost.tld:4443.

        I'm confused. These are two different ports. One is using 443 and the other is using 4443. Did you allow port 443 to the FreePBX host from the other network?

        1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller
          last edited by

          I was wondering about that bit, too. Sounds like something is off with the port 443 forwarding.

          1 Reply Last reply Reply Quote 0
          • EddieJenningsE
            EddieJennings
            last edited by EddieJennings

            Which makes sense, as the web management service is configured (by default) to only be accessible by traffic from the "local" zone. So I would expect traffic to 443 to be dropped from other networks.
            0_1506094700637_3ae3a5fd-d3d3-444e-ae7b-24b989288095-image.png
            From this, it looks like there would be some intelligence within FreePBX that would foward requests for the UCP page to a port other than 443, as the default non-secure port is 81 instead of 80.

            scottalanmillerS 1 Reply Last reply Reply Quote 0
            • EddieJenningsE
              EddieJennings
              last edited by

              The solution might be train external users to go to https://freepbxhost.tld:4443, but methinks there has to be a way to be able to use https://freepbxhost.tld/ucp.

              1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @EddieJennings
                last edited by

                @eddiejennings said in Accessing the FreePBX UCP:

                Which makes sense, as the web management service is configured (by default) to only be accessible by traffic from the "local" zone. So I would expect traffic to 443 to be dropped from other networks.
                0_1506094700637_3ae3a5fd-d3d3-444e-ae7b-24b989288095-image.png
                From this, it looks like there would be some intelligence within FreePBX that would foward requests for the UCP page to a port other than 443, as the default non-secure port is 81 instead of 80.

                What about your outside firewall. Is there no firewall in front of the FreePBX box?

                1 Reply Last reply Reply Quote 0
                • EddieJenningsE
                  EddieJennings
                  last edited by

                  @scottalanmiller Only firewall between the FreePBX VM and the Internet would be whatever Vultr has on their network.

                  So I decided to take a step back, and restore the default configuration (setting the insecure port for UCP to Port 81 from the graphic above).

                  Afterward I did a few tests, and I believe this is the deal: /ucp must be serviced by port 80 / 443. Here is the default configuration from Connectivity > Firewall > Services.
                  0_1506098948727_e0b2b0b6-53a8-4850-9be1-db0cf9fe9613-image.png

                  With this configuration, the following URLs fail from the non-office network:
                  http://freepbxhost.tld
                  http://freepbxhost.tld/ucp

                  If I set the Web Management service to be accessible from both Internet and Local, then those two URLs load when requested from the non-office network. This tells me that /ucp is directed to port 80, since, as an additional test, I went back into the System Admin (first graphic of the thread), disabled the UCP port 81, and was still able to load the /ucp URL.

                  As a final test I re-enabled Port 81 for UCP in the System Admin module, kept Web Management accessible for Internet and Local in the Firewall module, and removed UCP from Internet accessibility in the Firewall module.

                  0_1506100115680_ee69a65f-d6ac-4d41-b1dc-cc0c136daaf6-image.png

                  From the non-office network, I was still able to access http://freepbxhost.tld/ucp. Just to see what would happen, I set the zone for UCP to reject (removing it from local and other) and was still able to access that URL.

                  I replicated the same steps using https settings and https URLs instead. I also replicated this from two different networks.

                  The conclusion seems to be that http(s)://freepbxhost.tld/ucp is serviced on port 80/443. The way to prevent external users from using the UCP over an insecure connection is by not adding Web Management to the Internet zone in the Firewall, but adding Web Management (Secure). Futher (and this seems wrong), it seems that the UCP service in the Firewall configuration doesn't seem affect accessing the UCP.

                  1 Reply Last reply Reply Quote 0
                  • DashrenderD
                    Dashrender
                    last edited by

                    I wonder the need for the UCP direct link? If you just load the default page with Web Management Secure enabled, there is a button on the page for UCP, click it and go. Why manage this separately, unless you really need to make the admin page unaccessable via the internet in general.

                    JaredBuschJ 1 Reply Last reply Reply Quote 1
                    • JaredBuschJ
                      JaredBusch @Dashrender
                      last edited by

                      @dashrender in absolutely zero locations do I have the admin page open the the public.

                      EddieJenningsE scottalanmillerS AdamFA DashrenderD 4 Replies Last reply Reply Quote 0
                      • EddieJenningsE
                        EddieJennings @JaredBusch
                        last edited by

                        @jaredbusch said in Accessing the FreePBX UCP:

                        @dashrender in absolutely zero locations do I have the admin page open the the public.

                        Do you have any instances where the UCP page is available to the public?

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller @JaredBusch
                          last edited by

                          @jaredbusch said in Accessing the FreePBX UCP:

                          @dashrender in absolutely zero locations do I have the admin page open the the public.

                          And when possible, not the UCP page either! 🙂

                          1 Reply Last reply Reply Quote 0
                          • EddieJenningsE
                            EddieJennings
                            last edited by

                            Alas, I don't see a way to not have my UCP page available, hence, the challenge 😛

                            1 Reply Last reply Reply Quote 0
                            • AdamFA
                              AdamF @JaredBusch
                              last edited by

                              @jaredbusch said in Accessing the FreePBX UCP:

                              @dashrender in absolutely zero locations do I have the admin page open the the public.

                              If I remember correctly, you have your home and office IP whitelisted on the pbxs. Right? Or some other “jump box” type solution...

                              JaredBuschJ 1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch @AdamF
                                last edited by

                                @fuznutz04 said in Accessing the FreePBX UCP:

                                @jaredbusch said in Accessing the FreePBX UCP:

                                @dashrender in absolutely zero locations do I have the admin page open the the public.

                                If I remember correctly, you have your home and office IP whitelisted on the pbxs. Right? Or some other “jump box” type solution...

                                And if I need random access, I log into the host system (Vultr) and then grant access to my current IP.

                                1 Reply Last reply Reply Quote 1
                                • DashrenderD
                                  Dashrender @JaredBusch
                                  last edited by

                                  @jaredbusch said in Accessing the FreePBX UCP:

                                  @dashrender in absolutely zero locations do I have the admin page open the the public.

                                  OK I over stated this - what I meant was - every location where a phone registers, it appears that have access to the admin page, and by extension the UCP page.

                                  I happen to be out of town now and I just checked. I don't have a phone registered here and I don't have access to either site.

                                  EddieJenningsE 1 Reply Last reply Reply Quote 0
                                  • EddieJenningsE
                                    EddieJennings @Dashrender
                                    last edited by

                                    @dashrender said in Accessing the FreePBX UCP:

                                    @jaredbusch said in Accessing the FreePBX UCP:

                                    @dashrender in absolutely zero locations do I have the admin page open the the public.

                                    OK I over stated this - what I meant was - every location where a phone registers, it appears that have access to the admin page, and by extension the UCP page.

                                    That should be the behavior; however, none of my test users can access the UCP page (they have phones registered at their homes). One of my tasks on Monday is setting up a phone at my own home to see if I, myself, can't access the UCP from my home network.

                                    1 Reply Last reply Reply Quote 0
                                    • DashrenderD
                                      Dashrender
                                      last edited by

                                      I will test the two office locations where I have phones tomorrow. This is a brand new install and they haven't used UCP yet.. not a lot of need at this point so we haven't tried it.

                                      1 Reply Last reply Reply Quote 0
                                      • bigbearB
                                        bigbear
                                        last edited by

                                        I am not sure why FreePBX doesnt allow the same responsive firewall setup for web based logins. If you have a phone and it authenticates from an IP, then the User CP is available on the public side.

                                        The idea of "I never expose XYZ portal to the public" isnt very helpful with a remote workforce. Imagine if you have to VPN to login to Office 365 or Gmail.

                                        I set the admin interface to a random port number and the default port 443 or 80 to the UCP, so no path is needed. I thought that was the standard way to do it. Where a phone has authenticated from a public IP so should the UCP then be accessible.

                                        I have moved entirely away from FreePBX so I have no instance to log in to ATM.

                                        DashrenderD 2 Replies Last reply Reply Quote 0
                                        • DashrenderD
                                          Dashrender @bigbear
                                          last edited by

                                          @bigbear said in Accessing the FreePBX UCP:

                                          I have moved entirely away from FreePBX so I have no instance to log in to ATM.

                                          What do you use now?

                                          bigbearB 1 Reply Last reply Reply Quote 0
                                          • DashrenderD
                                            Dashrender @bigbear
                                            last edited by

                                            @bigbear said in Accessing the FreePBX UCP:

                                            Where a phone has authenticated from a public IP so should the UCP then be accessible.

                                            Right, this is my understanding as well. But this not exposing UCP to the public. This is the responsive firewall only opening UCP for those IPs that have valid registered extensions.

                                            bigbearB 2 Replies Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post