Navigation

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

    Voucher for First Device Only

    Captive Portal
    5
    14
    485
    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.
    • I
      ibabul89 last edited by

      pfSense Version 2.4.5_1,
      if Concurrency Logins enabled, if I try to use a voucher used by other, i can use and last client was disconnected.
      But, i need invert this.
      New user cannot use voucher, and last client stay connected.

      How to set First Login in Concurrent user logins

      Concurrent user logins
      Controls whether or not users are allowed to connect multiple times. This is not a total limit for the entire portal, but a per-account limit.

      May be set to one of the following:

      Disabled
      The portal will not allow concurrent logins for a user or voucher.

      Multiple
      (Default) The portal does not enforce any restrictions on concurrent logins by a user or voucher.

      Last Login
      The portal will only allow only one login per user account or voucher. The most recent login is permitted and any previous logins are disconnected.

      First Login
      The portal will only allow only one login per user account or voucher. The portal permits the first login and denies any subsequent login attempt.

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

        Very known question.

        Check out this : https://forum.netgate.com/search?term=Voucher%20Last%20login&in=posts&matchWords=all&by[]=Gertjan&categories[]=3&sortBy=relevance&sortDirection=desc&showAs=posts

        read several threads. You'll get the picture ;)

        No "help me" PM's please. Use the forum.

        1 Reply Last reply Reply Quote 0
        • F
          free4 Rebel Alliance last edited by free4

          Also, the new pfSense version (future 2.5.0 , which is currently in development but will be released in the upcoming months) will have a feature "block additional logins". You should give it a try...

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

            I have 2.5-Development and Concurrent login feature is working very well. I've 2 Production sites up to 5000 captive portal users with no issue.

            I 1 2 Replies Last reply Reply Quote 0
            • I
              ibabul89 @wazim4u last edited by

              @wazim4u which version are you using. latest dev version are not working. it's not terminating new session.

              Jan 9 04:24:23 logportalauth 340 Zone: super_wifi - Voucher login good for 9999999981 min.: 44462626876454732675744, ee:ee:ee:ee:e0:0b, 192.168.1.105
              Jan 9 04:25:50 logportalauth 341 Zone: super_wifi - Voucher login good for 9999999980 min.: 44462626876454732675744, 00:0c:29:48:38:3c, 192.168.1.106
              Jan 9 04:26:12 logportalauth 28439 Zone: super_wifi - DUPLICATE 44462626876454732675744 LOGIN - TERMINATING OLD SESSION: 44462626876454732675744, ee:ee:ee:ee:e0:0b, 192.168.1.105

              Please upload your iso file & give link.

              F W 2 Replies Last reply Reply Quote 0
              • F
                free4 Rebel Alliance @ibabul89 last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • W
                  wazim4u @ibabul89 last edited by wazim4u

                  @ibabul89 I am on latest Development Release 2.5.0.a.20210107.2142

                  Jan 11 14:31:15	logportalauth	51611	Zone: campco - CONCURRENT VOUCHER LOGIN - NOT ALLOWED KEEPING OLD SESSION : 4327883793, 44:59:e3:71:21:6a, 10.10.30.191
                  Jan 11 14:31:15	logportalauth	51611	Zone: campco - Found NOT last: 4327883793, 44:59:e3:71:21:6a, 10.10.30.191
                  Jan 11 14:31:15	logportalauth	51611	Zone: campco - config['captiveportal'][campco]['noconcurrentlogins'] 2 exists = set: 4327883793, 44:59:e3:71:21:6a, 10.10.30.191
                  Jan 11 13:05:23	logportalauth	1891	Zone: campco - CONCURRENT VOUCHER LOGIN - NOT ALLOWED KEEPING OLD SESSION : 5726351542, 0c:d6:bd:f2:b4:f4, 10.10.9.242
                  Jan 11 13:05:23	logportalauth	1891	Zone: campco - Found NOT last: 5726351542, 0c:d6:bd:f2:b4:f4, 10.10.9.242
                  
                  I 2 Replies Last reply Reply Quote 0
                  • I
                    ibabul89 @wazim4u last edited by

                    @wazim4u can you please share your backup file with me.
                    Please send mail my egp.docs@gmail.com

                    W 1 Reply Last reply Reply Quote 0
                    • I
                      ibabul89 @wazim4u last edited by

                      @wazim4u can you please share your backup file with me.
                      Please send mail my egp.docs@gmail.com

                      1 Reply Last reply Reply Quote 0
                      • W
                        wazim4u @ibabul89 last edited by

                        @ibabul89 I cannot send Backup files for many reasons. You just need to make sure you have 2.5 Development version. if you are still on 2.4.5 you can upgrade it to 2.5 Development and then from Captive Portal Configuration you need to select concurrent login either disabled or First login. I have selected Disabled and its working without any issue.

                        1 Reply Last reply Reply Quote 0
                        • 1
                          1ntr0v3rt3ch @wazim4u last edited by 1ntr0v3rt3ch

                          @wazim4u just a question only. how do you manage the bandwidths for each users?how you handle 5000 users without any issues like slow browsing because it reaches total max speed. Is there any traffic shaping you're using? thanks!

                          W 1 Reply Last reply Reply Quote 0
                          • W
                            wazim4u @1ntr0v3rt3ch last edited by

                            @1ntr0v3rt3ch captive portal global traffic shaping configuration only. we limited each user to 3Mbps and never have issue with slow browsing. people do voice calls, same time they play games & YouTube never had any complaint sine 2 years.

                            more smart way now a days is to control bandwidth from CLOUD Access Points you have per SSID & per User limit from AP itself instead of putting extra load on GATEWAY

                            I 1 Reply Last reply Reply Quote 1
                            • I
                              ibabul89 @wazim4u last edited by

                              @wazim4u are you using pfSense hardware or custom-build?

                              W 1 Reply Last reply Reply Quote 0
                              • W
                                wazim4u @ibabul89 last edited by

                                @ibabul89 yes custom build with Supermicro server

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post