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

    Prb of 1 voucher used by multiple users

    Scheduled Pinned Locked Moved Captive Portal
    10 Posts 4 Posters 925 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
      livirix
      last edited by

      hey

      can you help me please i have install pfsense and even in 2.3 or the last ver 2.4.x when i activate vouchers
      i saw that one voucher can be used by multiple users and i want to use one voucher for one device  and thanks

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

        Hi,
        This one is checked ?

        checked.PNG
        checked.PNG_thumb

        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
          livirix
          last edited by

          first thank  you a lot for replying me
          because the solution it's very important for me

          i will explain more :
          even with a new installation and with the default website page of pfsense the prb happen
          if i don't check the concurence :
          -if i write a wrong voucher give me invalid code (it's ok)
          -if i write a correct voucher it give me access to the internet (it's ok) but if i give the same voucher to another it give him access to the internet like all people can connect with one voucher

          -if the concurrence checked
          -i write the correct voucher it give me access to the internet and when i give it to another he can get connect but my device disconnect like the portal accept the last device connect with the voucher ( i make it as a temporary solution )

          before someone help me because what i want is one voucher for every  device

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

            Thus, checking

            Concurrent user logins
            Disable Concurrent user logins If enabled only the most recent login per username will be active. Subsequent logins will cause machines previously logged in with the same username to be disconnected.

            will do the job.

            Explain to the users of your vouchers that they should consider voucher codes as credit cards - passports or very personal private info.
            And guess what, they even do not really need to understand what you tell them : as soon as they communicate their voucher code to some one else, and the code is used by this other person, they will lose the usage of this voucher, and they are disconnected. Good for them, they shouldn't share vouchers. You can see what happens, btw, and 'punish' them (by not given a new voucher).

            On the other hand, users (not kids, adults) often have more then one device. They can use the voucher code on one device, like a smartphone, and then on another device like a laptop. All this with one voucher - and only one device will be connected at all times.

            Btw : what you want is locking the voucher code down to one device, and not have it muted to another device afterwards if it is used again on another device.
            This is possible, and needs some rewriting here : /etc/inc/captiveportal.inc - look for the function portal_allow(…). (completely non-supported of course  ;))

            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
              livirix
              last edited by

              thanks for your help
              but i can not force people to private their vouchers or to hide it

              -by default pfsense don't accept this option ? ( to let two person access with the same voucher ) ?!!

              • and what you want to mean by need some write in /etc/…... ( completely non-support ...) ?!!

              because i need to activate one voucher for one device for one time and eney other device can't get connect with the same voucher

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

                @livirix:

                thanks for your help
                but i can not force people to private their vouchers or to hide it

                Explain them vouchers are for private use. Like credit cards, passports and cash money. If they loose them, well …. they can't use them anymore.

                @livirix:

                -by default pfsense don't accept this option ? ( to let two person access with the same voucher ) ?!!

                Exact, it's one user at the time, or many users.

                @livirix:

                • and what you want to mean by need some write in /etc/…... ( completely non-support ...) ?!!
                  because i need to activate one voucher for one device for one time and eney other device can't get connect with the same voucher

                Never mind.
                What you asked doesn't exist. Maybe you should drop in a feature request.

                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
                  livirix
                  last edited by

                  but the first time i was installed it was good with 2.3
                  the voucher used for one person and if he give it to another pfsense tell him invalid password
                  i don't know why know don't work with me !! even i didn't change eneything in configuration !!!! :-\ :-\ :-\

                  1 Reply Last reply Reply Quote 0
                  • The Computer GuyT
                    The Computer Guy
                    last edited by

                    Set the voucher to expire after one minute, and use MAC Authentication.

                    But you will then need to actively delete the authenticated MAC users.

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

                      thank you the computer guy
                      but i just want to know why it was working with me for the first time i was used pfsense 2.3
                      but tomorrow when i make the same installation it's not working !!!!!!
                      is it changed by pfsense !!!!

                      because this solution it's not good for my situation because i set a voucher for
                      -one day
                      -week
                      -month

                      1 Reply Last reply Reply Quote 0
                      • J
                        jeli
                        last edited by

                        This seems very unintuitive
                        I would expect there to be a global list of vouchers ad whe one is used it is removed from the list.
                        The session for that MAC would then continue until it timed out, at which time a new voucher (or a login) would have to be used.
                        If this si not what happens , then, what DOES it do? and what value is it?

                        If my kids can share vouchers then I might as well turn off he whole feature.. the aim is to have them separate..

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