Re: [RFC] Fixing up TCP/UDP checksum for UDP encap. ESP4 packets in transport mode
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2009-07-07 01:58:51
From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2009-07-07 01:58:51
On Mon, Jul 06, 2009 at 06:54:11PM -0700, David Miller wrote:
Hmmm, aren't we talking about packets which were protected by either a hash, strong encryption, or both at some point?
Only if there is no inner NAT, i.e., only if this patch isn't needed. Otherwise Source --- GW1 ---- GW2 --- Dest the path between Source and GW1, will be unprotected if transport mode is used between GW1 and GW2. The only bit protected by IPsec's hash is between GW1 and GW2. When the traffic comes back, then the bit between Dest and GW2 will be unprotected. This is why the only safe way to use this would be if your traffic is one-way and you only had inner NAT at the other end. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} [off-list ref] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt