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

    OpenVPN Database

    Scheduled Pinned Locked Moved OpenVPN
    5 Posts 4 Posters 620 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.
    • B
      bversini
      last edited by

      Hi,

      I have a question about the OpenVPN integration in PFSense. What is the type of the database ? (SQL, file...) And where are the file of OpenVPN Database.

      Il would like access to the database with external script (external to pfsense) for automation

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        What do you mean by "database"? There is no "OpenVPN database" as such.

        What exactly are you wanting to access?

        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
        • I
          ilbicio
          last edited by

          PfSense stores its entire configuration in the config.xml file.
          THe best way I found for interacting with the configurationis using something like fauxAPI (https://github.com/ndejong/pfsense_fauxapi), which adds REST API capabilties to pfSense.
          I don't think is supported and consistent through updates, but the project seems alive.

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

            This works https://serverfault.com/questions/571592/how-to-view-connected-users-to-open-vpn-server

            Running

            killall -USR2 openvpn
            

            dumps the connected users to the log file.

            Remember to use 'clog' to access the log file /var/log/openvpn.log.

            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
            • B
              bversini
              last edited by

              Thanks @ilbicio
              I want to create user by external (and automated) process (eg: an "Admin Panel") for my customer.

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