summaryrefslogtreecommitdiff
path: root/data/templates/openvpn/server.conf.tmpl
diff options
context:
space:
mode:
authorKim Hagen <kim@sentrium.io>2021-09-03 04:20:56 -0500
committerKim Hagen <kim@sentrium.io>2021-09-03 04:20:56 -0500
commit2a27f35ea595a86a37fce093574c015dd7add2d9 (patch)
tree14ca2dd2e7404e9fdbc72c9be4867c9b3f257aac /data/templates/openvpn/server.conf.tmpl
parentfa101ed0e160c5f8cb4fd1b714ebddd4134b4798 (diff)
downloadvyos-1x-2a27f35ea595a86a37fce093574c015dd7add2d9.tar.gz
vyos-1x-2a27f35ea595a86a37fce093574c015dd7add2d9.zip
change secret file location in template
Diffstat (limited to 'data/templates/openvpn/server.conf.tmpl')
-rw-r--r--data/templates/openvpn/server.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/openvpn/server.conf.tmpl b/data/templates/openvpn/server.conf.tmpl
index e6dd9fcbc..1348912b3 100644
--- a/data/templates/openvpn/server.conf.tmpl
+++ b/data/templates/openvpn/server.conf.tmpl
@@ -128,7 +128,7 @@ push "dhcp-option DNS6 {{ nameserver }}"
push "dhcp-option DOMAIN {{ server.domain_name }}"
{% endif %}
{% if server['2fa']['totp'] is defined and server['2fa']['totp'] is not none %}
-plugin "/usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-otp.so" "otp_secrets=/config/otp-secrets otp_slop=
+plugin "/usr/lib/x86_64-linux-gnu/openvpn/plugins/openvpn-otp.so" "otp_secrets=/config/auth/openvpn/{{ ifname }}-otp-secrets otp_slop=
{{- server['2fa']['totp']['slop']|default(180) }} totp_t0=
{{- server['2fa']['totp']['t0']|default(0) }} totp_step=
{{- server['2fa']['totp']['step']|default(30) }} totp_digits=