pm13 wrote
If I want to access an environment variable say "ifconfig_remote" from command line of the OS running OpenVPN Server then how do I get the output. I have tried "echo $ifconfig_remote",
Imagine if you have 50 clients connected to your server, which
ifconfig_remote, for which client, do you require ?
pm13 wrote
tried exporting it from a bash script using "--client-connected" option but each time I get "undefined_variable" as output
That is not how your server OS works. And teaching you how your OS works is way beyond the scope of this Forum.
The variables are
only available to a script which was started by openvpn.