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

    Unused Vouchers shown as expired

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 4 Posters 1.0k 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.
    • L
      legacysl
      last edited by

      Hi all, was running 2.3.4 with a captive portal and vouchers of different time durations, 24 hours / 48 hours etc. Everything was working fine but unfortunate due to a power outage the config/install got corrupted and I had to to a fresh install and upload a backup of the config.

      Since 2.4.0 was released I decided to to trial that. The same voucher rolls where generated with the restoration of the config but since they where unmarked as used it should not have been an issue.

      Right now if I issue 10 vouchers at least 4 will come back as expired. I have upgraded to 2.4.2 and deleted the old rolls and generated new ones but the problem persists.

      Is there a known issue with 2.4.0 and above regarding vouchers?

      Thanks for the help.

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

        Hi,

        Do yo mean that when you create a new roll with for example 10 vouchers with a duration of 15 minutes, some of them are expired as soon as you create them ?

        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
        • L
          legacysl
          last edited by

          Its for use in a public wifi zone and w use vouchers to limit guest bandwidth usage, I have created 3 rolls of 1440 mins / 2880 mins & 4320 mins respectively. Each roll has 1023 vouchers.

          Say that we issue 10 guest one voucher each, 4-5 of them will get an error saying the voucher has expired.

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

            So take some and test them. What do you see? What does the portal auth log say?

            Going to need more information. When I have used vouchers they worked fine.

            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
            • GertjanG
              Gertjan
              last edited by

              Same here.
              Created 5 rolls  with 5 vouchers each - lasting 15 minutes each.
              Tested them all using the "voucher test page"
              They ware all valid, 15 minutes left.
              When using one, it timed out after 15 min.

              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
              • jimpJ
                jimp Rebel Alliance Developer Netgate
                last edited by

                I have not seen this personally but I have seen someone say it happened when they made custom shorter keys and made the bit counts lower so they could have shorted voucher codes. At some point there isn't enough randomness in the voucher codes and things get unpredictable, which is why the defaults are where they are.

                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
                • L
                  legacysl
                  last edited by

                  @Derelict:

                  So take some and test them. What do you see? What does the portal auth log say?

                  Going to need more information. When I have used vouchers they worked fine.

                  Log shows it as expired voucher no other information

                  1 Reply Last reply Reply Quote 0
                  • L
                    legacysl
                    last edited by

                    @jimp:

                    I have not seen this personally but I have seen someone say it happened when they made custom shorter keys and made the bit counts lower so they could have shorted voucher codes. At some point there isn't enough randomness in the voucher codes and things get unpredictable, which is why the defaults are where they are.

                    This maybe a possibility as I have made the key shorter but this only started to happen on 2.4.2

                    1 Reply Last reply Reply Quote 0
                    • L
                      legacysl
                      last edited by

                      So now its throwing out a new problem. So when a user connects who's token has expired the only get the confirmation page but it does not redirect or allow browsing.

                      2017-12-07.jpg_thumb
                      2017-12-07.jpg

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

                        When I used them I used a 31-bit RSA key for shorter codes and never saw a problem. I was not issuing "lots" of vouchers though. Rolls of 100 usually.

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