mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
Introduced the notion of virtual hosts
This provides virtualized server configurations which take effect after client connection when client hello is received. Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -385,7 +385,7 @@ rekey-method = ssl
|
||||
|
||||
# Script to call when a client connects and obtains an IP.
|
||||
# The following parameters are passed on the environment.
|
||||
# REASON, USERNAME, GROUPNAME, DEVICE, IP_REAL (the real IP of the client),
|
||||
# REASON, VHOST, USERNAME, GROUPNAME, DEVICE, IP_REAL (the real IP of the client),
|
||||
# IP_REAL_LOCAL (the local interface IP the client connected), IP_LOCAL
|
||||
# (the local IP in the P-t-P connection), IP_REMOTE (the VPN IP of the client),
|
||||
# IPV6_LOCAL (the IPv6 local address if there are both IPv4 and IPv6
|
||||
@@ -671,3 +671,20 @@ dtls-legacy = true
|
||||
# and '%{G}', if present will be replaced by the username and group name.
|
||||
#custom-header = "X-My-Header: hi there"
|
||||
|
||||
|
||||
|
||||
# An example virtual host with different authentication methods serviced
|
||||
# by this server.
|
||||
|
||||
[vhost:www.example.com]
|
||||
auth = "certificate"
|
||||
|
||||
ca-cert = ../tests/certs/ca.pem
|
||||
|
||||
server-cert = ../tests/certs/server-cert-secp521r1.pem
|
||||
server-key = ../tests/certs/server-key-secp521r1.pem
|
||||
|
||||
ipv4-network = 192.168.2.0
|
||||
ipv4-netmask = 255.255.255.0
|
||||
|
||||
cert-user-oid = 0.9.2342.19200300.100.1.1
|
||||
|
||||
Reference in New Issue
Block a user