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

    How to install the Ubiquiti UniFi Controller on Debian 9.1

    IT Discussion
    unifi unifi controller ubnt ubiquiti install guide debian 9.1
    13
    73
    22.1k
    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.
    • dbeatoD
      dbeato @CCWTech
      last edited by

      @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

      @dbeato
      Thought I was okay, but can't log in using http, just https.

      It's causing a problem when I try to set the AP's to look to the vultr IP for the controller.

      0_1513553399882_Capture4.JPG

      set-inform http://ip-of-controller:8080/inform
      
      1 Reply Last reply Reply Quote 1
      • CCWTechC
        CCWTech
        last edited by

        I SSH'ed into the AP

        typed:
        mca-cli
        set-inform http://xx.xx.xx.xx:8080/inform

        Then

        info

        I get "Unable to resolve (http://unifi:8080/inform)"

        1 Reply Last reply Reply Quote 0
        • CCWTechC
          CCWTech
          last edited by

          Works after FW upgrade.

          dbeatoD 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato @CCWTech
            last edited by

            @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

            Works after FW upgrade.

            Strange

            1 Reply Last reply Reply Quote 1
            • FATeknollogeeF
              FATeknollogee
              last edited by

              Question:

              At a colo: I have a Cloud Key, I want to "move" the controller (off the CK) to a vm.
              I've followed @JaredBusch install guide

              What's the proper procedure to make this move in the right order?

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

                @fateknollogee said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                Question:

                At a colo: I have a Cloud Key, I want to "move" the controller (off the CK) to a vm.
                I've followed @JaredBusch install guide

                What's the proper procedure to make this move in the right order?

                1. Get everything on the same version
                2. Make a backupmfrom the cloud key and download it.
                3. Restore the backup to the VM.
                FATeknollogeeF 1 Reply Last reply Reply Quote 0
                • FATeknollogeeF
                  FATeknollogee @JaredBusch
                  last edited by

                  @jaredbusch Thx, will give that a go!

                  1 Reply Last reply Reply Quote 0
                  • FATeknollogeeF
                    FATeknollogee
                    last edited by

                    Thinking out loud here...
                    This Controller vm is behind a firewall (aka Unifi USG4)...is that a good strategy?

                    dbeatoD 1 Reply Last reply Reply Quote 0
                    • dbeatoD
                      dbeato @FATeknollogee
                      last edited by

                      @fateknollogee said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                      firewall (aka Unifi USG4)...is that a good strategy?

                      As long as you open the ports needed it should not be an issue.

                      1 Reply Last reply Reply Quote 1
                      • dbeatoD
                        dbeato
                        last edited by

                        Also take a look at this KB
                        https://help.ubnt.com/hc/en-us/articles/115002869188-UniFi-Migrating-Sites-with-Site-Export-Wizard

                        1 Reply Last reply Reply Quote 0
                        • jt1001001J
                          jt1001001
                          last edited by

                          Did this on Vultr last evening worked perfectly. Thanks @JaredBusch for your guide

                          1 Reply Last reply Reply Quote 0
                          • CCWTechC
                            CCWTech
                            last edited by

                            To update the Cloud Controller to the latest version on debian, is it just another

                            apt-get install unifi -y

                            zachary715Z 1 Reply Last reply Reply Quote 1
                            • zachary715Z
                              zachary715 @CCWTech
                              last edited by

                              @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                              To update the Cloud Controller to the latest version on debian, is it just another

                              apt-get install unifi -y

                              If you added the repo per this guide, then it should just be (sudo) apt update && (sudo) apt upgrade -y) like any other system update

                              CCWTechC 1 Reply Last reply Reply Quote 2
                              • CCWTechC
                                CCWTech @zachary715
                                last edited by

                                @zachary715 said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                @ccwtech said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                To update the Cloud Controller to the latest version on debian, is it just another

                                apt-get install unifi -y

                                If you added the repo per this guide, then it should just be (sudo) apt update && (sudo) apt upgrade -y) like any other system update

                                Ok, thanks.

                                1 Reply Last reply Reply Quote 0
                                • jt1001001J
                                  jt1001001
                                  last edited by

                                  Had top reinstall the controler today; had to do the following before it would work:

                                  apt install apt-transport-https
                                  
                                  
                                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @jt1001001
                                    last edited by

                                    @jt1001001 said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                    Had top reinstall the controler today; had to do the following before it would work:

                                    apt install apt-transport-https
                                    
                                    

                                    Because this is from the repo, I would submit a support email to Ubiqiuiti.

                                    1 Reply Last reply Reply Quote 1
                                    • V
                                      VoIP_n00b
                                      last edited by VoIP_n00b

                                      I want to put this behind a nginx reverse proxy. Do you think I could use this?

                                      JaredBuschJ 2 Replies Last reply Reply Quote 1
                                      • JaredBuschJ
                                        JaredBusch @VoIP_n00b
                                        last edited by

                                        @VoIP_n00b said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                        I want to put this behind a nginx reverse proxy. Do you think I could use this?

                                        My system is behind an Nginx Proxy.
                                        These ports are forward through straight to UniFi

                                        set firewall group port-group UniFi_tcp description 'UniFi Controller TCP Ports'
                                        set firewall group port-group UniFi_tcp port 8080
                                        set firewall group port-group UniFi_tcp port 8081
                                        set firewall group port-group UniFi_tcp port 8880
                                        set firewall group port-group UniFi_tcp port 8843
                                        set firewall group port-group UniFi_tcp port 27117
                                        set firewall group port-group UniFi_udp description 'UniFi Controller UDP Ports'
                                        set firewall group port-group UniFi_udp port 3478
                                        
                                        set service nat rule 3 description 'UniFi TCP'
                                        set service nat rule 3 destination address 207.244.223.13
                                        set service nat rule 3 destination group port-group UniFi_tcp
                                        set service nat rule 3 inbound-interface eth2
                                        set service nat rule 3 inside-address address 10.254.0.32
                                        set service nat rule 3 log disable
                                        set service nat rule 3 protocol tcp
                                        set service nat rule 3 type destination
                                        set service nat rule 4 description 'UniFi UDP'
                                        set service nat rule 4 destination address 207.244.223.13
                                        set service nat rule 4 destination group port-group UniFi_udp
                                        set service nat rule 4 inbound-interface eth2
                                        set service nat rule 4 inside-address address 10.254.0.32
                                        set service nat rule 4 log disable
                                        set service nat rule 4 protocol udp
                                        set service nat rule 4 type destination
                                        

                                        This has all been setup for so long it is not even funny. I really should redo everything from scratch.

                                        This guide may be from 2017, but the original system was running on a Windows server behind the same proxy, in my colo space, prior to being moved to this.

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

                                          @VoIP_n00b said in How to install the Ubiquiti UniFi Controller on Debian 9.1:

                                          I want to put this behind a nginx reverse proxy. Do you think I could use this?

                                          Wait. No that guide is for UNMS not UniFi. Those are different solutions with different needs. So I have no idea what UniFi would do with that.

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

                                            @VoIP_n00b when I did my original UNMS install I used these options and thus needed nothing special in my Nginx config. ALso I don't want unencrypted connections, so I do not forward anything on 8080.

                                            sudo bash /tmp/unms_install.sh  --behind-reverse-proxy --public-https-port 443 --http-port 8080 --https-port 443
                                            
                                            Alex JonesA 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post