client-connect script ?

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
BrnVrn
OpenVpn Newbie
Posts: 9
Joined: Wed Oct 10, 2012 12:44 pm

client-connect script ?

Post by BrnVrn » Thu Oct 11, 2012 3:20 pm

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

yespiritu13y
OpenVpn Newbie
Posts: 1
Joined: Tue Nov 27, 2012 6:10 am

Re: client-connect script ?

Post by yespiritu13y » Tue Nov 27, 2012 6:12 am

Possible "script-security" option should be corrected.

Post Reply