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

    Bulk create OpenVPN client

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 312 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.
    • M
      mobydick426
      last edited by

      Hello,

      Is there any existing script who permits bulk creation of OpenVPN client (without using Web interface) ?

      We need to have the possibility add per batch of 50 clients.

      Thanks

      Regards,

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by Gertjan

        No ... and yes.

        Using the GUI : no solution but click click click.
        Not using the GUI : You are the limiting factor of possibilities.

        First : Create one or two users manually.
        Do a config export, Diagnostics > Backup & Restore >Backup & Restore
        Consider exporting OpenVPN (server users) only.

        Yo wind up having an xml file with the correct format.
        Now, you can script as much as you want.
        You only have to respect the XML format.

        Import the file.
        Check for results.

        edit : if you are using certs as an identification, things will get a little bit more complicated, but the principal stays the same.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

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