Summary
Provide configuration options for connect-script and disconnect-script.
Use case
ocserv provides for a script to be executed upon user connection and/or disconnection.
# Script to call when a client connects and obtains an IP # Parameters are passed on the environment. # REASON, USERNAME, GROUPNAME, HOSTNAME (the hostname selected by client), # DEVICE, IP_REAL (the real IP of the client), IP_LOCAL (the local IP # in the P-t-P connection), IP_REMOTE (the VPN IP of the client), # ID (a unique numeric ID); REASON may be "connect" or "disconnect". #connect-script = /scripts/ocserv-script #disconnect-script = /scripts/ocserv-script
Additional information
N/A