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

    OpenVPN - Export with multiple VPN profiles

    Scheduled Pinned Locked Moved OpenVPN
    14 Posts 2 Posters 6.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.
    • D
      DominicNL
      last edited by

      Hi,

      Quick question.

      I am fairly new to OpenVPN/PfSense.

      What I am trying to accomplish is when I am exporting a user profile, it is being exported with multiple VPN profiles associated with it.

      The problem I run in to now is that I have multiple PfSense servers, with OpenVPN clients connecting to it, but for every different VPN server I need to import the .OVPN profile to the Windows 'config' folder for every client.

      I'm sure there is a way to make this more easier.

      Thanks in advance.

      Best regards,

      Dominic

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        huh??  it exports the profile you pick in the top dropdown, as long as they have different names your opvn client will see them all as options..  Once you add the .ovpn file to yoru config folder..

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

          When I go to VPN -> OpenVPN -> Client Export I can only export just one 1 profile.
          This is the profile, for example, for server 'A'.
          But I also have server 'B' up to 'F'.

          What I want to accomplish is that on only server 'A' a export is needed, which also has the profiles for server B to F.

          See what I mean?

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Are they profiles on different servers?  Or do you have multiple instances of pfsense running on the same pfsense box??

            Here I just created a new server, and as you can see all of my servers are listed in the dropdown in the export..

            newserver.png
            newserver.png_thumb

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

              Yes it are different physical servers.
              I see you have indeed three options in the drop down menu, my guess is that you have multiple instances on the same box?

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                Yes - as you see clearly in my post I have 3 instances of openvpn running with different options on the same server.

                How would export util on pfsense know about other servers???  Really come on think about that for like .2 seconds..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                  Well, that is not hard.
                  There could be an option to somehow link these boxes.
                  Or manually add profiles to it.

                  But I understand what you are saying is that this isn't possible at all?

                  1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator
                    last edited by

                    No not currently.. You could write the code to link them ;)  Or submit a bounty to have someone else do it.. But find it highly unlikely there would be any demand for it..

                    So do these different serves use different certs and settings, etc.  Curious why do you have multiple servers?  Why not just 1 ,or a carp sort of setup if you need failover, etc.

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                      It serves just one goal for this setup.

                      Just one install (generated by openvpn client export) and automatically have more (*.ovpn) profiles to connect to.

                      At this moment, I need to manually copy/paste these profiles to the C:\program files\openvpn\config directory.

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        so you want the profiles added to the bundle exe that installs the client and the profile?  You could clearly edit that before deployment to your users so it contained multiple ovpn files.

                        An intelligent man is sometimes forced to be drunk to spend time with his fools
                        If you get confused: Listen to the Music Play
                        Please don't Chat/PM me for help, unless mod related
                        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                          Indeed, that is exactly what I want.
                          I have look everywhere to find how to do such a thing.
                          How can I edit/manipulate the exe file?
                          Seriously have no idea where even to start.

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by

                            Well just unzip it, place your files in the config folder and then rezip it up as exe have it run your install and post install.exe that are in there..

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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

                              Well johnpoz, may I say, you are the man?!

                              That was so simple..
                              Tested it and works, never even thought of that.

                              1000 times, thanks!

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by

                                Glad you go it sorted… and happy I could point out how simple it was ;)

                                An intelligent man is sometimes forced to be drunk to spend time with his fools
                                If you get confused: Listen to the Music Play
                                Please don't Chat/PM me for help, unless mod related
                                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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