• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 769 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 Jul 29, 2020, 10:59 AM

    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
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Jul 29, 2020, 11:46 AM

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

      1 Reply Last reply Reply Quote 0
      • R
        reschi1
        last edited by Jul 29, 2020, 2:45 PM

        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
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by Jul 29, 2020, 4:01 PM

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

          1 Reply Last reply Reply Quote 1
          • P
            Pippin
            last edited by Jul 29, 2020, 5:10 PM

            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 Jul 30, 2020, 10:19 AM

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

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received