summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/ipsec.secrets.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-05 23:21:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-05 23:21:31 +0200
commitdbc174dd2b8558cb7a8ad7daf38b8ef38702e0fa (patch)
treef7edc85891e79a3ed5d6d9987721c825d1f5c1a9 /data/templates/ipsec/ipsec.secrets.tmpl
parent6b4aed73cbb16d6f0d4b310230a517d36578c8ae (diff)
downloadvyos-1x-dbc174dd2b8558cb7a8ad7daf38b8ef38702e0fa.tar.gz
vyos-1x-dbc174dd2b8558cb7a8ad7daf38b8ef38702e0fa.zip
ipsec: T2230: move inlined templates to dedicated files
Diffstat (limited to 'data/templates/ipsec/ipsec.secrets.tmpl')
-rw-r--r--data/templates/ipsec/ipsec.secrets.tmpl7
1 files changed, 7 insertions, 0 deletions
diff --git a/data/templates/ipsec/ipsec.secrets.tmpl b/data/templates/ipsec/ipsec.secrets.tmpl
new file mode 100644
index 000000000..55c010a3b
--- /dev/null
+++ b/data/templates/ipsec/ipsec.secrets.tmpl
@@ -0,0 +1,7 @@
+{{delim_ipsec_l2tp_begin}}
+{% if ipsec_l2tp_auth_mode == 'pre-shared-secret' %}
+{{outside_addr}} %any : PSK "{{ipsec_l2tp_secret}}"
+{% elif ipsec_l2tp_auth_mode == 'x509' %}
+: RSA {{server_key_file_copied}}
+{% endif%}
+{{delim_ipsec_l2tp_end}}