HomeFreeBSD

Do not require the presence of tunnel mode IPsec request for outbound

Description

Do not require the presence of tunnel mode IPsec request for outbound
security policies used by IPSEC_FORWARD() method.

The rationale for this requirement was the need for handling encrypted
replies. We can handle replies, only if they are destined for our
addresses. And since we are doing forwarding, this usually means that
source address of packet is not our own. But some users reported, that
they are doing source address translation for forwarded packets. In this
case pfil(9) does NAT and source address becomes our own, then packet
is sent to forwarding routine, where it can be matched by security policy
with transport mode IPsec request.

Details

Provenance
aeAuthored on
Parents
rS312376: Add back #else block accidentally removed in r312145
Branches
Unknown
Tags
Unknown