[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 8 12:40:55 UTC 2017


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

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

Author: ae
Date: Sun Jan  8 12:40:08 UTC 2017
New revision: 311679
URL: https://svnweb.freebsd.org/changeset/base/311679

Log:
  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
  MFC after:    1 week

Changes:
  head/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