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

    How do I inport a .OVPN file

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 7 Posters 12.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.
    • K
      KineticPro
      last edited by

      i am not sure if PFSense allows this but would save a lot of work if it can be done

      I need to setup my Router with a vpn and the host server set me the ovpn file only while i can open it and see some of the config it does not seem to be working can i just import even if manually into the system and get this to work instead of trying to reverse engineer the information?

      Current PFSesne version is 2.2
      willing to install packets if needed

      1 Reply Last reply Reply Quote 0
      • J
        Jamerson
        last edited by

        @KineticPro:

        i am not sure if PFSense allows this but would save a lot of work if it can be done

        I need to setup my Router with a vpn and the host server set me the ovpn file only while i can open it and see some of the config it does not seem to be working can i just import even if manually into the system and get this to work instead of trying to reverse engineer the information?

        Current PFSesne version is 2.2
        willing to install packets if needed

        do you have openvpn installed on the machine ?
        are you on Windows or Mac ? Linux ?

        1 Reply Last reply Reply Quote 0
        • DerelictD
          Derelict LAYER 8 Netgate
          last edited by

          Yeah.  You have to dissect the ovpn file and insert the tidbits into the right pfSense places.  There is no import.  It would be nice.  I'm sure they'd add it if someone was to code it with some semblance to correctness.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

          1 Reply Last reply Reply Quote 1
          • K
            KineticPro
            last edited by

            Shame no one has made this as this was on the request list from version 2.0 at least

            j.
            no the point is for the whole network to use the connection (actual a 2nd lan only) by doing on a workstation defeats the value to my needs

            as to what os the clients of this 2nd lan will actually have all of them and also 1 unix machine in short not practical on the work station level let the router do its job

            1 Reply Last reply Reply Quote 0
            • D
              duren
              last edited by

              I see value in adding this capability… more specifically, to use a custom provided ovpn file as opposed to actually importing it into pfSense's openvpn xml config.

              Then, if the user wants to override anything or add it, they just do it in custom options like normal.

              I tried this and to a large degree, it pretty much already works, I can reference a provider config in the custom options by putting in

              config /path/to/provider_config.ovpn

              the only hiccup is that pfSense requires some fields and hard codes some values that could (and for me do) interfere with a full config (such as keep alive)

              https://github.com/pfsense/pfsense/blob/f003f8db0eaba3837c0e2d2566181a51689a3107/src/etc/inc/openvpn.inc#L700

              In conclusion, the import option would

              • simply forgo requiring any fields
              • exposes only the custom options field to allow specifying that custom ovpn file and allow additional parameters for definition or overriding.

              I tested my specific use case in the shell and openvpn fires up the connection without a hitch.

              Does anyone else see any value in this?

              1 Reply Last reply Reply Quote 0
              • M
                mauroman33
                last edited by

                I agree, adding this capability would be a big value.

                1 Reply Last reply Reply Quote 0
                • S
                  sebastienbo
                  last edited by

                  IS there still no package capable of importing an ovpn file ?

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

                    No.

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