HomeFreeBSD

Do not use xform_ipip as decapsulation fallback.

Description

Do not use xform_ipip as decapsulation fallback.

xform_ipip was used as fallback with low priority for IPIP
encapsulated packets that were decrypted. In some cases
it can decapsulate packets, that it shouldn't. This leads to situations,
when wrong configurations are magically working. Also it can propagate
wrong ingress interface and this can break security.

Now we redesigned the IPSEC code and IPIP encapsulation is called directly
from ipsec_output, and decapsulation is done in the ipsec_input with m_striphdr.

Differential Revision: https://reviews.freebsd.org/D1220
MFC after: 1 month
Sponsored by: Yandex LLC

Details

Provenance
aeAuthored on
Parents
rS275132: Update build for LLDB snapshot at upstream rev 216948
Branches
Unknown
Tags
Unknown

Event Timeline