Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2023 17:07:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        pf@FreeBSD.org
Subject:   [Bug 274850] Packets are disappearing when both PF "divert-to" and "Dnpipe" rules are activated simultaneously
Message-ID:  <bug-274850-16861-95XhB6wwha@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274850-16861@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274850-16861@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=3D274850

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dfe3bb40b9e807d4010617de1ef040ba3a=
a623487

commit fe3bb40b9e807d4010617de1ef040ba3aa623487
Author:     Igor Ostapenko <pm@igoro.pro>
AuthorDate: 2023-11-17 16:04:01 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-11-17 16:06:16 +0000

    pf: fix dummynet + ipdivert use case

    Dummynet re-injects an mbuf with MTAG_IPFW_RULE added, and the same mtag
    is used by divert(4) as parameters for packet diversion.

    If according to pf rule set a packet should go through dummynet first
    and through ipdivert after then mentioned mtag must be removed after
    dummynet not to make ipdivert think that this is its input parameters.

    At the very beginning ipfw consumes this mtag what means the same
    behavior with tag clearing after dummynet.

    And after fabf705f4b5a pf passes parameters to ipdivert using its
    personal MTAG_PF_DIVERT mtag.

    PR:             274850
    Reviewed by:    kp
    Differential Revision:  https://reviews.freebsd.org/D42609

 sys/netpfil/pf/pf.c               |  27 +++++++--
 tests/sys/netpfil/pf/divert-to.sh | 118 ++++++++++++++++++++++++++++++++++=
+++-
 2 files changed, 139 insertions(+), 6 deletions(-)

--=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-274850-16861-95XhB6wwha>