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

    Problems with captiveportal after upgrading to 2.2

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    46 Posts 6 Posters 12.7k 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.
    • D
      doktornotor Banned
      last edited by

      Why on earth don't you go, reinstall the SAME box the backup came from and restore the configuration backup on the SAME box? Sorry, I don't have time for similar nonsense.

      1 Reply Last reply Reply Quote 0
      • K
        kejianshi
        last edited by

        Ahhhhh - Now I get you…

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          If you are trying to restore a backup from different hardware machines, you may need to fix interface name changes or configure network again after restore config reboot (via serial I guess on nano/cf installs)

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

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

            @doktornotor:

            Why on earth don't you go, reinstall the SAME box the backup came from and restore the configuration backup on the SAME box? Sorry, I don't have time for similar nonsense.

            because this box still work (only captive portal doesn't work) and if the installation goes bad I have no other box working! I prefer another machine to test.

            1 Reply Last reply Reply Quote 0
            • D
              doktornotor Banned
              last edited by

              Yes. Then figure out the self-induced issues yourself; interfaces not matching on different HW is really not any bug and completely off-topic on this thread.

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

                @doktornotor:

                Yes. Then figure out the self-induced issues yourself; interfaces not matching on different HW is really not any bug and completely off-topic on this thread.

                I'm very sorry! I've solved the problem! I've changed the two ethernet cards, reassociate the interfaces and now it works! the problem was in the broken ethernet cards!

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

                  @marcelloc:

                  If you are trying to restore a backup from different hardware machines, you may need to fix interface name changes or configure network again after restore config reboot (via serial I guess on nano/cf installs)

                  I know this. The problem was in the ethernet cards!  :( now solved!  :)

                  1 Reply Last reply Reply Quote 0
                  • D
                    doktornotor Banned
                    last edited by

                    On the original machine, or the other one? The CP works now after restoring the configuration backup?

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

                      @doktornotor:

                      On the original machine, or the other one? The CP works now after restoring the configuration backup?

                      on the other one. The original machine was upgraded to 2.2 and now it doesn't work captive portal on it yet.
                      When I will have time I'll reinstall pfsense on the original machine starting from a clean 2.2 to see if captive portal then works.

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

                        @markusxyz:

                        ….
                        When I will have time I'll reinstall pfsense on the original machine starting from a clean 2.2 to see if captive portal then works.

                        Worst case scenario:
                        Before importing that 'old 2.1.5 config file that won't give you a working portal interface on 2.2', do this:
                        Take a descent code editor (not MSWord  :)) and take out (copy elsewhere - in another file) everything between the
                        <captiveportal></captiveportal>
                        and the

                        Save.
                        Import the modified config file into pfSEnse 2.2.
                        Now, set up the captive portal by hand - it normally hasn't a huge parameter set.

                        Just look at the part you copied out so you know what to put in ;)

                        This always works.

                        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
                        • F
                          fakkundo
                          last edited by

                          Hello guys, new in the forum. Got exactly the same error after upgrading my box from v2.1.5 to v2.2.2. Captive portal isn't working, and many of the registered MAC pass thru users have reported access issues.

                          Has anyone been able to make it work?

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

                            Hi,

                            People that are asking question nearly never post back to say : "it works now, I did this … and this .... and after that all was well".
                            So, consider thatb if your question IS identical to the OP, you can find the soluition in this thread.

                            Btw: Don't say "me to same problem" because, if we want to answer, we have to read all the thread again. Which, of course, nobody does .... ;)
                            It's up to YOU to details a max. The quality of the reply will be at the same level.

                            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
                            • F
                              fakkundo
                              last edited by

                              @Gertjan:

                              Hi,

                              People that are asking question nearly never post back to say : "it works now, I did this … and this .... and after that all was well".
                              So, consider thatb if your question IS identical to the OP, you can find the soluition in this thread.

                              Btw: Don't say "me to same problem" because, if we want to answer, we have to read all the thread again. Which, of course, nobody does .... ;)
                              It's up to YOU to details a max. The quality of the reply will be at the same level.

                              Good morning Gertjan, I appreciate your feedback. I've been trying to submit a new post yesterday to not update an old post like this one, but for any reason the forum is showing some errors while posting the new topic. Here's the information:

                              Behaviour: Captive Portal is partially operational after the v2.2.2 upgrade.
                              Scenario: PfSense v2.1.5 upgraded to v2.2.2. Upgrade was correct, but unreacheable via SSH/Web GUI after this process. Unit came back after a manual power cycle. My current setup includes voucher rolls + MAC pass thru auth, both methods were working before the upgrade.
                              Checking for related topics, I've found the following error in the auth log:

                              XXX logportalauth[36185]: Zone: XXX_sales - Error during table XXX_sales creation. Error message: file is encrypted or is not a database
                              

                              Found a similar behaviour in an external website, indicating that stopping the CP service, saving/removing the captiveportalxxx.db file and starting the service again would fix the problem. I've completed this process but CP is still not working. Some MAC auth users have been reporting access issues, and voucher access seems to not work. Users goes back to captive portal auth page after insert their voucher.

                              Found this topic as well: https://forum.pfsense.org/index.php?topic=87864.0, no clear solution stated.

                              Any thoughts?

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

                                @fakkundo:

                                Any thoughts?

                                Yep.
                                I guess everything is said here https://forum.pfsense.org/index.php?topic=87864.0
                                In case of doubt: you have a pfSEnse config XML file, so re- install from scratch. One of the advantages will be : clean system files.

                                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
                                • F
                                  fakkundo
                                  last edited by

                                  @Gertjan:

                                  I guess everything is said here https://forum.pfsense.org/index.php?topic=87864.0
                                  In case of doubt: you have a pfSEnse config XML file, so re- install from scratch. One of the advantages will be : clean system files.

                                  Hello again Gertjan. I've installed v2.1.5 from the scratch, then restored the sys config using the xml file. Everything is working as a charm AGAIN, I'll keep this version for a while until the captive portal issues is solved.

                                  Thanks again for your assistance

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

                                    Captive portal issues solved ?
                                    Meanwhile I'm using 2.2.2 some time now. This is a graphical result (real time) : http://www.test-domaine.fr/munin/brit-hotel-fumel.net/pfsense.brit-hotel-fumel.net/portalusers.html
                                    These stats are from an hotel, so I do NOT control the device of our users (clients), neither what and how the clients are working with the portal.
                                    All I know is that pfSense + captive portal works.
                                    2.2.2 is rock solid.

                                    Btw : I consider 2.1.5 completely different to 2.2.2  - it's a major kernel upgrade, PHP upgrade ad much more.
                                    Something as a "in place" upgrade when it concerns BIG changes are not logic neither usable. Servers aren't upgraded like that, neither desktop PC's, neither firewall and routers.
                                    Going from 2.1.4 to 2.1.5, ok, but 2.1.5 to 2.2.2 is another ball game.
                                    Put the config file on a clean install - and it rocks.
                                    And yes, sometimes its needed to look into the config XML file (its just a clear, readable file) to do some final trimming.
                                    Stay away from packages if you can't stand the hard-core code parching.

                                    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
                                    • First post
                                      Last post
                                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.