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.
    • 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
                                        • bigbearB
                                          bigbear @Dashrender
                                          last edited by bigbear

                                          This post is deleted!
                                          1 Reply Last reply Reply Quote 0
                                          • bigbearB
                                            bigbear @Dashrender
                                            last edited by

                                            @dashrender said in Accessing the FreePBX UCP:

                                            @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.

                                            And I guess my point to that is what if someone wants to log in from home and change the main menu schedule (this actually happened to me with a couple customers) and they have no phone at home so they cant log in to the admin interface.

                                            DashrenderD 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post