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

    Captive Portal to control time spent on the Internet

    Scheduled Pinned Locked Moved Captive Portal
    13 Posts 2 Posters 7.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.
    • S
      shawngg
      last edited by

      I cant seem to get to the first link. http://computerproonsite.com/Captive_Portal.htm not sure if its just me or not.

      Anyway I have the portal working just fine. It allows me to log in and surf the web and even set up the bandwidth restrictions. Im going to explore what you said about the .csv file and see if that will work. I have been working hard to remove those vouchers and start from scratch I seem to have lost my "+" sign to add, the "X" to delete and the "E" to edit.

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

        I spoke to soon. I just tok a look and currently the enable voucher option was removed. This is because I wanted to remove the vouchers and replace them. Now when I place in the check mark it tells me that all these fields are required.

        The following input errors were detected:

        The field 'charset' is required.
        The field 'rollbits' is required.
        The field 'ticketbits' is required.
        The field 'checksumbits' is required.
        The field 'publickey' is required.
        The field 'magic' is required.
        The field 'saveinterval' is required.

        I tried to fill them in and I can not type in the these fields.

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

          @shawngg:

          I tried to fill them in and I can not type in the these fields.

          If I recall correctly, it is necessary to tick Enable vouchers, then Save, then you can fill in the parameters.

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

            after logging into the admin interface I went to services -> captive portal -> Vouchers tab (Portal is already running) check off enable voucher and what you see on my last post is what I get.

            The very first time i turned it on what you explained is just how it worked, in fact the fields were pre populated. All i had to do was click on save.  Now I'm stuck I cant do anything with the vouchers.  I even performed a reboot to see if that would help. no luck

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

              Captive portal is enabled?

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

                Yes It is. Im being forced to sign in before getting to the internet. I just can seem to remove the vouchers I created. I just want to start from scratch using what I have learned.

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

                  I'm unwilling to mess with my system to try to get it into the state you seem to have got your system into (whatever that might be). Can you post a screenshot of your Services -> Captive Portal -> Vouchers page?

                  In the Voucher public key section, if you click on Generate in Generate new key does a key appear? Same for Voucher private key.

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

                    Yes. I can click on the generate link. When I do it creates this :

                    –---BEGIN PUBLIC KEY-----
                    MCQwDQYJKoZIhvcNAQEBBQADEwAwEAIJAMCI5tbUMBLTAgMBAAE=
                    -----END PUBLIC KEY-----

                    -----BEGIN RSA PRIVATE KEY-----
                    MEACAQACCQDAiObW1DAS0wIDAQABAgkAlsPdNejqAmkCBQD12hWFAgUAyHtqdwIF
                    AKZtrLUCBCuc9ZcCBQDZHC8X
                    -----END RSA PRIVATE KEY-----

                    How ever they are grayed out and can not be changed. The remaining fields are still not allowing me to edit them. (check is in place at the top)

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

                      On my system using Captive Portal when Enable Vouchers is ticked the contents of the Voucher key boxes and other boxes are black. If the tick on Enable Vouchers is cleared the contents of those boxes turn grey. If Enable Vouchers is ticked again the contents of those boxes turn black again.

                      I can't explain what you are reporting. Any chance you might have modified the pfSense configuration file or any of the .php or .inc files used by the pfSense web GUI, perhaps while looking at them in an editor?

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

                        I'm not sure. The only thing I did was place a tick on enable vouchers. I was then able to create vouchers and the rest of the data was pre populated. all I have to do was click on save at the bottom. At some point between now and then I lost the ability to edit remove or create vouchers i guess.

                        Thanks for your time.

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