summaryrefslogtreecommitdiff
path: root/data/templates/ocserv/radius_conf.j2
blob: 65548e3ad0bca2563786a44f966438e7048ef81d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
### generated by vpn_openconnect.py ###
nas-identifier VyOS

#### Accounting
{% if "radius" in accounting['mode'] %}
{%     for acctsrv in accounting['radius']['server'] %}
{%         if not "disable" in accounting['radius']['server'][acctsrv] %}
{%             if "port" in accounting['radius']['server'][acctsrv] %}
acctserver {{ acctsrv }}:{{ accounting['radius']['server'][acctsrv]['port'] }}
{%             else %}
acctserver {{ acctsrv }}
{%             endif %}
{%         endif %}
{%     endfor %}
{% endif %}

#### Authentication
{% if "radius" in authentication['mode'] %}
{%     for authsrv in authentication['radius']['server'] %}
{%         if not "disable" in authentication['radius']['server'][authsrv] %}
{%             if "port" in authentication['radius']['server'][authsrv] %}
authserver {{ authsrv }}:{{ authentication['radius']['server'][authsrv]['port'] }}
{%             else %}
authserver {{ authsrv }}
{%             endif %}
{%         endif %}
{%     endfor %}
radius_timeout {{ authentication['radius']['timeout'] }}
{%     if source_address %}
bindaddr {{ authentication['radius']['source_address'] }}
{%     else %}
bindaddr *
{%     endif %}
{% endif %}

servers /run/ocserv/radius_servers
dictionary /etc/radcli/dictionary
default_realm
radius_retries 3
#