Added default-user-config and default-group-config configuration options.

These allow setting a configuration file that will be loaded if a
user-specific or group-specific configuration file isn't found.
This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-14 13:17:45 +02:00
parent 3f9a215f53
commit 788560b9ce
5 changed files with 35 additions and 5 deletions

View File

@@ -197,6 +197,10 @@ run-as-group = daemon
# The name of the tun device
device = vpns
# Whether the generated IPs will be predictable, i.e., IP stays the
# same for the same user when possible.
predictable-ips = true
# The default domain to be advertised
default-domain = example.com
@@ -261,6 +265,12 @@ route = 192.168.5.0/255.255.255.0
#config-per-user = /etc/ocserv/config-per-user/
#config-per-group = /etc/ocserv/config-per-group/
# When config-per-xxx is specified and there is no group or user that
# matches, then utilize the following configuration.
#default-user-config = /etc/ocserv/defaults/user.conf
#default-group-config = /etc/ocserv/defaults/group.conf
# The system command to use to setup a route. %R will be replaced with the
# route/mask and %D with the (tun) device.
#