From c31df5a5b5c1d1dfee063fe63a610c8bf71271f0 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Thu, 6 Mar 2025 22:53:05 +0100 Subject: ipsec: T7225: fix dynamic generation of IKE DiffieHellmanGroup in iOS profile Commit e97d86e ("T6617: T6618: vpn ipsec remote-access: fix profile generators") added a bug when working with DiffieHellmanGroup, it started becoming a boolead and no longer referencing the DH groups itself. This has been fixed. --- data/templates/ipsec/ios_profile.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/templates/ipsec/ios_profile.j2 b/data/templates/ipsec/ios_profile.j2 index 68e02b498..6993f82bf 100644 --- a/data/templates/ipsec/ios_profile.j2 +++ b/data/templates/ipsec/ios_profile.j2 @@ -78,9 +78,9 @@ {{ esp_encryption.encryption }} IntegrityAlgorithm {{ esp_encryption.hash }} -{% if esp_encryption.pfs is vyos_defined %} +{% if ike_encryption.dh_group is vyos_defined %} DiffieHellmanGroup - {{ esp_encryption.pfs }} + {{ ike_encryption.dh_group }} {% endif %} -- cgit v1.2.3