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.
  • Наука та технологія

КОМЕНТАРІ • 55

  • @pareeshaykhan6719
    @pareeshaykhan6719 4 роки тому

    Such an easy and impressive description of ECP.... Thanks alot Nasir for sharing your knowledge with us.... Looking for more videos..... Thanks again....

  • @NetworkJoker
    @NetworkJoker 3 роки тому +1

    Thank you for a very detailed and simple manual

  • @nandorb999
    @nandorb999 Рік тому

    Many thanks for your video. Everything works well as shown.

  • @lucasandrade5571
    @lucasandrade5571 3 роки тому

    Thanks, u saved my week 😄
    I appllied this sample using Laravel, is Very muth simple.

  • @luisvelazco8441
    @luisvelazco8441 2 роки тому

    Gracias excelente video 👍

  • @jainpj
    @jainpj Рік тому

    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?

  • @loniloni6716
    @loniloni6716 9 місяців тому

    is this relevant today, those commands setting up the ubntu do they work now ?

  • @llucas181
    @llucas181 Рік тому

    thank you!

  • @jehonmorina
    @jehonmorina 2 місяці тому

    Cool but you should do something with name and email i was confused why he is not storing them in a database,

  • @ronaldosc86
    @ronaldosc86 Рік тому

    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.

    • @splashnetworksco
      @splashnetworksco  Рік тому

      It should work in this scenario. Please check the server's URL and authentication credentials that you've entered in your web server.

  • @usmanali-fe3gd
    @usmanali-fe3gd 3 роки тому

    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

    • @splashnetworksco
      @splashnetworksco  3 роки тому +1

      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

  • @migy220
    @migy220 2 роки тому

    Hi! i would like to ask what Unifi router model are you using?

  • @ninokum7984
    @ninokum7984 2 роки тому

    Hello Undefined index: id ?

  • @silverlopez4529
    @silverlopez4529 Рік тому

    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?

    • @splashnetworksco
      @splashnetworksco  Рік тому

      You mean a unifi.ui.com URL? No, I don't think so

    • @silverlopez4529
      @silverlopez4529 3 місяці тому

      @@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?

  • @miguelantonioaguirecebrero2147
    @miguelantonioaguirecebrero2147 3 роки тому

    Hi, what version of ubuntu did you use?

    • @splashnetworksco
      @splashnetworksco  2 роки тому

      I've tested this on Ubuntu 16/18/20, works on all of them

  • @jao100legal
    @jao100legal Рік тому

    How can I create a voucher and authorize it in PHP as it is done in the internal portal of Unifi?

    • @splashnetworksco
      @splashnetworksco  Рік тому

      I haven't done vouchers in an external portal so not sure about that.

  • @mateusscanto
    @mateusscanto 8 місяців тому

    Is it possible use a DB to armazenate the data from clients, aps etc?

  • @jibranhaider8484
    @jibranhaider8484 3 роки тому

    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.

    • @splashnetworksco
      @splashnetworksco  3 роки тому

      This code is specifically for Unifi, it won't work with pfSense

  • @ahiyaz
    @ahiyaz Рік тому +1

    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

    • @splashnetworksco
      @splashnetworksco  Рік тому

      Thanks. Your mobile should normally automatically take you back to the captive portal again where you can control the user experience

    • @ahiyaz
      @ahiyaz Рік тому

      @@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

    • @splashnetworksco
      @splashnetworksco  Рік тому

      @@ahiyaz There should be some method for unauthorizing a user based on their MAC address. You'll have to check API documentation

  • @alizaiter1905
    @alizaiter1905 Рік тому

    Hello, nice video
    Do i need unifi cloud to use or just the local controller will work for me ?
    Thank you

  • @GokeAruna
    @GokeAruna Рік тому

    Thank you Nasir for this good work. How can I use radius billing with this portal?

    • @splashnetworksco
      @splashnetworksco  Рік тому

      For RADIUS integration probably you'll need to use the Hotspot option instead of External Portal option

  • @rootpeetah5869
    @rootpeetah5869 Рік тому

    Hey.
    it brings an error "Undefined type 'UniFI_Api\client'".
    how do i solve the error, please?

    • @splashnetworksco
      @splashnetworksco  Рік тому

      Make sure you use composer and install the dependencies

  • @whatsuplelre
    @whatsuplelre Рік тому

    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...

    • @splashnetworksco
      @splashnetworksco  Рік тому

      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

  • @taxxab69
    @taxxab69 3 роки тому +2

    Beautiful (Y)
    Plz share how to extract data to excel or somthing for marketing or something else.

  • @andredesouza
    @andredesouza 10 місяців тому

    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.

    • @splashnetworksco
      @splashnetworksco  10 місяців тому

      The UI is changed. For captive portal you should switch to old UI.

    • @andredesouza
      @andredesouza 9 місяців тому

      @@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.

    • @loniloni6716
      @loniloni6716 9 місяців тому +1

      @@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😅

    • @loniloni6716
      @loniloni6716 9 місяців тому

      @@splashnetworkscohas changed but still doesn’t have a lot of options.

    • @andredesouza
      @andredesouza 9 місяців тому

      @@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.

  • @brightkanyange9633
    @brightkanyange9633 2 роки тому

    Nice video. Could you do one for django?

    • @splashnetworksco
      @splashnetworksco  2 роки тому +1

      I don't know Django unfortunately. But the concepts will be the same.

  • @itinformaticien4326
    @itinformaticien4326 3 роки тому

    Not Working !!!

    • @workdefini2370
      @workdefini2370 2 роки тому

      I try it work if follow the direction, but change IP to FQDN is nightmare

  • @jhodson1990
    @jhodson1990 Рік тому

    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

    • @splashnetworksco
      @splashnetworksco  Рік тому

      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.

    • @AlejandroRicoy
      @AlejandroRicoy Рік тому

      Kevin juega... de casualidad pudiste resolver esto. Ando haciendo pruebas para poder recabar más datos como nombre, correo. Saludos cordiales

    • @andredesouza
      @andredesouza 10 місяців тому

      @@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.