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

    Voucher codes reappearing

    Scheduled Pinned Locked Moved Captive Portal
    4 Posts 3 Posters 2.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.
    • P
      Pontiac_CZ
      last edited by

      My friend, who uses Captive Portal for controling his children's time on internet, recently found out (or actually the kids did  ;) ) that many codes get generated again.

      He deletes a voucher after it has expired and then creates another one.  He reuses the voucher roll number. The new voucher has codes that are the same as were in the deleted one (eventhough they are of different length in minutes).

      Is this behavior intentional? What should he do so the codes are different next time? Change the magic number?  The official doc is not of much help in this area.

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

        My understanding, based on minimal experience, is that he should use a different roll number when generating a new set of vouchers. Keep the old vouchers file(s) which has the roll number in the file name so its easy to see what roll numbers have been used.

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

          For extra paranoia, re-generate the public/private key when re-making vouchers. This can be done by clicking "Generate" in the "Generate new key" text under each of those boxes. Clicking either "Generate" link will generate both.
          (That will invalidate all of the old vouchers… which is probably what they want)

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

            OK, thanks for replies. I was thinking about this option - to generate new keys.

            I already tried to change the magic number - I ended up with "Services : Captive portal : Vouchers" page all greyed out, "add voucher" icon (plus sign) disappeared, page reload didn't help, so warning to everyone, this is most likely not the way to go in RC1!

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