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

    One week vouchers expire in less than 24h

    Scheduled Pinned Locked Moved Captive Portal
    25 Posts 10 Posters 5.6k 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.
    • N
      nothing
      last edited by

      I have a roll of vouchers with 10080 minutes. It happens almost every day - vouchers expire in less than one day after they have been activated. I guess it happens the moment the hard timeout hit (360mins).

      Is there any suggestions how to better log and trace vouchers lifespan?
      (pfs 2.1 64bit, carp cluster)

      Here is part of portal logs:

      Dec 11 09:10:06 logportalauth[27110]: FAILURE: f8336cb2, , x.x.x.x, voucher expired
      Dec 11 09:10:06 logportalauth[27110]: f8336cb2 (0/223) already used and expired
      Dec 10 17:23:58 logportalauth[43722]: TIMEOUT: f8336cb2
      Dec 10 16:15:07 logportalauth[47535]: Voucher login good for 10080 min.: f8336cb2

      Looks like it travels through the time :)

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

        That's how I have the vouchers configured:

        Untitled.png
        Untitled.png_thumb

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

          I have this very strainght problem too. There exists a ticket https://redmine.pfsense.org/issues/3369
          Is there a workaround until the issue is solved?

          pfs 2.1

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

            How many vouchers you have in the roll and how many of them are already used and expired?
            My roll was 255 vouchers big and the problems started when I used and expired 2/3 of the vouchers.

            Workaround is to delete the roll and issue new one.

            /the bug report is mine/

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

              I have 5000 vouchers in a roll.
              Sorry, but your workaround is not a really good solution for me.
              With 2.01, it's working.

              1 Reply Last reply Reply Quote 0
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                Can you try this on a 2.1.1 snapshot? ( See https://forum.pfsense.org/index.php/topic,71546.0.html ) – Several issues in CP and with Vouchers were fixed. If it's still broken on 2.1.1, update the ticket.

                Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                Need help fast? Netgate Global Support!

                Do not Chat/PM for help!

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

                  Cool :)
                  Thanks!

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

                    Sorry, it doesn't work OK.
                    The problem I observe now is that all activated (but not currently in use) vouchers expire as usual.

                    Disregard that, I've misunderstood the logic of expiration.

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

                      Hi Jimp,
                      I can't test it with 2.1.1 cause this system is in a productive area with a lot of users. On a testsystem with few users, I never have had this problem.
                      What files in 2.1.1 was changed? Can I put this files into 2.1 ?

                      Thx

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        @woni:

                        Hi Jimp,
                        I can't test it with 2.1.1 cause this system is in a productive area with a lot of users. On a testsystem with few users, I never have had this problem.
                        What files in 2.1.1 was changed? Can I put this files into 2.1 ?

                        Thx

                        I don't know the exact files/changes. There were a few that might be relevant and not all of them specifically in the CP code. 2.1.1 is nearly ready for release, it should be fine for production use at this stage.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

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

                          Has this problem been fixed? Because I'm still getting this error with 2.1.4..  :-\

                          1 Reply Last reply Reply Quote 0
                          • P
                            Paul6552
                            last edited by

                            Had the problem with 2.1, upgraded to 2.1.4 - the problem still exists

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

                              @Paul6552:

                              Had the problem with 2.1, upgraded to 2.1.4 - the problem still exists

                              You re-used vouchers created in 2.1 in 2.1.4 ?

                              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
                              • P
                                Paul6552
                                last edited by

                                re-used and new one from 2.1.4, with both the same problem

                                1 Reply Last reply Reply Quote 0
                                • perikoP
                                  periko
                                  last edited by

                                  Can u please give me details of the voucher, I'm working on this and haven't not seen problems like this, please some details to test.
                                  Running 2.1.4 x86.

                                  Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
                                  www.bajaopensolutions.com
                                  https://www.facebook.com/BajaOpenSolutions
                                  Quieres aprender PfSense, visita mi canal de youtube:
                                  https://www.youtube.com/c/PedroMorenoBOS

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

                                    I've got the same problem with 2.1.5.
                                    My idle time is 30 min, hard idle time is 45 min.

                                    Out of nowhere the system logs show the following while trying to login:
                                    Nov 11 16:06:53 pfsense logportalauth[21694]: FAILURE: xxxxxx, 00:19:66:37:aa:53, 192.168.123.199, voucher expired

                                    It started when about half of the vouchers were in use (the vouchers are intended to to be used for half a year). Now every used voucher is marked as used and expired.

                                    And there seems to be no solution at all - or is there?
                                    And is there a way to unmark a voucher as expired?

                                    Please help.

                                    1 Reply Last reply Reply Quote 0
                                    • DerelictD
                                      Derelict LAYER 8 Netgate
                                      last edited by

                                      Did you make a change to the voucher settings?  That can invalidate entire rolls.  Don't know if they'd show up as expired though.

                                      If you test one that's working from the same roll and test a known unused one in Status->Captive Portal->Zone->Test Vouchers do they report the same thing?

                                      Chattanooga, Tennessee, USA
                                      A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                      DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                      Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                                        Yes, I changed the hard idle time from 90 to 45 min. yesterday. The vouchers though were marked as used and expired today, some 10-15 h later. Thus I don't see a relation - up to now.

                                        The only valid vouchers are those, that were not unsed until now. Every used voucher is tested as used and expired.

                                        Is there a way to reactivate the expired vouchers? Otherwise, my users get angy with me.

                                        1 Reply Last reply Reply Quote 0
                                        • DerelictD
                                          Derelict LAYER 8 Netgate
                                          last edited by

                                          I thought changing the captive portal would not invalidate the voucher rolls.  Are you sure you didn't change anything on the Vouchers tab?

                                          Chattanooga, Tennessee, USA
                                          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                          Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                                            Things on the Voucher-Tab like "# of Roll Bits"
                                            and in "Services: Captive portal: Edit Voucher Rolls" are not touched.

                                            In the Services: Captive portal:XXX I changed "Hard timeout" from 90 to 45. It's all.

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