mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
Simplify script calling by using the environment
This commit is contained in:
15
doc/ocserv.1
15
doc/ocserv.1
@@ -2,7 +2,7 @@
|
||||
.\"
|
||||
.\" DO NOT EDIT THIS FILE (ocserv-args.man)
|
||||
.\"
|
||||
.\" It has been AutoGen-ed February 12, 2013 at 04:34:58 PM by AutoGen 5.16
|
||||
.\" It has been AutoGen-ed February 12, 2013 at 06:56:01 PM by AutoGen 5.16
|
||||
.\" From the definitions ../src/ocserv-args.def.tmp
|
||||
.\" and the template file agman-cmd.tpl
|
||||
.\"
|
||||
@@ -215,13 +215,12 @@ cookie\-validity = 14400
|
||||
#cookie\-db = /var/tmp/cookies.db
|
||||
.sp
|
||||
# Script to call when a client connects and obtains an IP
|
||||
# Parameters: username groupname hostname device IP\-REAL IP\-LOCAL IP\-REMOTE
|
||||
# hostname is the hostname selected by the client
|
||||
# IP\-REAL is the remote IP of the client,
|
||||
# IP\-LOCAL is the local IP in the P\-t\-P connection and IP\-REMOTE
|
||||
# is the VPN client IP.
|
||||
connect\-script = /bin/echo
|
||||
disconnect\-script = /bin/echo
|
||||
# Parameters are passed on the environment.
|
||||
# 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 connect), IP_REMOTE (the VPN IP of the client).
|
||||
#connect\-script = /usr/bin/myscript
|
||||
#disconnect\-script = /usr/bin/myscript
|
||||
.sp
|
||||
# UTMP
|
||||
use\-utmp = true
|
||||
|
||||
Reference in New Issue
Block a user