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

    HOW TO IMPORT VOUCHER FROM A CSV FILE?

    Scheduled Pinned Locked Moved Captive Portal
    3 Posts 2 Posters 1.9k 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.
    • O
      onlineph
      last edited by

      Is there a way to import the downloaded vouchers into a newly installed pf box that has no vouchers yet created?

      If so, how? What are the steps?

      Thanks!

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

        Hi!

        also like to know if there is a way?

        Thanks!

        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
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.