summaryrefslogtreecommitdiff
path: root/data/templates/l2tp/chap-secrets.tmpl
blob: 0db295fdce370f8f777d841cf5b117c35bc2795f (plain)
1
2
3
4
5
6
7
8
9
10
# username  server  password  acceptable local IP addresses shaper
{% for user in authentication['local-users'] %}
{% if authentication['local-users'][user]['state'] == 'enabled' %}
{% if authentication['local-users'][user]['upload'] and authentication['local-users'][user]['download'] %}
{{ "%-12s" | format(user) }} * {{ "%-16s" | format(authentication['local-users'][user]['passwd']) }} {{ "%-16s" | format(authentication['local-users'][user]['ip']) }} {{ authentication['local-users'][user]['download'] }} / {{ authentication['local-users'][user]['upload'] }}
{% else %}
{{ "%-12s" | format(user) }} * {{ "%-16s" | format(authentication['local-users'][user]['passwd']) }} {{ "%-16s" | format(authentication['local-users'][user]['ip']) }}
{% endif %}
{% endif %}
{% endfor %}