From a156cb8ddb656ef422c004a50c91c3e8129fa5cc Mon Sep 17 00:00:00 2001 From: shapiro125 Date: Mon, 6 May 2019 14:22:42 -0400 Subject: [PATCH] add ipv6 --- roles/strongswan/templates/ipsec.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/strongswan/templates/ipsec.conf.j2 b/roles/strongswan/templates/ipsec.conf.j2 index 7cd27c90..1c1711ad 100644 --- a/roles/strongswan/templates/ipsec.conf.j2 +++ b/roles/strongswan/templates/ipsec.conf.j2 @@ -31,7 +31,7 @@ conn %default rightauth=pubkey rightsourceip={{ strongswan_network }},{{ strongswan_network_ipv6 }} {% if algo_local_dns or dns_encryption %} - rightdns={{ local_service_ip }} + rightdns={{ local_service_ip }}{{ ",FCAA::1" if ipv6_support else '' }} {% else %} rightdns={% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %} {% endif %}