Navigation

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

    "import"/use vouchers from a broken box

    Captive Portal
    2
    3
    803
    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
      sumartho last edited by

      Hi,
      is there a way to import/use vouchers generated on (now) broken pfsense box or do i need to generate them newly?

      regards, sumartho

      1 Reply Last reply Reply Quote 0
      • T
        TKAdmin last edited by

        Hi there!

        i want to switch from monowall to pfsense. Everything ist already set up and the pfSense is running fine :)
        Now i want to import the generated and not yet used voucher codes into pfsense so i don´t have to generate new ones and exchanging all the codes which are already in use.

        I connected via WinSCP and searched all the file system but the only files (db´s) i can find are the used and the active vouchers.
        I also searched the file "services_captiveportal_vouchers.php" to find the correct db or file the unused vouchers are in.
        Was not successful at all :(

        Any help appreciated :)

        1 Reply Last reply Reply Quote 0
        • T
          TKAdmin last edited by

          Hey ho,

          okay - got it!
          The Vouchers are generated "ont he fly" with the file "usr/local/bin/voucher". As written in the documentation the vouchers are generated based on an RSA Key.
          That means there is NO Database in wich the NOT USED Vouchers are stored!!

          So i manipulated the config.xml file and did an import of this config. I needed some trials because monowall and pfsense have a slightly different format but figured it out. After "importing" the Vouchers i still had to mark the already used Vouchers within the function in the portal section but everything is working fine :)

          So anybody having the same problem try this method!

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