Re: [RFC] Fixing up TCP/UDP checksum for UDP encap. ESP4 packets in transport mode

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Miller <davem@...>
Cc: <christophe@...>, <netdev@...>
Date: Monday, July 6, 2009 - 9:58 pm

On Mon, Jul 06, 2009 at 06:54:11PM -0700, David Miller wrote:

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~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC] Fixing up TCP/UDP checksum for UDP encap. ESP4 pac..., Herbert Xu, (Mon Jul 6, 9:58 pm)