Page 1 of 1

client-connect script ?

Posted: Thu Oct 11, 2012 3:20 pm
by BrnVrn
Hi,

There is a text area in "Advanced VPN Settings" / "Additional OpenVPN Config Directives (Advanced)" / "Server Config Directives"

There, I typed:

Code: Select all

script-security 3
client-connect "/etc/openvpn/client-connect.sh"
The script has permission: 755.
it is as simple as:

Code: Select all

#!/bin/bash
exit 0
I still get this message in the /var/log/openvpnas.log :
client-connect command failed: could not execute external program
I guess there is some kind of chroot. Where should I put the script?

Thanks
Bruno

Re: client-connect script ?

Posted: Tue Nov 27, 2012 6:12 am
by yespiritu13y
Possible "script-security" option should be corrected.