Monday, April 4, 2016

ClearOS 7 - Webconfig OpenVPN page returning error

If your ClearOS webconfig OpenVPN page is returning error, be it the app configuration page or the user certificate page URL below

https://server:81/app/openvpn
https://server:81/app/user_certificates

then most probably you have renamed or created a different configuration file name other than the default filename which are client.conf and client-tcp,conf

If you would like to custom name the configuration files, you will have to edit the file

/usr/clearos/apps/openvpn/libraries/OpenVPN.php

and edit the line below to suit your configuration filename

 const FILE_CLIENTS_CONFIG = '/etc/openvpn/your-config-filename.conf';




No comments: