Page 1 of 1

Pass details of client as parameters with client-connect command

Posted: Mon Oct 21, 2019 3:29 pm
by john_paul
I am making use of the client-connect functionality, but as of now it is simply running a single script any time a client connects. Is it possible to pass more parameters to this script, e.g. the common name of the client, the remote IP address etc.?

I have already tried using different client-connect commands in separate client-config-dir files but this doesn't work. It seems it needs to be in the server.conf file.

Otherwise, are there any command line tools the script can use to get the information I need from OpenVPN, other than just grepping a log file?

Re: Pass details of client as parameters with client-connect command

Posted: Sat Oct 26, 2019 9:45 am
by john_paul
OK I found out what I need is stored in environment variables