janjust wrotedepends a bit on your server config....
is 'script-security 2' present in the server config?
can you try
script-security 3 system
just to test; is there enough memory available for the external fork? does the script run stand-alone (i.e. just start the script on the command-line)
Here is the config from the server.
daemon
verb 4
status /opt/openvpn/status/vtun1.status 30
dev-type tun
dev vtun1
mode server
tls-server
topology p2p
keepalive 10 60
lport 443
proto tcp-server
ca /opt/openvpn/easy-rsa/keys/ca.crt
cert /opt/openvpn/easy-rsa/keys/csg2.crt
key /opt/openvpn/easy-rsa/keys/csg2.key
crl-verify /opt/openvpn/easy-rsa/keys/crl.pem
dh /opt/openvpn/easy-rsa/keys/dh2048.pem
server 10.x.x.x 255.255.248.0
script-security 3
client-config-dir /opt/openvpn/ccd
ccd-exclusive
client-connect /opt/openvpn/client-connect.sh
client-disconnect /opt/openvpn/client-connect.sh
push route 10.x.x.x 255.255.254.0
push route 10.x.x.x 255.255.255.0
push route 10.x.x.x 255.255.255.0
txqueuelen 3000
tcp-queue-limit 1000
tcp-nodelay
reneg-sec 28800
comp-lzo no
auth-user-pass-verify /opt/openvpn/radauth.pl via-env
Here is one of the clients:
client 1
dev tun
proto tcp
comp-lzo no
remote csg2 443
auth-retry nointeract
nobind
persist-key
persist-tun
ca /etc/config/sslca.crt
cert /etc/config/MA.crt
key /etc/config/MA.key
ns-cert-type server
verb 3
dev-node /dev/net/tun
pull
auth-user-pass /etc/config/up