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

    Possible to use directly a .ovpn file without GUI ?

    Scheduled Pinned Locked Moved OpenVPN
    4 Posts 4 Posters 2.1k 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.
    • Z
      zukrjrue
      last edited by

      Hello,

      i will use pfSense with OpenVPN as a Client, i´ve seen there is actually no function to import existing OpenVPN configurations (*.ovpn) see https://forum.pfsense.org/index.php?topic=90072.msg679864#msg679864

      I would like to have such a possiblity, without entering all required data in the web form, is this feature planned for future @DevTeam? I think its not so complicated to write a PHP upload function and save the file to the specific OpenVPN configuration path?!

      At the moment i have a problem to get started with a given configuration from an VPN provider, because not all entries from the config file can be set directly in pfSense GUI. I tried to compare the output /var/etc/openvpn/client1.conf with the given file, it differs.

      Normally i would use the following command:

      openvpn --config someServer.ovpn
      

      For testing purpose i tried this command on my client with the given config file, but the OpenVPN client on pfSense is using the following config file:

      openvpn --config /var/etc/openvpn/client1.conf
      

      I tried to replace the content with the delivered config file, but on each OpenVPN service start the content will be overriden  >:(
      Where is the call of openvpn command, which sets the static file, at this point i could use another config file?!

      What is the best way to use already existing config files in pfSense?

      Offtopic: Wow, why is the config so unstructered, is it because so historical? In modern applications there configurations based on XML/JSON structure, the is the hard convention, but in the OpenVPN configuration there are really rules, each entry can be written at the beginning or at the end.

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

        I don't see that being accepted. Something to import an .ovpn to a GUI config, perhaps, but so much relies on configuration directives that we add in, like status monitoring and interface binding/updating that it would be much more complicated than you think to allow completely custom raw configurations.

        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
        • DangerMouseUKD
          DangerMouseUK
          last edited by

          Hi Guys,

          Didn't want to start a new thread on this one.

          OVPN config importing would be really handy for me setting up multiple SG appliances quickly.

          Is this still on the roadmap?

          Thanks
          DM

          B 1 Reply Last reply Reply Quote 0
          • B
            bcruze @DangerMouseUK
            last edited by

            @DangerMouseUK said in Possible to use directly a .ovpn file without GUI ?:

            Hi Guys,

            Didn't want to start a new thread on this one.

            OVPN config importing would be really handy for me setting up multiple SG appliances quickly.

            Is this still on the roadmap?

            Thanks
            DM

            why not use the backup and restore function already built in?

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