UniFi Controller

Started by tillsense, July 08, 2017, 07:32:00 PM

Previous topic - Next topic
July 08, 2017, 07:32:00 PM Last Edit: July 08, 2017, 07:42:58 PM by tillsense
These guys have a sh script for FreeBSD.

https://github.com/gozoinks/unifi-pfsense

I'm going to look at this.

cheers till


The license looks good. Will somebody speak to the maintainer?


Thanks,
Franco

I´m following the project...what should I ask him?

If he would like to officially support OPNsense as well. :)


That would be... awsome  8)

Can this be used with opnsense as-is?

In general a good idea - but I'm bit sceptic regarding all the stuff that gets installed by this... thorough testing is mandantory, I'd say^^

Quote from: jwtoler on September 27, 2017, 09:50:32 PM
Can this be used with opnsense as-is?

no - it seems like this depends on java: https://github.com/gozoinks/unifi-pfsense/blob/master/rc.d/unifi.sh#L29

Java is not in the repository but you can get it from the FreeBSD repository.

Quote from: jwtoler on September 27, 2017, 09:50:32 PM
Can this be used with opnsense as-is?

I'd say yes - if You mean the mentioned script -  in case this script is working as expected...
Here's the list of all the additional stuff that gets installed:

103 AddPkg snappy
104 AddPkg python2
105 AddPkg v8
106 AddPkg mongodb
107 AddPkg unzip
108 AddPkg pcre
109 AddPkg alsa-lib
110 AddPkg freetype2
111 AddPkg fontconfig
112 AddPkg xproto
113 AddPkg kbproto
114 AddPkg libXdmcp
115 AddPkg libpthread-stubs
116 AddPkg libXau
117 AddPkg libxcb
118 AddPkg libICE
119 AddPkg libSM
120 AddPkg java-zoneinfo
121 AddPkg fixesproto
122 AddPkg xextproto
123 AddPkg inputproto
124 AddPkg libX11
125 AddPkg libXfixes
126 AddPkg libXext
127 AddPkg libXi
128 AddPkg libXt
129 AddPkg libfontenc
130 AddPkg mkfontscale
131 AddPkg mkfontdir
132 AddPkg dejavu
133 AddPkg recordproto
134 AddPkg libXtst
135 AddPkg renderproto
136 AddPkg libXrender
137 AddPkg javavmwrapper
138 AddPkg giflib
139 AddPkg openjdk8
140 AddPkg snappyjava


Ahmm - I just saw all this X - stuff...???  :o

October 29, 2017, 07:38:04 AM #12 Last Edit: October 29, 2017, 07:41:00 AM by Solaris17
I think I remember reading about this on reddit, really pumped about this!

ah nvm this is for running the controller on the router, I was reading about integration with the gateway protocols used in the controller itself.

So I have been trying to get the Unifi controller working but no luck so far. I've tried two different methods.

First I tried checking out the git repository and building the net-mngr/unifi5 package. After a few hours when it's compiling some java classes, the java runtime/compiler crashes so no dice.

Then I tried this script. The script works great! But same issue, the java runtime crashes. Has anyone successfully been able to get the Unifi controller to work on opnsense?

installing it on the command line with that install-unifi.sh script from the first link works just fine for me...

I am curious what will happen, when an upgrade of the UniFi software arrives (>5.6.29) - how that is handled - does it upgrade via the GUI (I mean the UniFi one)?

after a little trip on the UniFi USG 3-Port router I am going to come back home to OPNsense :)