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

--- Comment #1 from commit-h...@freebsd.org ---
A commit references this bug:

Author: eugen
Date: Wed May 10 19:41:53 UTC 2017
New revision: 318150
URL: https://svnweb.freebsd.org/changeset/base/318150

Log:
  ipfw nat and natd support multiple aliasing instances with "nat global"
feature
  that chooses right alias_address for outgoing packets that already have
  corresponding state in one of aliasing instances. This feature works just
fine
  for ICMP, UDP, TCP and SCTP packes but not for others. For example,
  outgoing PPtP/GRE packets always get alias_address of latest configured
  instance no matter whether such packets have corresponding state or not.

  This change unbreaks translation of transit PPtP/GRE connections
  for "nat global" case fixing a bug in static ProtoAliasOut() function
  that ignores its "create" argument and performs translation
  regardless of its value. This static function is called only
  by LibAliasOutLocked() function and only for packers other than
  ICMP, UDP, TCP and SCTP. LibAliasOutLocked() passes its "create"
  argument unmodified.

  We have only two consumers of LibAliasOutLocked() in the source tree
  calling it with "create" unequal to 1: "ipfw nat global" code and similar
  natd code having same problem. All other consumers of LibAliasOutLocked()
  call it with create = 1 and the patch is "no-op" for such cases.

  PR:           218968
  Approved by:  ae, vsevolod (mentor)
  MFC after:    1 week

Changes:
  head/sys/netinet/libalias/alias.c

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to