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

    Captive portal wont re direct after authentication

    Scheduled Pinned Locked Moved Captive Portal
    21 Posts 6 Posters 13.9k 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.
    • E
      EOC2611P
      last edited by

      Hello everyones, does anybody knows if this bug has been fixed for the USB stick version of PFSense???
      I added some pictures with brief description, thanks.
      I was looking for a way to add every single pics on this single reply here, but i can't find a way to add a simple written description for each of the images, so, to avoid confusion i will have to add each picture on an additional reply…..sorryyyy

      This is what i am using right now:

      ![System Information.jpg](/public/imported_attachments/1/System Information.jpg)
      ![System Information.jpg_thumb](/public/imported_attachments/1/System Information.jpg_thumb)

      1 Reply Last reply Reply Quote 0
      • E
        EOC2611P
        last edited by

        Some of the options i selected for this test:

        WebInterfaceCP.jpg
        WebInterfaceCP.jpg_thumb

        1 Reply Last reply Reply Quote 0
        • E
          EOC2611P
          last edited by

          My browser homepage is set to "www.Google.com", notice what happen on the address bar on top, as soon as i open Internet Explorer

          CaptivePortal1.jpg
          CaptivePortal1.jpg_thumb

          1 Reply Last reply Reply Quote 0
          • E
            EOC2611P
            last edited by

            And this happen whan i click on "Continue", leaving both the username and password fields blank, the address on the bar changes but doesn't do anything else, if however after this strange "login" you go to insert a new web address there, it will goes to any websites without problems…

            CaptivePortal2.jpg
            CaptivePortal2.jpg_thumb

            1 Reply Last reply Reply Quote 0
            • E
              EOC2611P
              last edited by

              Ohh…and it works like a charm on the Iphone  ;D  so why not on a computer? ???

              Iphone.PNG
              Iphone.PNG_thumb

              1 Reply Last reply Reply Quote 0
              • E
                EOC2611P
                last edited by

                @jimp:

                Are you using the "disable MAC filtering" option on the captive portal?

                If so, and your CP clients and the pfSense LAN IP are on different subnets, you're probably hitting a known (and fixed in the repo) bug.
                https://github.com/bsdperimeter/pfsense/commit/4d41d0b8253fb21a28e466e654f1757576898364

                It was fixed after 2.0.1 though so you'll have to edit that in manually or gitsync to RELENG_2_0

                The BUG is still there, i swapped the "captiveportal.inc" with the one you suggested (https://raw.github.com/bsdperimeter/pfsense/4d41d0b8253fb21a28e466e654f1757576898364/etc/inc/captiveportal.inc) , but i am still experiencing the same problem addressed on this thread, i hope a new release correcting this issue will be coming out soon….

                1 Reply Last reply Reply Quote 0
                • W
                  wallabybob
                  last edited by

                  @EOC2611P:

                  Ohh…and it works like a charm on the Iphone  ;D  so why not on a computer? ???

                  Different browsers might be a factor. On the PC you could try Firefox, Chrome, Opera. I see something similar to what you described fairly frequently when I use Opera, rarely when I use Firefox.

                  1 Reply Last reply Reply Quote 0
                  • E
                    EOC2611P
                    last edited by

                    Thanks for the suggestion WallabyBob, unfortunately i know for a fact that almost 95% of the people having a computer around here (..but more likely 100%), are using IE.
                    Is this bug affecting all versions of PFSense? If not maybe i could try an older version or a different installation.
                    I did try a couple of works around suggested by users here, by editing the "captiveportal.inc", so far the only visible change is a new pop-up window asking if i want to continue to the captive portal or not, but the problem is still there…. :-\

                    1 Reply Last reply Reply Quote 0
                    • E
                      EOC2611P
                      last edited by

                      A curiosity:  i can't remember when did it happen timewise, but i clearly remember to have had to deal in the past with a captive portal which after login, redirected to a page that was instructing to write the webpage you wanted to access on the address bar to start browsing the internet….this bug in PFSense is having exactly that same problem, so, a similar work around could be used, until one day, hopefully, it will start working as it supposed to... :D

                      1 Reply Last reply Reply Quote 0
                      • E
                        eri--
                        last edited by

                        Try putting the redirection URL with full URI including http~~:// with the address.

                        Its mostly a browser issue since they do not redirect if you do not specify that.~~

                        1 Reply Last reply Reply Quote 0
                        • E
                          EOC2611P
                          last edited by

                          Thank you Ermal, adding the "http" solved the problem  ;D

                          It took me sometime to put in place your suggestion because everytime i boot my pc, all the PFSense settings resets to default, i didn't remember which configuration was the correct one so i wasn't able to make it works again….now i have taken a picture of the screen with the correct settings, so, next time i reboot the system it should be easier to put back the correct settings in place.
                          I am now going to try to create a custom "login" page, i don't really like the default page with the username and password fields, all i want is a simple button to get access to the internet, where the user will agree that by clicking there and accessing the net, he or she will take the entire responsabilities for his/her own action and the content he/she will get access too, plus some pictures/graphics here and there on the page to not to let it look as a complitely bland/dull page...i will report back soon, thank you all.

                          1 Reply Last reply Reply Quote 0
                          • GertjanG
                            Gertjan
                            last edited by

                            @EOC2611P:

                            It took me sometime to put in place your suggestion because everytime i boot my pc, all the PFSense settings resets to default, ….

                            Never saw that issue before.
                            pfSense stores it settings, so rebooting the box will not wipe out your changes ….

                            Btw: why should you reboot your pfSense box ?

                            No "help me" PM's please. Use the forum, the community will thank you.
                            Edit : and where are the logs ??

                            1 Reply Last reply Reply Quote 0
                            • E
                              EOC2611P
                              last edited by

                              Hi Gertjan, i reboot PFSense because when i am done with all my tests, i just switch off the pc,modem,routers, everything which i am not using….
                              My version of PFSense is installed on a usb stick, not directly on the pc hard drive.

                              1 Reply Last reply Reply Quote 0
                              • GertjanG
                                Gertjan
                                last edited by

                                Aha !
                                That's ok for testing purposes …
                                I advise to get get your hands on an old PC (5 - 7 years) - normally, you can get these for free these days.
                                Take out all the media stuff - add two NIC's (5 $ each).
                                Run pfSense from its own hard drive - run pfSense on a dedicated system.
                                To make things perfect, add a UPS - pfSense can talk with it to shut down properly if needed.

                                No "help me" PM's please. Use the forum, the community will thank you.
                                Edit : and where are the logs ??

                                1 Reply Last reply Reply Quote 0
                                • E
                                  EOC2611P
                                  last edited by

                                  @Gertjan:

                                  you can get these for free these days.

                                  Well, i am currently living in a somehow very stingy part of our planet right now, so, nothing is free around here, sometime people even try to charge me for what i own! however that's a bit off topic  :D
                                  I choose the USB stick installation after having seen all the reports of people loosing all their files once PFSense was installed, and guess what? everything i had on the stick got erased, however they were just duplicate files, so not a problem.
                                  I got another spare old pc right here, i was hoping of being able to operate both PFSense and my webserver on the same pc, but once PFSense is running, doesn't look like i can do anything else on that pc…. :-\

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