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

    Add other servers' bundled configurations to OpenVPN Windows Installer

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 625 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.
    • C
      CheeMG
      last edited by CheeMG

      Hi All
      We have a few offices using PFSense firewall with PFSense OpenVPN installed. And our remote users have to be able to connect to all the offices' OpenVPN.
      We want to be able to give our users a single OpenVPN Windows Installer created by openvpn-client-export that contains all the configuration files/certificates/keys of all the office OpenVPN.
      We tried to unzip the Windows Installer from Client Export and then add the other offices' config files/certificates/keys and then we used Windows iexpress.exe to create the executable installer.
      But iexpress.exe does appear to be working. It does not copy the config files/certs/keys to the config folder even though we specified "openvpn-postinstall.exe" in the Post Install Command in IExpress wizard. The exe installer created by IEpress only installs OpenVPN but doesn't copy the config files/certs/keys to the config folder.
      Tried 7-zip following instructions here: http://ntsblog.homedev.com.au/index.php/2015/05/14/self-extracting-archive-runs-setup-exe-7zip-sfx-switch/
      but still didn't work.

      Does anybody know how to add the other Openvpn servers' config files/certs/keys into the Windows Installer created by client-export?
      What tool did PFSense openvpn-client-export package use to create the Windows Installer (which has the bundled config in it)?
      Thank you very much in anticipation.

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

        I haven't tried doing it by hand in ages, but you can use 7-zip. Follow along with how the export package crafts the archive:

        https://github.com/pfsense/FreeBSD-ports/blob/devel/security/pfSense-pkg-openvpn-client-export/files/usr/local/pkg/openvpn-client-export.inc#L590

        Make note of things like the procchain how it forms the self-extracting sfx file.

        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!

        C 1 Reply Last reply Reply Quote 0
        • C
          CheeMG @jimp
          last edited by

          @jimp
          Thank you jimp! Works now.

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