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

    Captive Portal turned on but not working

    Scheduled Pinned Locked Moved Captive Portal
    31 Posts 14 Posters 25.2k 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.
    • GertjanG
      Gertjan
      last edited by

      @mrguitar:

      …just upgraded and when I click the captive portal section in the gui I get this:

      Parse error: syntax error, unexpected '[', expecting T_VARIABLE or '$' in /usr/local/www/services_captiveportal.php on line 515
      [/quote]

      Same here.
      The error on line 86 (index.php) disappeared - this one is new.
      (Just upgraded to 1.2.3)

      Edit : Humm, open  /usr/local/www/services_captiveportal.php in any descent editor like vi and goto line 515 - change this

      ….….

      for

      ….g['product_name']?>….

      :)

      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
      • M
        mrguitar
        last edited by

        Thanks Gertjan,

        I added the 'g' variable and the page loads now. However I'm into "business hours" so testing is a little difficult. I should have something to test in a couple of hours. One thing I've noticed is that I'm running the CP on a vlan, and the setup page has a link to view the current CP page. That link is pointing to LANIP:8000 shouldn't it be VLANIP:8000?

        The current setting would make sense for a test page, but it doesn't load.

        Again, I should be able to report something soon.
        Thanks,

        1 Reply Last reply Reply Quote 0
        • C
          cmb
          last edited by

          That problem with product_name is fixed now.

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

            Yep => https://rcs.pfsense.org/projects/pfsense/repos/mainline/commits/9c1e225932e60f71b3e28170016e9afa7048871e  ;)

            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
            • M
              mrguitar
              last edited by

              OK I finally had time to test this and the CP doesn't work w/ VLANs. :(
              Everything appears to be identical to 1.2.2.

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

                VLAN's & CP are working for me with "1.2.3-PRERELEASE-TESTING-VERSION built on Thu Feb 19 21:52:48 EST 2009".

                Slam

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

                  Slam, are you using Authentication on your CP? (if so what type)?

                  I've been trying to get this working for a little while with mixed success - but my success seems to vary depending on authentication type…

                  • As I've never had CP working and am fairly new to pfSense there is every chance its something on my network, or something I'd doing causing my issues, but its nice to hear it is working for someone - I'll upgrade asap.
                  1 Reply Last reply Reply Quote 0
                  • S
                    Slam
                    last edited by

                    I am using local authentication for CP at the moment, I will test authentication against freeradius thats sitting on a dmz'd vlan sometime later this week.

                    I recommend upgrading to pfs 1.2.3, it has fixed many of the issues Ive had in the past, hopefully it'll fix yours.

                    Slam

                    1 Reply Last reply Reply Quote 0
                    • C
                      cmb
                      last edited by

                      There are some issues with VLANs and CP under some specific circumstances - but I don't know what those circumstances are. Haven't had time to look at it, and I can't personally replicate it. It works fine for quite a few people, but there are at least a handful who it doesn't work for. It's not related to authentication settings or authenticated vs. non-authenticated, those who see this don't even get the portal screen, it just gets passed through.

                      1 Reply Last reply Reply Quote 0
                      • C
                        cconk01
                        last edited by

                        I had time to upgrade to 1.2.3-PRERELEASE-TESTING-VERSION built Feb 7 and am still having the problem. I started with a fresh config and built it from scratch to make sure it wasnt an issue with my backup…

                        Peter

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

                          I had time last night to setup and test 1.2.3-PRERELEASE-TESTING-VERSION built on Sat Mar 7 09:51:09 EST 2009 with Captive Portal on one of my VLANs - I'm seeing the same issue others have reported where its just allowing direct access to the internet…  I'll trying to do some more testing and report back with any additional info (just to make sure its not me).

                          Not sure if its any help, but...
                          I'm using the embedded version with Alix hardware. I'm using VLAN tags 3, 8 and 10 (CP is running on vlan tag 10).  They are all VLANs on the LAN interface and the LAN interface is
                          configured with a network / IP but its not really used. The rest of the VLAN functionality seem to be working correctly.

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

                            Provide this output:

                            ipfw list
                            /tmp/rules.debug
                            /conf/config.xml
                            sysctl net.inet.pfil
                            ifconfig

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

                              Having failed to get it working, I had to go for an alternative config, I'll try and set it up again and post the config. 
                              Unfortunately this is at a charity where I just help out in my own time so it may take me a few days to sort.

                              Thanks for your help.
                              Nick

                              1 Reply Last reply Reply Quote 0
                              • 0
                                0tt0
                                last edited by

                                What is the status on these issues?

                                I am planing on a major reconfiguration and will probably use only VLAN internally and need to know it's working. And I will also use captive portal and it will surely be on a VLAN interface.

                                Also, it's apparent reading through different areas in the forum that 1.2.2 seems to have broken a lot of stuff, I've seen a number of posts dealing with packages that no longer works after 1.2.2 upgrade etc and I have personally experienced (and reported) a number of problematic package issues on 1.2.2.

                                Cheers,

                                1 Reply Last reply Reply Quote 0
                                • C
                                  cconk01
                                  last edited by

                                  ermal -
                                  Where do I need to input this into to get the info you need the shell? Do I enter each line individually or all together as one? Sorry for the newb question….

                                  Peter

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    netmagi
                                    last edited by

                                    I'm having pretty much this same behavior, but in 1.2-RELEASE with no vlan's as stated in my thread from a few days ago.  Maybe there's something else at play here?

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

                                      Just give the output of the commands i have asked above.

                                      1 Reply Last reply Reply Quote 0
                                      • C
                                        CopSoft_MM
                                        last edited by

                                        The problem arises when you use the untagged interface at the same time as a tagged one… ipfw forwards the packet for the untagged interface witch contains the tagged interface.

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