[SOLVED] How install OpenVPN Client Export

Started by lem, March 05, 2015, 02:03:41 PM

Previous topic - Next topic
March 05, 2015, 02:03:41 PM Last Edit: March 25, 2015, 08:46:34 AM by franco
I don't appear to be able to install any packages - There is no menu to do so.
I would like to install the OpenVPn Client Export package.

We do not have package support. We are rewriting this part using modern coding practices because the legacy system is unmaintainable. Client exporter package is a priority item, but we have no ETA here.

Could you point me in right direction for configuring the client manually? I've created the required certificates.

I can point you to the raw package code that pfSense has:

https://github.com/pfsense/pfsense-packages/tree/master/config/openvpn-client-export

Unfortunately, nobody has picked up the integration work for OPNsense yet. Right now the developers are working more on the plumbing and preparation for packages so we can't jump ahead here, but would appreciate any help.

Sorry, but I just want to use OpenVPN with the firewall I've bought.


March 12, 2015, 05:55:59 AM #6 Last Edit: March 12, 2015, 07:03:33 PM by igorek24
I have successfully installed it on my firewall, the only thing is that the style is little bit off but I don't care, it saves me a lot of time. I don't remember exactly how I did it, but I will look it up tomorrow at work and post back.

Nice work! If you let us know how you did it we may be able to preserve that functionality, although I was about to rip out the old package system so to clean up the code further. :)

Quote from: igorek24 on March 12, 2015, 05:55:59 AM
I have successfully installed in on my firewall, the only thing is that the style is little bit off but I don't care, I saves me a lot of time. I don't remember exactly how I did it, but I will look it up tomorrow at work and post back.


yeah, can you plz explain how you did this? Would be great! :)

March 12, 2015, 05:38:41 PM #9 Last Edit: March 12, 2015, 05:45:04 PM by igorek24
OK, here is what I did, login in to the OPNSense via ssh (You can use PuTTy) and run this commands.
cd /usr/local/pkg/
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/openvpn-client-export.inc
fetch https://files.pfsense.org/packages/openvpn-client-export/openvpn-client-export-2.3.6.tgz
chmod 077 openvpn*
cd /usr/local/www/
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/vpn_openvpn_export.php
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/vpn_openvpn_export_shared.php
chmod 077 vpn_openvpn*
mkdir /etc/inc
mkdir /etc/inc/priv
cd /etc/inc/priv
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/openvpnexport.inc
chmod 077 openvpnexport.inc

After this is done, you can access it by adding /vpn_openvpn_export.php in to the OS URL( for exemle https://192.168.1.1/vpn_openvpn_export.php)


I hope this will help someone else until developers implement it in to the OPNsense core or as an addon.

Source: http://www.pfsense.com/packages/config/openvpn-client-export/openvpn-client-export.xml

Many thanks for sharing this!  I have been bashing my head for nearly a day trying to get this working... Thanks!  :D

Perfect, thanks, that's something to work with. I'll ponder a bit about how I can wrap this up as an easy to install test package.

Small improvement: if you need /etc/inc make it a soft-link to /usr/local/etc/inc where the include files reside now.

# ln -s /usr/local/etc/inc /etc/inc

I have made the symlink... Thanks again.

Quote from: franco on March 13, 2015, 01:55:42 PM
Perfect, thanks, that's something to work with. I'll ponder a bit about how I can wrap this up as an easy to install test package.

Small improvement: if you need /etc/inc make it a soft-link to /usr/local/etc/inc where the include files reside now.

# ln -s /usr/local/etc/inc /etc/inc

Thanks, franco, I don't know why I didn't think about symlink to begin with, I guess I gust want it to work quickly LOL. Anyway, I'm not sure if this is a latest version or not.

I've cleaned up a lot of the package code the last days, to avoid issues with the export tool I decided to implement this into the next version.
commit https://github.com/opnsense/core/commit/c7d388a8020597e6419565d23b65dc1573ec243e includes the necessary files and changes to the system.

Thanks for publishing the needed files, this saved a lot of time.