From dbc174dd2b8558cb7a8ad7daf38b8ef38702e0fa Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 5 Apr 2020 23:21:31 +0200 Subject: ipsec: T2230: move inlined templates to dedicated files --- data/templates/ipsec/ipsec.secrets.tmpl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 data/templates/ipsec/ipsec.secrets.tmpl (limited to 'data/templates/ipsec/ipsec.secrets.tmpl') 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}} -- cgit v1.2.3