OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 15.1 Legacy Series »
  • [SOLVED] How install OpenVPN Client Export
« previous next »
  • Print
Pages: [1]

Author Topic: [SOLVED] How install OpenVPN Client Export  (Read 36932 times)

lem

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
[SOLVED] How install OpenVPN Client Export
« on: March 05, 2015, 02:03:41 pm »
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.
« Last Edit: March 25, 2015, 08:46:34 am by franco »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13970
  • Karma: 1211
    • View Profile
Re: How install OpenVPN Client Export
« Reply #1 on: March 05, 2015, 05:28:47 pm »
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.
Logged

lem

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: How install OpenVPN Client Export
« Reply #2 on: March 05, 2015, 05:54:58 pm »
Could you point me in right direction for configuring the client manually? I've created the required certificates.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13970
  • Karma: 1211
    • View Profile
Re: How install OpenVPN Client Export
« Reply #3 on: March 05, 2015, 06:04:36 pm »
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.
Logged

lem

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: How install OpenVPN Client Export
« Reply #4 on: March 05, 2015, 06:45:05 pm »
Sorry, but I just want to use OpenVPN with the firewall I've bought.
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13970
  • Karma: 1211
    • View Profile
Re: How install OpenVPN Client Export
« Reply #5 on: March 05, 2015, 07:24:31 pm »
I understand.
Logged

igorek24

  • Newbie
  • *
  • Posts: 13
  • Karma: 6
    • View Profile
Re: How install OpenVPN Client Export
« Reply #6 on: March 12, 2015, 05:55:59 am »
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.
« Last Edit: March 12, 2015, 07:03:33 pm by igorek24 »
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13970
  • Karma: 1211
    • View Profile
Re: How install OpenVPN Client Export
« Reply #7 on: March 12, 2015, 06:54:16 am »
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. :)
Logged

ristridin

  • Newbie
  • *
  • Posts: 32
  • Karma: 9
    • View Profile
Re: How install OpenVPN Client Export
« Reply #8 on: March 12, 2015, 07:50:42 am »
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! :)
Logged

igorek24

  • Newbie
  • *
  • Posts: 13
  • Karma: 6
    • View Profile
Re: How install OpenVPN Client Export
« Reply #9 on: March 12, 2015, 05:38:41 pm »
OK, here is what I did, login in to the OPNSense via ssh (You can use PuTTy) and run this commands.
Code: [Select]
cd /usr/local/pkg/
Code: [Select]
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/openvpn-client-export.inc
Code: [Select]
fetch https://files.pfsense.org/packages/openvpn-client-export/openvpn-client-export-2.3.6.tgz
Code: [Select]
chmod 077 openvpn*
Code: [Select]
cd /usr/local/www/
Code: [Select]
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/vpn_openvpn_export.php
Code: [Select]
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/vpn_openvpn_export_shared.php
Code: [Select]
chmod 077 vpn_openvpn*
Code: [Select]
mkdir /etc/inc
Code: [Select]
mkdir /etc/inc/priv
Code: [Select]
cd /etc/inc/priv
Code: [Select]
fetch https://packages.pfsense.org/packages/config/openvpn-client-export/openvpnexport.inc
Code: [Select]
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
« Last Edit: March 12, 2015, 05:45:04 pm by igorek24 »
Logged

frijj2k

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: How install OpenVPN Client Export
« Reply #10 on: March 13, 2015, 12:24:00 pm »
Many thanks for sharing this!  I have been bashing my head for nearly a day trying to get this working... Thanks!  :D
Logged

franco

  • Administrator
  • Hero Member
  • *****
  • Posts: 13970
  • Karma: 1211
    • View Profile
Re: How install OpenVPN Client Export
« Reply #11 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
Logged

frijj2k

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: How install OpenVPN Client Export
« Reply #12 on: March 13, 2015, 03:32:29 pm »
I have made the symlink... Thanks again.
Logged

igorek24

  • Newbie
  • *
  • Posts: 13
  • Karma: 6
    • View Profile
Re: How install OpenVPN Client Export
« Reply #13 on: March 13, 2015, 05:22:40 pm »
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.
Logged

AdSchellevis

  • Administrator
  • Hero Member
  • *****
  • Posts: 855
  • Karma: 166
    • View Profile
Re: How install OpenVPN Client Export
« Reply #14 on: March 23, 2015, 07:42:01 pm »
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.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 15.1 Legacy Series »
  • [SOLVED] How install OpenVPN Client Export
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2