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

    VOULCHERS RECHARGE ITSELF AFETR USE

    Scheduled Pinned Locked Moved Captive Portal
    19 Posts 9 Posters 12.4k 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.
    • E
      eri--
      last edited by

      You can push it through some bounty if you want.

      1 Reply Last reply Reply Quote 0
      • perikoP
        periko
        last edited by

        We are going to try this, hope some have something to test, thanks!!!

        Necesitan Soporte de Pfsense en México?/Need Pfsense Support in Mexico?
        www.bajaopensolutions.com
        https://www.facebook.com/BajaOpenSolutions
        Quieres aprender PfSense, visita mi canal de youtube:
        https://www.youtube.com/c/PedroMorenoBOS

        1 Reply Last reply Reply Quote 0
        • C
          collins465
          last edited by

          am highly interested in knowing the final solution to this.

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            It'll be added to the periodic backup of other files. http://redmine.pfsense.org/issues/1087

            1 Reply Last reply Reply Quote 0
            • S
              sullrich
              last edited by

              Please test recent snapshot.  Jim committed this.

              http://redmine.pfsense.org/issues/1087

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

                Someone else reported a foreach error in the voucher code. I backed mine out because Ermal already had code to do that. He committed a few fixes to his code and it was supposed to be working, but may still have a couple bugs.

                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
                • U
                  ustine
                  last edited by

                  i think i was able to figure out the problem, the voucher save interval is by default 300 mins, which make it impossible for the pf sense to save the current minutes the clients have used if the pf is not up for 300mins so setting the time to something like 3 or 4 mins will save the voucher used time 4 mins after the client logged in, even if ur pf reboots after 10mins the time will still continue from were it stooped, for example a client bought 1hr and used 20mins and there is power outage the pf reboots, the time will continue from 40mins.  but note that the time is continuous and non stop even if the clients logs out, is there anyway that can be corrected so that when the clinets logs out the time stops.

                  to make the change goto  service: captive portal: voucher:      (save interval) default 300 mins

                  1 Reply Last reply Reply Quote 0
                  • E
                    eri--
                    last edited by

                    No the time is not continuous it will keep the time until you re-logon.

                    Please provide examples for this claim.

                    1 Reply Last reply Reply Quote 0
                    • U
                      ustine
                      last edited by

                      i will send a screen shot of logged out voucher

                      1 Reply Last reply Reply Quote 0
                      • R
                        rhy7s
                        last edited by

                        @ermal:

                        No the time is not continuous it will keep the time until you re-logon.

                        Please provide examples for this claim.

                        Does this mean you can stop the clock on vouchers to save time remaining? Unlike the experience of this poster? http://forum.pfsense.org/index.php/topic,31744.0.html

                        1 Reply Last reply Reply Quote 0
                        • C
                          cmb
                          last edited by

                          @rhy7s:

                          Does this mean you can stop the clock on vouchers to save time remaining?

                          that's how it works, there are no other options (unless you're on embedded and power cycle the box before its save interval hits).

                          1 Reply Last reply Reply Quote 0
                          • S
                            sarhento
                            last edited by

                            hi there.

                            i am on pfSense 2.0-BETA5-pfSense (i386)  still the same the voucher time does not stop even the user has logout.

                            A user with 30 minutes voucher time and logout after 10 minutes, when the user comes back after 20 minutes the account is already expired. It is supposed to be the user still can login because it has a 20 minutes remaining.

                            Hope this feature would be included in the next or future release.

                            regards,
                            sarhento

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