Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Need help setting up unifi on pfsense box

    Scheduled Pinned Locked Moved General pfSense Questions
    19 Posts 5 Posters 8.7k Views
    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.
    • dotdashD Offline
      dotdash
      last edited by

      8080 is the controller port. Can you connect to the unifi interface on 8443? Try sockstat -4 | grep 8443
      Look at the mongod.log for any issues. If the install is bodged up, nuke the entire unifi directory, reboot and re-run the script.

      1 Reply Last reply Reply Quote 0
      • S Offline
        shak2300
        last edited by

        @dotdash:

        8080 is the controller port. Can you connect to the unifi interface on 8443? Try sockstat -4 | grep 8443
        Look at the mongod.log for any issues. If the install is bodged up, nuke the entire unifi directory, reboot and re-run the script.

        this is what i get when i try socket 4

        here port 8443 web

        nub question how do i nuke the script lol

        1 Reply Last reply Reply Quote 0
        • S Offline
          shak2300
          last edited by

          so i went a alternative route, a route most you guy suggest and advised. i bug up my old linksys wireless G router and converted it into a dumb down switch and hook everything that way i ported the rule though the firewall , i end up using unifi software on my desktop to get it running. still need to figure out how to uninstall unifi controller off the box without wiping it

          1 Reply Last reply Reply Quote 0
          • johnpozJ Offline
            johnpoz LAYER 8 Global Moderator
            last edited by

            What do you mean nothing listening??  Clearly there is something listening both on tcp4 and 6 on 8080 in you routput.. Are you blind??

            If there was nothing listening you would get this

            [2.2.3-RELEASE][root@pfSense.local.lan]/root: netstat -an | grep 8080
            [2.2.3-RELEASE][root@pfSense.local.lan]/root:

            Why don't you just do a sockstat and not grep..  And look at it..

            So you didn't have a switch?  You put the ap on your lan?  You could put it on different segment and use layer 3 adoption.

            listen.png
            listen.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 25.07

            1 Reply Last reply Reply Quote 0
            • S Offline
              shak2300
              last edited by

              @johnpoz:

              What do you mean nothing listening??  Clearly there is something listening both on tcp4 and 6 on 8080 in you routput.. Are you blind??

              If there was nothing listening you would get this

              [2.2.3-RELEASE][root@pfSense.local.lan]/root: netstat -an | grep 8080
              [2.2.3-RELEASE][root@pfSense.local.lan]/root:

              Why don't you just do a sockstat and not grep..  And look at it..

              So you didn't have a switch?  You put the ap on your lan?  You could put it on different segment and use layer 3 adoption.

              I realize that after I posted, what i didn't see is what was running on it since i didn't do a sockstat, i'm not use to all these commands lines i'm just learning as i go along.

              No i didn't have a switch my original plan was to use 1 of the spare NIC and configure it for the AP  or bridge  it , but since that not a great idea. I grab a old router i had there a wireless G and converted it into a switch.  so this how it setup now

              fios –> pfsense (wan)(lan)( 3 NIC not used)
              lan -- switch port 1
              switch port 2 -- pc
              switch port 3 -- unifi AP

              the 3rd party software running on desktop, my only gripe is that my computer need to stay on because the AP need the software to run, want to offload the software onto something else so it not reliant on my pc to be running. since running it on the box isn't advice , you have any other ideas?

              1 Reply Last reply Reply Quote 0
              • johnpozJ Offline
                johnpoz LAYER 8 Global Moderator
                last edited by

                You don't need to run the software all the time.. Just to config, unless you are using portal or want stats on your clients, etc..  But the software does not have to be on in simple setup.  You run it setup your AP with ssids, etc..  And then can shut the software down if you want.

                And again you could just do layer 3 management of the AP where the controller is on different segment.  Shoot you could even run the controller in the cloud if you wanted on a vps or amazon instance, etc.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 25.07

                1 Reply Last reply Reply Quote 0
                • S Offline
                  shak2300
                  last edited by

                  @johnpoz:

                  You don't need to run the software all the time.. Just to config, unless you are using portal or want stats on your clients, etc..  But the software does not have to be on in simple setup.  You run it setup your AP with ssids, etc..  And then can shut the software down if you want.

                  And again you could just do layer 3 management of the AP where the controller is on different segment.  Shoot you could even run the controller in the cloud if you wanted on a vps or amazon instance, etc.

                  Ahh didn't know it wasn't require , i figure if i close the controller to the AP, it would not run.

                  you lost me there fora second could you give me a quick example of what you mean layer 3 management?

                  1 Reply Last reply Reply Quote 0
                  • dotdashD Offline
                    dotdash
                    last edited by

                    You don't need to bridge, you could run the wireless on a separate segment. People always think they need to bridge, and then someone always has to tell them bridging is the devil's work, and cat and dogs will start living together if they bridge two ports on pfSense. Now running UniFi on pfSense is satanic and you're better off buying something else to run it on, or running it in the cloud, or just not running it. I thought the topic was 'Need help setting up unifi on pfsense box', not 'Please talk me out of running unifi on pfSense'. Whatever, just trying to be helpful, not trying to compromise your soul with unholy knowledge. Here is the uninstall info.
                    Unifi lives under /usr/local/UniFi, so stop the controller-
                    service unifi.sh stop
                    then nuke the dir-
                    rm -R /usr/local/Unifi
                    The script installs a bunch of packages. They shouldn't hurt anything, but if you really want to clean up, you could 'pkg delete' them all.
                    Easiest way to clean everything up is to save the config, re-install, then restore the config.

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      shak2300
                      last edited by

                      @dotdash:

                      You don't need to bridge, you could run the wireless on a separate segment. People always think they need to bridge, and then someone always has to tell them bridging is the devil's work, and cat and dogs will start living together if they bridge two ports on pfSense. Now running UniFi on pfSense is satanic and you're better off buying something else to run it on, or running it in the cloud, or just not running it. I thought the topic was 'Need help setting up unifi on pfsense box', not 'Please talk me out of running unifi on pfSense'. Whatever, just trying to be helpful, not trying to compromise your soul with unholy knowledge. Here is the uninstall info.
                      Unifi lives under /usr/local/UniFi, so stop the controller-
                      service unifi.sh stop
                      then nuke the dir-
                      rm -R /usr/local/Unifi
                      The script installs a bunch of packages. They shouldn't hurt anything, but if you really want to clean up, you could 'pkg delete' them all.
                      Easiest way to clean everything up is to save the config, re-install, then restore the config.

                      I still want to get unifi controller running on the box, the more options i have the better , the reasoning i use the switch was just get this up and running to see if the hardware functioning without any hitches. i think need to reinstall the controller script and see if it runs. i find it silly that i have 5 nic on this box  and i cant make use of them. rather have pfsense manage everything

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ Offline
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        I provided a link to layer 3 setup.. Think of it this way with layer 2 the controller and the AP have to be on the same network.. They broadcast for each other.. With layer 3, you set an IP address on the AP and it talks to the controller that way.

                        https://community.ubnt.com/t5/UniFi-Controller-Installation/UniFi-Layer-3-methods-for-UAP-adoption-and-management/ta-p/455643

                        So did you figure out what was running on 8080 on your pfsense box?  Did you install some proxy, set the gui to use that port?  Out of the box pfsense shouldn't be listening on 8080 that I recall.. Mine sure isnt.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.8, 25.07

                        1 Reply Last reply Reply Quote 0
                        • ? This user is from outside of this forum
                          Guest
                          last edited by

                          @shak2300
                          For sure the money for that must be also there, I know that too, no problems for me if peoples setting up
                          much as they can do on their one appliance, but do you know perhaps now, why I am preffering the choice
                          to get an dedicated UniFi WLAN Controller on a small Box like an RaspBerry PI2 or Alix (APU) board?

                          I provided a link to layer 3 setup.. Think of it this way with layer 2 the controller and the AP have to be on the same network..

                          And if VLANs are in usage the controller must be a member of all VLANs!

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            shak2300
                            last edited by

                            @BlueKobold:

                            @shak2300
                            For sure the money for that must be also there, I know that too, no problems for me if peoples setting up
                            much as they can do on their one appliance, but do you know perhaps now, why I am preffering the choice
                            to get an dedicated UniFi WLAN Controller on a small Box like an RaspBerry PI2 or Alix (APU) board?

                            Enlightening me on your thought, i just feel it waste to get a complete alix baord just to run a unifi controller, when i'm already running a apu in this box

                            @johnpoz:

                            I provided a link to layer 3 setup.. Think of it this way with layer 2 the controller and the AP have to be on the same network.. They broadcast for each other.. With layer 3, you set an IP address on the AP and it talks to the controller that way.

                            https://community.ubnt.com/t5/UniFi-Controller-Installation/UniFi-Layer-3-methods-for-UAP-adoption-and-management/ta-p/455643

                            So did you figure out what was running on 8080 on your pfsense box?  Did you install some proxy, set the gui to use that port?  Out of the box pfsense shouldn't be listening on 8080 that I recall.. Mine sure isnt.

                            I will let you know my result when i get off from work

                            1 Reply Last reply Reply Quote 0
                            • M Offline
                              makesnosense
                              last edited by

                              @shak2300:

                              I will let you know my result when i get off from work

                              So what were the results if I may ask? ;)

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.