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

    One Voucher Per Device

    Scheduled Pinned Locked Moved Captive Portal
    147 Posts 12 Posters 34.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.
    • A
      ajmaltms @Derelict
      last edited by

      @Derelict so no need to disable concurrent login ?
      which are them i need to use and i dont need to use ??

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

        Of course you should disable concurrent login if you don't want concurrent logins.

        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 @Derelict
          last edited by Gertjan

          @Derelict said in One Voucher Per Device:

          That SHOULD delete the first MAC address and replace it with the second. There should only be one MAC address passed through at a time. That should stop them from sharing codes.

          It should be working as you stated.
          It doesn't.

          The last login will be granted, previous user using the same code are ejected.
          That's the problem of @ajmaltms .
          The code changes I tested out ones - in the linked thread - does just that : ones a voucher is used for a login, another login using the same voucher will be denied. This works as long as the voucher is listed in the "connected user list". For this reason I advise big values for soft and hard time out. If not, the user who obtained the voucher initially can't login again if he gave it to some one else .... (not a bad situation actually ... very educational )

          edit : I managed ones to use the same functionality using User/passwords and FreeRadius.
          A setting like this for a user :

          4f42c91b-5f6a-41e5-a643-4087b0b46e01-image.png

          enforces one user at the time using a unique user/password pair.

          You'll be needing FreeRadius (and probably - I advise - some database like MySQL or MariaDB running on some server).

          No "help me" PM's please. Use the forum, the community will thank you.
          Edit : and where are the logs ??

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

            @Gertjan said in One Voucher Per Device:

            @Derelict said in One Voucher Per Device:

            That SHOULD delete the first MAC address and replace it with the second. There should only be one MAC address passed through at a time. That should stop them from sharing codes.

            It should be working as you stated.
            It doesn't.
            The last login will be granted, previous user using the same code are ejected.

            How is what you said and I said different?

            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 Gertjan

              You :

              That SHOULD delete the first MAC address and replace it with the second. There should only be one MAC address passed through at a time. That should stop them from sharing codes.

              That's how it works now.

              What @ajmaltms wants : Voucher being used ones not usable for a next (concurrent) login.

              The actual pfSense approach is based on the fact that some one how obtains a voucher can use it for (his) multiple devices.
              For his smartphone,then his tablet, and then his portable PC - to wind up using it on his game box.
              Every time the voucher is used 'again', the existent connection is shut down ( note : this should already inhibit non voluntary voucher sharing = when you 'loose' your voucher you loose your connection.)
              @ajmaltms has other experiences. As he explained above.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

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

                That would be a feature request.

                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

                  Yup - that's what I proposed earlier in this thread - a day or so ago.
                  But : I have some code to play with that does just what @ajmaltms wants.

                  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
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    Then that would be a pull request for that feature request :)

                    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
                    • A
                      ajmaltms @Gertjan
                      last edited by

                      @Gertjan yes..Voucher being used ones not usable for a next (concurrent) login..is it possible ?

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

                        @Derelict well, maybe I should write it out again .... I'll have a try.

                        He we go : the GUI part first :

                        @ajmaltms :
                        This looks good for you :

                        d3d2a51f-2d57-44d9-a8b1-996bfa97204c-image.png

                        Btw : writing this up will take some time for me.
                        I'm writing this on a "live" system, and I'm not using Vouchers, but FreeRadius.

                        No "help me" PM's please. Use the forum, the community will thank you.
                        Edit : and where are the logs ??

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

                          This is not the forum for feature and pull requests.

                          https://redmine.pfsense.org/
                          https://github.com/pfsense/pfsense/

                          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

                            Don't worry, won't publish any PHP stuff here.
                            Just want to be sure I'm writing something useful.

                            When done and tested, I'll locate a feature request if one exists, and add my implementation as a pull request / review.

                            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
                            • DerelictD
                              Derelict LAYER 8 Netgate
                              last edited by

                              No problem posting it. It's just that it probably won't get looked at by the right people unless it is put in the right places.

                              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
                              • A
                                ajmaltms @Gertjan
                                last edited by

                                @Gertjan which version is this ? i am using 2.4.4 i cant see that 3 options in my version...

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

                                  I already went through the Forum => Redmine => Github phase twice, I guess.

                                  @ajmaltms :
                                  I'm using the same version as you. pfSense 2.4.4p2

                                  I just have edited the code on my own pfSense setup.

                                  Does the image looks good to you ?
                                  As @Derelict stated, there is a whole procedure to respect when one want to change the 'official' code.
                                  As said, this will take some time.

                                  No "help me" PM's please. Use the forum, the community will thank you.
                                  Edit : and where are the logs ??

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    ajmaltms @Gertjan
                                    last edited by

                                    @Gertjan yes..thats what i want...first login..

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

                                      Good !

                                      I'll post back here when I have a Feature request.
                                      Attached to the feature request I'll be posting a pull request. At that moment, with the System_Patches package you can then retrieve the proposed pull request into your own pfSense to test drive the new code.
                                      Eventually, if the pull request gets granted - IF this happensbolded text, the feature will be build into al new pfSense version.
                                      This will take time - as most attention goes to "2.5.0" these days.

                                      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
                                      • DerelictD
                                        Derelict LAYER 8 Netgate
                                        last edited by

                                        It is unclear how someone would just allow all concurrent logins there.

                                        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)

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

                                          @Derelict said in One Voucher Per Device:

                                          It is unclear how someone would just allow all concurrent logins there.

                                          I agree.
                                          "Disabled" isn't the correct description.

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

                                            cfbf5d94-fdd0-4e51-8f27-d26521a813f1-image.png

                                            No "help me" PM's please. Use the forum, the community will thank you.
                                            Edit : and where are the logs ??

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