I set up an OpenVPN server on my Ubuntu 8.04
Everything works fines. I have a the client-connect option enable with a connect script that do some work depending on the CN.
And, on disconnection of that client, I want to run a script to clean up. It is very simple job and the script are good. But the --client-disconnect options only work on openvpn shutdown and not on client disconnection!
According to the Openvpn 2.1 man page, it's says that the script is executed if the --connect-script return 0 and on client instance shutdown. The connect script return 0 for sure because otherwise, the client can't connect. But instance shutdown... I can't believe it's the daemon of Openvpn... and checked, there is no child process spawn by openvpn for client.
So, help me out please on how to do this?
Here is my configuration :
local X.X.X.X --> (MY_IP)
server 10.8.0.0 255.255.255.0
keepalive 10 120
cipher BF-CBC # Blowfish (default)
keysize 448 # Max Blowfish