summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-12-30 22:57:08 +0100
committerGitHub <noreply@github.com>2023-12-30 22:57:08 +0100
commit14dc8a8962f0a52107913423a750f36ed8e45160 (patch)
tree5be8f070c2da60c8692b88a50db2bc44e07e4d2e /data/templates
parent1e46cd606d9d87226fe0400bf3a53bda360808d8 (diff)
parent656934e85cee799dba5b495d143f6be445ac22d5 (diff)
downloadvyos-1x-14dc8a8962f0a52107913423a750f36ed8e45160.tar.gz
vyos-1x-14dc8a8962f0a52107913423a750f36ed8e45160.zip
Merge pull request #2707 from lucasec/t5870
T5870: ipsec remote access VPN: add x509 ("pubkey") authentication.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/ipsec/swanctl/remote_access.j24
1 files changed, 3 insertions, 1 deletions
diff --git a/data/templates/ipsec/swanctl/remote_access.j2 b/data/templates/ipsec/swanctl/remote_access.j2
index 60d2d1807..01dc8a4a7 100644
--- a/data/templates/ipsec/swanctl/remote_access.j2
+++ b/data/templates/ipsec/swanctl/remote_access.j2
@@ -29,8 +29,10 @@
{% endif %}
}
remote {
+{% if rw_conf.authentication.client_mode == 'x509' %}
+ auth = pubkey
+{% elif rw_conf.authentication.client_mode.startswith("eap") %}
auth = {{ rw_conf.authentication.client_mode }}
-{% if rw_conf.authentication.client_mode.startswith("eap") %}
eap_id = %any
{% endif %}
}