Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2017 15:43:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 213869] when setting an ipsec policy with spdadd src[port], outbound traffic from 2049/tcp is not encrypted
Message-ID:  <bug-213869-2472-RShjd7PlAV@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213869-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213869-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213869

--- Comment #11 from commit-hook@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 secur=
ity
    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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213869-2472-RShjd7PlAV>