Re: [IPsec] Disabling replay protection

2023-02-23 Thread Tero Kivinen
Benjamin Schwartz writes: > On Mon, Feb 20, 2023 at 4:58 PM Michael Richardson wrote: > > Tero Kivinen wrote: >     > I mean what should other end do if the other end says he will not >     > do anti-replay checks? > > Not send unique relay values in the ESP. > > Yes but mos

Re: [IPsec] Disabling replay protection

2023-02-23 Thread Tero Kivinen
Michael Richardson writes: > Tero Kivinen wrote: > > I mean what should other end do if the other end says he will not > > do anti-replay checks? > > Not send unique relay values in the ESP. You can already do that on multicast SAs, but for unicast SAs the RFC4303 mandates the unique seq

Re: [IPsec] Disabling replay protection

2023-02-23 Thread Benjamin Schwartz
On Thu, Feb 23, 2023 at 7:13 AM Steffen Klassert < steffen.klass...@secunet.com> wrote: > On Tue, Feb 21, 2023 at 12:45:27PM -0500, Benjamin Schwartz wrote: > ... > > Reusing sequence numbers is extremely unsafe in ESP. Most notably, > AES-GCM > > fails entirely and **leaks the shared secret** i

Re: [IPsec] Disabling replay protection

2023-02-23 Thread Steffen Klassert
On Tue, Feb 21, 2023 at 12:45:27PM -0500, Benjamin Schwartz wrote: > On Mon, Feb 20, 2023 at 4:58 PM Michael Richardson wrote: > > > Tero Kivinen wrote: > > > I mean what should other end do if the other end says he will not > > > do anti-replay checks? > > > > Not send unique relay valu

Re: [IPsec] Disabling replay protection

2023-02-21 Thread Benjamin Schwartz
On Mon, Feb 20, 2023 at 4:58 PM Michael Richardson wrote: > Tero Kivinen wrote: > > I mean what should other end do if the other end says he will not > > do anti-replay checks? > > Not send unique relay values in the ESP. > Yes but mostly for AH. My goal is related to draft-xu-risav, w

Re: [IPsec] Disabling replay protection

2023-02-20 Thread Michael Richardson
Tero Kivinen wrote: > I mean what should other end do if the other end says he will not > do anti-replay checks? Not send unique relay values in the ESP. ___ IPsec mailing list IPsec@ietf.org https://www.ietf.org/mailman/listinfo/ipsec

[IPsec] Disabling replay protection

2023-02-20 Thread Tero Kivinen
Benjamin Schwartz writes: > Hi IPSECME, > > RFC 4302 (ESP) says "if an SA establishment protocol such as IKE is employed, > the receiver SHOULD notify the sender, during SA establishment, if the > receiver will not provide anti-replay protection". > > I haven't been able to find any mechanism for

Re: [IPsec] Disabling replay protection

2023-02-17 Thread Valery Smyslov
> > Another approach would be to generalize the Transform Type 5 > > as the way to control the replay protection status > > (see draft-ietf-ipsecme-g-ikev2-07, Section 2.6.) > > I guess that depends on what implementations do when seeing a > Transform Type 5 value with bit 1 set. Would we really w

Re: [IPsec] Disabling replay protection

2023-02-17 Thread Paul Wouters
On Fri, 17 Feb 2023, Valery Smyslov wrote: In IPsec the replay protection is a local matter of receiver, the sender must always increment the Sequence Number as if the replay protection is always on. Right. Another approach would be to generalize the Transform Type 5 as the way to control th

Re: [IPsec] Disabling replay protection

2023-02-16 Thread Valery Smyslov
Hi, > > Hi IPSECME, > > > > RFC 4302 (ESP) says "if an SA establishment protocol such as IKE is > > employed, the receiver SHOULD > notify the sender, during SA establishment, if the > > receiver will not provide anti-replay protection". > > > > I haven't been able to find any mechanism for this

Re: [IPsec] Disabling replay protection

2023-02-16 Thread Benjamin Schwartz
e: > On Thu, 16 Feb 2023, Benjamin Schwartz wrote: > > > Subject: [IPsec] Disabling replay protection > > > > Hi IPSECME, > > > > RFC 4302 (ESP) says "if an SA establishment protocol such as IKE is > employed, the receiver SHOULD notify the sender, duri

Re: [IPsec] Disabling replay protection

2023-02-16 Thread Paul Wouters
On Thu, 16 Feb 2023, Benjamin Schwartz wrote: Subject: [IPsec] Disabling replay protection Hi IPSECME, RFC 4302 (ESP) says "if an SA establishment protocol such as IKE is employed, the receiver SHOULD notify the sender, during SA establishment, if the receiver will not provide anti-r

[IPsec] Disabling replay protection

2023-02-16 Thread Benjamin Schwartz
Hi IPSECME, RFC 4302 (ESP) says "if an SA establishment protocol such as IKE is employed, the receiver SHOULD notify the sender, during SA establishment, if the receiver will not provide anti-replay protection". I haven't been able to find any mechanism for this in IKEv2 (or IKEv1). Is there a w