[Bug 213869] when setting an ipsec policy with spdadd src[port], outbound traffic from 2049/tcp is not encrypted

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Jan 15 15:43:26 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213869

--- Comment #11 from commit-hook at freebsd.org ---
A commit references this bug:

Author: ae
Date: Sun Jan 15 15:43:19 UTC 2017
New revision: 312233
URL: https://svnweb.freebsd.org/changeset/base/312233

Log:
  MFC r311679:
    Add direction argument to ipsec_setspidx_inpcb() function.

    This function is used only by ipsec_getpolicybysock() to fill security
    policy index selector for locally generated packets (that have INPCB).
    The function incorrectly assumes that spidx is the same for both
directions.
    Fix this by using new direction argument to specify correct INPCB security
    policy - sp_in or sp_out. There is no need to fill both policy indeces,
    because they are overwritten for each packet.
    This fixes security policy matching for outbound packets when user has
    specified TCP/UDP ports in the security policy upperspec.

    PR:         213869

Changes:
_U  stable/11/
  stable/11/sys/netipsec/ipsec.c

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list