From bd4588827b563022ce5fb98b1345b787b9194176 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 10 Aug 2022 19:51:48 +0000 Subject: ipsec: T4118: Change vpn ipsec syntax for IKE ESP and peer Migration and Change boolean nodes "enable/disable" to disable-xxxx, enable-xxxx and just xxx for VPN IPsec configurations - IKE changes: - replace 'ipsec ike-group mobike disable' => 'ipsec ike-group disable-mobike' - replace 'ipsec ike-group ikev2-reauth yes|no' => 'ipsec ike-group ikev2-reauth' - ESP changes: - replace 'ipsec esp-group compression enable' => 'ipsec esp-group compression' - PEER changes: - replace: 'peer id xxx' => 'peer local-id xxx' - replace: 'peer force-encapsulation enable' => 'peer force-udp-encapsulation' - add option: 'peer remote-address x.x.x.x' Add 'peer remote-address ' via migration script --- .../include/ipsec/authentication-id.xml.i | 6 +- .../include/ipsec/remote-address.xml.i | 30 +++++++ .../include/version/ipsec-version.xml.i | 2 +- interface-definitions/vpn-ipsec.xml.in | 93 ++++------------------ 4 files changed, 50 insertions(+), 81 deletions(-) create mode 100644 interface-definitions/include/ipsec/remote-address.xml.i (limited to 'interface-definitions') diff --git a/interface-definitions/include/ipsec/authentication-id.xml.i b/interface-definitions/include/ipsec/authentication-id.xml.i index 4967782ec..4e0b848c3 100644 --- a/interface-definitions/include/ipsec/authentication-id.xml.i +++ b/interface-definitions/include/ipsec/authentication-id.xml.i @@ -1,10 +1,10 @@ - + - ID for peer authentication + Local ID for peer authentication txt - ID used for peer authentication + Local ID used for peer authentication diff --git a/interface-definitions/include/ipsec/remote-address.xml.i b/interface-definitions/include/ipsec/remote-address.xml.i new file mode 100644 index 000000000..ba96290d0 --- /dev/null +++ b/interface-definitions/include/ipsec/remote-address.xml.i @@ -0,0 +1,30 @@ + + + + IPv4 or IPv6 address of the remote peer + + ipv4 + IPv4 address of the remote peer + + + ipv6 + IPv6 address of the remote peer + + + hostname + Fully qualified domain name of the remote peer + + + any + Allow any IP address of the remote peer + + + + + + (any) + + + + + diff --git a/interface-definitions/include/version/ipsec-version.xml.i b/interface-definitions/include/version/ipsec-version.xml.i index 59295cc91..1c978e8e6 100644 --- a/interface-definitions/include/version/ipsec-version.xml.i +++ b/interface-definitions/include/version/ipsec-version.xml.i @@ -1,3 +1,3 @@ - + diff --git a/interface-definitions/vpn-ipsec.xml.in b/interface-definitions/vpn-ipsec.xml.in index d36fbb024..5887a349f 100644 --- a/interface-definitions/vpn-ipsec.xml.in +++ b/interface-definitions/vpn-ipsec.xml.in @@ -24,23 +24,9 @@ - ESP compression - - disable enable - - - disable - Disable ESP compression - - - enable - Enable ESP compression - - - (disable|enable) - + Enable ESP compression + - disable @@ -309,20 +295,7 @@ Re-authentication of the remote peer during an IKE re-key (IKEv2 only) - - yes no - - - yes - Enable remote host re-authentication during an IKE rekey (currently broken due to a strongswan bug) - - - no - Disable remote host re-authenticaton during an IKE rekey - - - (yes|no) - + @@ -357,25 +330,11 @@ 28800 - + - Enable MOBIKE Support (IKEv2 only) - - enable disable - - - enable - Enable MOBIKE - - - disable - Disable MOBIKE - - - (enable|disable) - + Disable MOBIKE Support (IKEv2 only) + - enable @@ -929,23 +888,15 @@ - VPN peer - - ipv4 - IPv4 address of the peer - - - ipv6 - IPv6 address of the peer - + Connection name of the peer txt - Hostname of the peer - - - <@text> - ID of the peer + Connection name of the peer + + [-_a-zA-Z0-9|@]+ + + Peer connection name must be alphanumeric and can contain hyphen and underscores #include @@ -1031,23 +982,10 @@ #include #include - + - Force UDP Encapsulation for ESP payloads - - enable disable - - - enable - Force UDP encapsulation - - - disable - Do not force UDP encapsulation - - - (enable|disable) - + Force UDP encapsulation + #include @@ -1075,6 +1013,7 @@ #include + #include Peer tunnel -- cgit v1.2.3