Ubiquiti Unifi External Captive Portal
Вставка
- Опубліковано 23 бер 2020
- Setting up a basic external captive portal with Ubiquiti Unifi.
Code used in this video: github.com/nasirhafeez/cappor...
Instructions for setting up server: github.com/nasirhafeez/cappor...
Website: splashnetworks.co
Please visit our website if you'd like to hire us for a project or consult with us. - Наука та технологія
Such an easy and impressive description of ECP.... Thanks alot Nasir for sharing your knowledge with us.... Looking for more videos..... Thanks again....
Thank you for a very detailed and simple manual
Many thanks for your video. Everything works well as shown.
Thanks, u saved my week 😄
I appllied this sample using Laravel, is Very muth simple.
Gracias excelente video 👍
Thanks for a detailed video. However I am unable to go past the captive portal pop up in both iPhone and Macbook. when I echo the responses of login, etc. its all blank. i can see in the Unifi controller that these guests are logged in but can't get past the captive portal popup. So I can't browse internet on a browser but internet is connected on the mac book, e.g., ssh on terminal works, any idea?
is this relevant today, those commands setting up the ubntu do they work now ?
thank you!
Cool but you should do something with name and email i was confused why he is not storing them in a database,
Hello friend, thank you for the tutorial. But I need some help.
My controller is in the cloud but the authentication server is local on the network.
The authentication screen appears, I enter the data and I am directed to the home page. However, this initial page does not enter (in its template it is the Google website) and in the controller in the list of devices it appears without authorization.
If I go and press the (+) Authorization it releases access.
Can you tell me where I could have gone wrong? I use Ubuntu 20.04 for the local server.
It should work in this scenario. Please check the server's URL and authentication credentials that you've entered in your web server.
you just saved my entire day. Please let me know that on 2:00 how did you configured the unifi controller on a sub domian. thanks
You can check out www.nasirhafeez.com/unifi-controller-on-ubuntu-18-with-lets-encrypt-ssl/ or community.ui.com/questions/UniFi-Installation-Scripts-or-UniFi-Easy-Update-Script-or-UniFi-Lets-Encrypt-or-UniFi-Easy-Encrypt-/ccbc7530-dd61-40a7-82ec-22b17f027776
Hi! i would like to ask what Unifi router model are you using?
Just a Unifi access point, UAP
Hello Undefined index: id ?
Hi Nasir! I have a question, Can I use the URL given from cloud access in the unifi ccontroller instead an URL from another domain?
You mean a unifi.ui.com URL? No, I don't think so
@@splashnetworksco Thank you for your response, I thought I had responded, but now I hope you can help me with another question, I have updated to version 8.1 and many features changed or disappeared, from what I see, Unifi intends for its users to use an ecosystem completely based on UniFi devices, I have had problems when trying to create my captive portal with these new versions. With your expertise, where apart from the official documentation could I find how to configure an external portal in the latest versions?
Hi, what version of ubuntu did you use?
I've tested this on Ubuntu 16/18/20, works on all of them
How can I create a voucher and authorize it in PHP as it is done in the internal portal of Unifi?
I haven't done vouchers in an external portal so not sure about that.
Is it possible use a DB to armazenate the data from clients, aps etc?
Yes we can save them into any DB like MySQL
Thanks for sharing this video. I am using pfsense firewall and 5 AP with controller in system. Does it work with pfsense Captiveportal & how? please guide.
This code is specifically for Unifi, it won't work with pfSense
Nasir,
thank you for this straightforward guide.
Installation and config work like a charm.
The only issue is that when a session duration is expired, it just unauthorizes the client and doesn't disconnect it from WLAN.
So the client stays connected to the WLAN but with no internet access.
This isn't a good experience for clients.
How could I force disconnection or, alternatively, open a landing page with a relevant message?
Thanks
Thanks. Your mobile should normally automatically take you back to the captive portal again where you can control the user experience
@@splashnetworksco hi, isnt there a way to send a disconnect (logout) command to the device or WAP? I've tried this command "$logout_results = $unifi_connection->logout();" but it didn't really help
@@ahiyaz There should be some method for unauthorizing a user based on their MAC address. You'll have to check API documentation
Hello, nice video
Do i need unifi cloud to use or just the local controller will work for me ?
Thank you
Local controller is also fine
Thank you Nasir for this good work. How can I use radius billing with this portal?
For RADIUS integration probably you'll need to use the Hotspot option instead of External Portal option
Hey.
it brings an error "Undefined type 'UniFI_Api\client'".
how do i solve the error, please?
Make sure you use composer and install the dependencies
Is it possible to create a database? I have around 500 students with student ID. I would register them all in my database and as validation they would have to put they Student ID number to connect but I need a verification if the Student ID is registered or not...
Yes it's possible. I'll be happy to create your custom portal. You can use this link to schedule a meeting with me:
calendly.com/nasirhafeez/meeting
Beautiful (Y)
Plz share how to extract data to excel or somthing for marketing or something else.
From MySQL you can export to CSV
There's something newer, I say in versions 7.5... unifi? I'm not getting it. Tell me something when I put the ip, I have not found, but the site is up? What do I have to do? I couldn't. Can you give a hint? Thanks for your work.
The UI is changed. For captive portal you should switch to old UI.
@@splashnetworksco Okay, I see. In this new version (v 7.4.162 (Windows) test), even changing to the old interface, we don't have the Guest Control tab, I didn't find it. But I was able to download a version (7.3.83) that is working. I was able to get it to work on windows 11. I still have some connection errors, but I think it must be because I couldn't install ssl, so when I try with IOS system, it doesn't work properly the redirect. Or it's due to not having a UniFi Security Gateway, which prevents me from releasing routes/ports.
@@andredesouzayes but they have security risks xss and stuff , i think Unifi is trying to Remove the Captive Portals they old unifi controller have vulnerabilities, the new version has captive portal but only with external captive portal, the internal captive portal with custom changes is not available anymore, i just have made my unifi controller public i puted ssl too (this was very hard to do ) in the controller because when clients were trying to connect to wifi it was showing no certificates and some security warnings, i have old version of unifi controller and just counting the days until i get hacked😅
@@splashnetworkscohas changed but still doesn’t have a lot of options.
@@loniloni6716 OK! I'm creating a portal in javascript, but I've encountered many difficulties. I think I'm going to give up on redirection. The IOS system only gives errors. On Android I have no problems. Now I decided to make the captive portal based on the vouchers created in the unifi controller. At least I can collect users' data, name and email before creating the voucher. Sorry for the English, I'm using Google Translate.
Nice video. Could you do one for django?
I don't know Django unfortunately. But the concepts will be the same.
Not Working !!!
I try it work if follow the direction, but change IP to FQDN is nightmare
apologies, i appreciate this video is a few years old but i found it extremely helpful and managed to get everything working, except the connecting.php. Once you enter your name and email address, the connecting.php loads as a white screen and nothing happens
Your captive portal needs to be able to communicate with your Unifi controller. For example, if your controller is hosted in a LAN behind NAT then you need to do port forwarding.
Kevin juega... de casualidad pudiste resolver esto. Ando haciendo pruebas para poder recabar más datos como nombre, correo. Saludos cordiales
@@splashnetworksco I guess my problem is just that, as it only appears not found on the captive portal page. Do I really need to have USG? or something like that? I have a message that port forwarding only post configure a gateway. I'm with the captive portal and unifcontrol on the same windows machine, was it supposed to work like this? I use version 7.5.176 of unifi.