Team,
My openvpn auth script , Connection script , Disconnection script etc. - When they run blocking the whole openvpn process.
For example : the authentication script takes 5-15 seconds to perform database operation .
When any new user connection in progress I can see using "
strace" , that whole openvpn process waiting for auth script's output. Thus at that time no user can not connect. i.e if the script run for 2 minutes , The openvpn process will wait for 2 minutes , so it will not accept any new connection and will time out exiting clients. I am wondering if it is normal ... I can use "
nohup" to call the java jar asynchronously but it is not applicable here.
Can you please point our if anything wrong. I am using latest openvpn in Centos 6 64 bit box.
Same applicable for connect script . disconnect script.
Server.config
script-security 3
auth-user-pass-verify auth.sh via-env
auth.sh
java -jar auth.jar $username $password
valid=$?
if [ $valid == 0 ]; then
exit 0
else
exit 1
fi
Thank you