Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 May 2019 10:17:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 237477] kernel option PF_DEFAULT_TO_DROP breaks rdr rules with pass keyword.
Message-ID:  <bug-237477-7501-d8QX7cAYdx@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-237477-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-237477-7501@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=3D237477

Kristof Provost <kp@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kp@freebsd.org

--- Comment #1 from Kristof Provost <kp@freebsd.org> ---
I think I see what's going on there.
PF_DEFAULT_TO_DROP sets V_pf_default_rule.action =3D PF_DROP;

A 'rdr pass' sets the 'natpass' flag on a rule (I think, not 100% sure), wh=
ich
causes us to do:
if (nr->natpass)
    r =3D NULL;

in pf_test_rule().
That's intended to just select the default rule, which usually passes traff=
ic.
With 'PF_DEFAULT_TO_DROP' that doesn't work as expected.

Note that I'm not picking this bug up right now. It's on my todo list with =
many
dozens of others. I make no promises about when I'll come back to this.

--=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-237477-7501-d8QX7cAYdx>