mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
ocserv: Enable config-per-user by default as well as the route-add-cmd
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
This commit is contained in:
@@ -277,8 +277,8 @@ ping-leases = false
|
|||||||
# based on a user or group. The syntax depends on the input accepted
|
# based on a user or group. The syntax depends on the input accepted
|
||||||
# by the commands route-add-cmd and route-del-cmd (see below).
|
# by the commands route-add-cmd and route-del-cmd (see below).
|
||||||
|
|
||||||
#config-per-user = /etc/config/ocserv-dir/config-per-user/
|
config-per-user = /etc/config/ocserv-dir/config-per-user/
|
||||||
#config-per-group = /etc/config/ocserv-dir/config-per-group/
|
config-per-group = /etc/config/ocserv-dir/config-per-group/
|
||||||
|
|
||||||
# When config-per-xxx is specified and there is no group or user that
|
# When config-per-xxx is specified and there is no group or user that
|
||||||
# matches, then utilize the following configuration.
|
# matches, then utilize the following configuration.
|
||||||
@@ -309,8 +309,8 @@ ping-leases = false
|
|||||||
# The following example is from linux systems. %{R} should be something
|
# The following example is from linux systems. %{R} should be something
|
||||||
# like 192.168.2.0/24
|
# like 192.168.2.0/24
|
||||||
|
|
||||||
#route-add-cmd = "ip route add %{R} dev %{D}"
|
route-add-cmd = "/sbin/route add -net %{R} dev %{D}"
|
||||||
#route-del-cmd = "ip route delete %{R} dev %{D}"
|
route-del-cmd = "/sbin/route del -net %{R} dev %{D}"
|
||||||
|
|
||||||
# This option allows to forward a proxy. The special strings '%{U}'
|
# This option allows to forward a proxy. The special strings '%{U}'
|
||||||
# and '%{G}', if present will be replaced by the username and group name.
|
# and '%{G}', if present will be replaced by the username and group name.
|
||||||
|
|||||||
Reference in New Issue
Block a user