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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      An upgrade will keep your settings, but you can always make a backup to be safe. Go to Diagnostics > Backup/Restore and download a backup.

      If you are on beta1, it is likely that auto update is broken on your snapshot. You will need to do a manual firmware update by downloading a snapshot full update file to your PC and then applying it under System > Firmware.

      An upgrade should be fine for what you are trying to do.

      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 have upgraded to 2.0-BETA4 (i386)  built on Sun Oct 3 23:44:55 EDT 2010  FreeBSD 8.1-RELEASE-p1. yet i still have the same problem, once the system pfsense reboot all active voucher will start from the bignning again, it is suppose to continue from where it stopped, eg if a user have 60mins and have used up to 55 mins and unfurtnatly the power goes off and the pfsense system reboot, when the user log back in it will start from 60 mins again, please how do i correct this it is really affecting my setup.

        Thanks in advance

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

          Put a UPS on the pfSense.  pfSense needs to write out the voucher database on reboot.

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

            I have seen this small issues with CP on pf 2.0 betas. Will be great to have a DB for CP and used to save all the voucher info, if we lost energy or need to reboot will not matter because he will know the last state of the system(if the db is in good shape first).

            I know we cannot run MySQL or PostgreSQL in a FW but a small Db like berkeleydb is more light right?

            Or what options could be done to help CP be more stronger this will be very useful for me && others I think, cheers  :P

            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
            • 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.