I have an openvpn-event script set up on an RT-N66U. If I understand it correctly, this same script is called for any and all of the openvpn clients. Is there a way to determine in the script which client is being referenced?
One of the openvpn variables available to the script is "config" name. Ideally, this would be "client1.ovpn", "client2.ovpn", etc. But the configurations for all the clients are named the same: "config.ovpn". Is there some way for the script to determine if it is being called for client1 or client2? An environment variable? Something to parse? Thanks.
One of the openvpn variables available to the script is "config" name. Ideally, this would be "client1.ovpn", "client2.ovpn", etc. But the configurations for all the clients are named the same: "config.ovpn". Is there some way for the script to determine if it is being called for client1 or client2? An environment variable? Something to parse? Thanks.