summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-11-26 07:49:51 +0100
committerGitHub <noreply@github.com>2024-11-26 07:49:51 +0100
commitf3a46fc296a488b3748182288b1cff4df39c4971 (patch)
tree5694564e12f2b2b04813a32419917d1526178001 /data/templates
parentefd86e5cbaf2cae68e431b83f6ca6c0093672e89 (diff)
parent5c7647bcc242d4b26cd9afdde1f084ef93916727 (diff)
downloadvyos-1x-f3a46fc296a488b3748182288b1cff4df39c4971.tar.gz
vyos-1x-f3a46fc296a488b3748182288b1cff4df39c4971.zip
Merge pull request #4198 from sever-sever/T264
T264: IPsec add base64 encoded secret-type feature
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/ipsec/swanctl.conf.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl.conf.j2 b/data/templates/ipsec/swanctl.conf.j2
index 698a9135e..64e7ea860 100644
--- a/data/templates/ipsec/swanctl.conf.j2
+++ b/data/templates/ipsec/swanctl.conf.j2
@@ -87,7 +87,11 @@ secrets {
id-{{ gen_uuid }} = "{{ id }}"
{% endfor %}
{% endif %}
+{% if psk_config.secret_type is vyos_defined('base64') %}
+ secret = 0s{{ psk_config.secret }}
+{% elif psk_config.secret_type is vyos_defined('plaintext') %}
secret = "{{ psk_config.secret }}"
+{% endif %}
}
{% endfor %}
{% endif %}