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

    POST to Delete MAC and mark vouchers expired

    Scheduled Pinned Locked Moved Captive Portal
    9 Posts 3 Posters 1.3k 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.
    • X
      xedlinux
      last edited by

      Hi there,

      I want to set up an auto-addition of mac after voucher first time authentication, and after authentication i will do another POST  to mark voucher as expired.

      Please help to provide what are the parameters needed as I cannot see it in the pfsensebook.

      Thank you in advance.

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

        Kinda waste of effort, no? Make the vouchers valid for a couple of minutes or so and move on.

        1 Reply Last reply Reply Quote 0
        • X
          xedlinux
          last edited by

          Hi doktornotor,

          This is to avoid sharing of vouchers at the same time. e.g. voucher is valid for 10 days, but after authentication I will automatically add the mac-address and then disable the voucher. But after 10 days, I need to do POST to remove the MAC-Address.

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

            @xedlinux:

            This is to avoid sharing of vouchers at the same time.

            Hmmm? This works for vouchers as well:

            1 Reply Last reply Reply Quote 0
            • X
              xedlinux
              last edited by

              @doktornotor:

              @xedlinux:

              This is to avoid sharing of vouchers at the same time.

              Hmmm? This works for vouchers as well:

              Just need to clarify, just to avoid sharing of vouchers NOT ON THE SAME TIME. so, disable concurrent log is not useful because when other person will not use the voucher, the voucher person can use. correct?

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

                @xedlinux:

                Just need to clarify, just to avoid sharing of vouchers NOT ON THE SAME TIME. so, disable concurrent log is not useful because when other person will not use the voucher, the voucher person can use. correct?

                I think you failed to clarify …..

                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
                • D
                  doktornotor Banned
                  last edited by

                  Yeah, it's the exact opposite of what originally requested.

                  1 Reply Last reply Reply Quote 0
                  • X
                    xedlinux
                    last edited by

                    @Gertjan:

                    @xedlinux:

                    Just need to clarify, just to avoid sharing of vouchers NOT ON THE SAME TIME. so, disable concurrent log is not useful because when other person will not use the voucher, the voucher person can use. correct?

                    I think you failed to clarify …..

                    sorry typo error:
                    Just need to clarify, just to avoid sharing of vouchers NOT ON THE SAME TIME. so, disable concurrent log is not useful because when other person will not use the voucher, the other person can use same voucher. correct?

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

                      Dude, dunno. If you make vouchers with short expiration as said above and add the MAC to passthrough, it's kinda hard to share it later because it's no longer valid.

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