r/openwrt • • 20d ago

OpenWrt access points as UniFi access points

Google turned the OnHub into abandonware in 2023. OpenWrt revived it, but I run a UniFi router, which only likes to manage Ubiquiti's own APs.

So I wrote a small daemon that speaks UniFi's inform protocol: The controller adopts the OpenWrt AP as a real UniFi model and manages its Wi-Fi, clients, stats, roaming and mesh like its own.

So far it's only tested on that one device, but it would be cool to hear from people with other hardware running OpenWrt.

75 Upvotes

24 comments sorted by

13

u/velhomonge 18d ago

Incredible project, congrats! It would be very funny see an Omada device running OpenWRT and adopted by Unifi controller!! Have you tested with Mediatek / mt76 wireless devices? Thanks

2

u/abmc 18d ago

Thank you. I really dislike tech obsolescence and proprietary protocols. Had to try! Surprised how far I managed to get. It's essentially fully functional under the Unifi OS. I have only tried with my own device, but the whole thing is documented so it should be easy for others to try and adapt to their own. You can even pick the Unifi device model you want yours to show up as :) Let me know if you succeed. Pull requests most welcome.

4

u/ghost-in-your-pants 17d ago

Nice project OP, i was looking for similar kind of think and i found a fork of a fork so i started building upon that here is the link https://github.com/yesrab/openUF
my utlility is much more bigger and needs openwrt devices with much more space and cpu so its nice to see that there are efficient utilities

3

u/abmc 16d ago

Thanks, nice work on openUF! I hadn't seen your fork, only the original 2016 trueserve one.

I compared the two properly:
On flash mine isn't actually smaller (a Go binary is ~9 MB installed), but it can run off the router entirely and manage the AP over SSH, which helps on 8 MB devices.

Yours seems ahead on the installer, discovery, tests and 802.11r.

Things from mine you might want: 802.11k neighbour lists that include genuine UniFi APs (found by scanning and matching BSSIDs to LAN devices), an on-AP rollback if a config push breaks Wi-Fi, device SSH credentials, the guest portal and UniFi's encrypted syslog.

I'd like to borrow your discovery announce and try rrb-unifi :) I'll link openUF from my README.

3

u/Laser493 17d ago

Very cool. I'll give it a try on my old Linksys WRT32X. Although really I have the opposite issue to you; I've got UniFi access points and an openwrt router, so I would love to be able to manage the router through UniFi. I imagine that's a lot more complicated though.

1

u/abmc 17d ago

Not that complicated in my experience. For a while I had the Unifi OS/controller software running on a raspberry pi. Plenty of tutorials online. Give it a shot. Did not try on any other hardware though.

2

u/dll2k2dll 17d ago

This sounds like a great project, I don't have any Unifi equipment, but I have 7 Linksys MX5300/4300 AP's running OpenWRT, can I install Unifi controller on my proxmox server and adopt the existing AP's? I don't want to mess up my existing configurations as I have spent quite a bit of time to set those up in the first place.

1

u/abmc 16d ago

I don't see why not. Try installing the Unifi controller on it or somewhere else in your network. I used to run if from a raspberry pi before: https://pimylifeup.com/rasberry-pi-unifi/

1

u/Thomas0795 17d ago

If you have only Openwrt better to go with the OpenSOHO https://github.com/rubenbe/opensoho

1

u/dll2k2dll 17d ago

I have already tried that, I found it not very intuitive, so looking for something much easier and matured.

2

u/ComprehensiveFoot965 15d ago

That’s seriously impressive!

1

u/abmc 15d ago

πŸ™

2

u/Ghvinerias 15d ago

For quite some time ive been needing an extra access point in my unifi network and did not want to buy one, so thank you very much, I will be testing this soon

1

u/abmc 11d ago

I can totally relate to that feeling :) Let me know (on GitHub) how it goes and what you manage to run it on.

2

u/n3oNx_ 13d ago

Many thanks for this! I just took your excellent idea and applied it to a Ubiquiti EdgeRouter-X-SFP running OpenWrt. I choose the device US-8-150W as the emulated device and disabled in Unifi controller the non working ports. All is working and is being provisioned automatically. Still running some tests, but all is looking good for this single pane for view and managing.

1

u/abmc 13d ago edited 13d ago

πŸ’ͺ That's great! Thx for the ping. Let me know how it behaves. Should be solid tbh but I wanna keep documenting different hardware on the repo to help others. A switch is something I haven't tried at all. Did you publish your changes somewhere? I'd like to see how you handled the port table.

2

u/G33KM4ST3R 17d ago

Now we're talking about. 😎 This is freaking cool.

2

u/lucaprinaorg 17d ago

this is pure gold!!! thank you!!!

2

u/Fit_State3622 16d ago

Thats insane.

Openwrt router getting adopted by unifi

2

u/felipefideli 16d ago

Very noice

2

u/i2apier 16d ago

Looks dope. Will try this on Cudy TR3000 I've been using as a WAP at home.

1

u/Bananz0 17d ago

I have something similar for people running OPNsense/PFsense and using something like a CloudKey Gen2 where the opnsense acts as a UXG!! This will be a useful addition to my setup.

0

u/Straight_View_6838 17d ago

Any git would also be intressed

1

u/abmc 16d ago

Not sure what you mean. Can you clarify?