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

    Captive Portal Redirecting

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 8 Posters 6.5k 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.
    • C
      crackedatom
      last edited by

      I noticed a problem with redirecting users after they have logged in through the captive portal. I did see a ticket for it, but no answer.
      Once authenticated the redirection page just keeps looping/loading without going anywhere. I fixed this by replacing:

      document.location.href="{$my_redirurl}";
      

      in /usr/local/captiveportal/index.php with:

      location.href="{$my_redirurl}";
      

      (should be around line 368). Seems to be working fine now.
      Oh, this is in pfSense 1.2.2. Not sure if it's been fixed yet.

      1 Reply Last reply Reply Quote 0
      • X
        xin
        last edited by

        Hey, I have the exact same problem.

        I tried your solution, but it still loops me back to login page  :-\

        1 Reply Last reply Reply Quote 0
        • M
          mhochman
          last edited by

          I had this problem,  and found that every time i had the looping problem, the customer had some sort of virus/firewall software that did not like Redirects (usually ZoneAlarm)  turning off ZA would fix the problem.

          1 Reply Last reply Reply Quote 0
          • X
            xin
            last edited by

            I am currently on a pc that has no firewall on it. The portal just keeps redirecting me back.

            Clean install of pfsense. PC using XP, with no firewall/AV. The PC is directly on LAN interface of PFSense. tried the rule aswell. Doesn't Help…

            This is REALLY driving me crazy. I really want to use the captive portal.

            Please help
            :'( :'( :'( :'( :'(

            1 Reply Last reply Reply Quote 0
            • S
              starshuffle
              last edited by

              I am also experiencing this problem. I am currently using a different server for captive portal, but would really like to use pfsense for captive portal.

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

                Run this commands and post them here or through email:
                ipfw show
                ifconfig
                tcpdump -i $lan
                pfctl -vsr
                and the appropriate logs.

                1 Reply Last reply Reply Quote 0
                • X
                  xin
                  last edited by

                  after struggling for two hours it just started working and I cant reproduce the error.

                  ??? ??? ???

                  oh well, I appreciate your help

                  backing up this config!!

                  1 Reply Last reply Reply Quote 0
                  • H
                    hadi57
                    last edited by

                    hi

                    i slolved this problem by telling my clients to close the web page after loging in and open it again will proceed to where ever you want to go.

                    hadi57

                    1 Reply Last reply Reply Quote 0
                    • T
                      toxicrainpx
                      last edited by

                      Have the same problem. After the user authenticate in the capitve page it loops to the same page. But the user is authenticated already and he can access the internet. Do someone have the solution to this problem?

                      1 Reply Last reply Reply Quote 0
                      • G
                        geewhz01
                        last edited by

                        Did anyone ever find a good solution for this?  I have the same problem, and I've tried editing the index page but it doesn't affect it.  If after we authenticate we close and reopen the browser then it works.  But otherwise it keeps redirecting back to the portal page.

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