From d1cc3ed65eb1f00409d0b91fc8149431fb614e89 Mon Sep 17 00:00:00 2001 From: Oleksandr Kuchmystyi Date: Tue, 15 Sep 2026 12:10:16 +0300 Subject: ipsec: T8952: Allow per-peer strongSwan `unique` override for site-to-site peers VyOS does not expose the strongSwan `connections..unique` parameter for site-to-site peers. The swanctl default is `unique = no`, which only replaces existing SAs if the new one carries `INITIAL_CONTACT`. With `dpd_action = restart`, charon initiates new IKE_SAs without `INITIAL_CONTACT`, so duplicates accumulate on every DPD timeout. Previously the strongSwan `unique` connection policy could only be driven by the global "disable-uniqreqids" option, which set it to "never" for every connection. Site-to-site peers had no way to opt into stricter enforcement on their own. --- .../include/vpn-ipsec-unique.xml.i | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 interface-definitions/include/vpn-ipsec-unique.xml.i (limited to 'interface-definitions/include') diff --git a/interface-definitions/include/vpn-ipsec-unique.xml.i b/interface-definitions/include/vpn-ipsec-unique.xml.i new file mode 100644 index 000000000..bff64fee3 --- /dev/null +++ b/interface-definitions/include/vpn-ipsec-unique.xml.i @@ -0,0 +1,25 @@ + + + + Connection uniqueness enforcement policy + + never keep replace + + + never + Never enforce connection uniqueness + + + keep + Reject new connection attempts if the same peer has an active connection + + + replace + Delete existing connections when a new connection is established for the same peer + + + (never|keep|replace) + + + + -- cgit v1.2.3