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

    Windows OpenVPN client: Install configuration file to user profile

    Scheduled Pinned Locked Moved OpenVPN
    6 Posts 3 Posters 804 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.
    • R
      reschi1
      last edited by

      I run pfSense 2.4.4 p1 with openvpn-client-export package 1.4.18-4 which will install OpenVPN client 2.4.7 on Windows 64bit.

      During the client's installation the user will not be asked for the destination directory (the regular client from OpenVPN community will ask). pfSense's installer will always install the config files to C:\Program Files\OpenVPN.

      I want that the installer uses the destination C:\Users<username>\OpenVPN instead.

      Does anybody know how to achieve that?

      Thanks for all your replies!

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

        I would suggest you update to 2.4.5p1 which includes 2.4.9 of the installer.. 2.4.7 is dated (over a year old) for starters lots of fixes since that..

        If you want to customize the install of openvpn client, its best to install it how you want with just the installer you grab from openvpn directly.. Then just add the config ovpn file.

        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.8, 24.11

        1 Reply Last reply Reply Quote 0
        • R
          reschi1
          last edited by

          Thank you for your reply @johnpoz.

          We plan to upgrade to v2.4.5 later on this year, but I don't think that it will solve the issue.

          I'm aware of the proposed way, but my aim is to automate the config file's distribution to the users' profile, because our users work without administrative privileges but shall be able to manipulate their configs.

          Maybe somebody knows how to manipulate the pfSense provided OpenVPN client package in order to make it push the config file to the user profile directory?

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

            Yeah there is nothing in the export client for example to let you do that.. But you could always roll your own installer with something like nsis I would assume

            https://oitibs.com/custom-openvpn-installer-10-nsis/

            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.8, 24.11

            1 Reply Last reply Reply Quote 1
            • PippinP
              Pippin
              last edited by

              Maybe a feature request on redmine?

              OpenVPN scans

              \Program Files\OpenVPN\config
              \Users\$USERNAME\OpenVPN\config
              

              for profiles.

              I gloomily came to the ironic conclusion that if you take a highly intelligent person and give them the best possible, elite education, then you will most likely wind up with an academic who is completely impervious to reality.
              Halton Arp

              1 Reply Last reply Reply Quote 1
              • R
                reschi1
                last edited by

                Thanks for the NSIS proposal. I will check it out.

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