]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r335569:
authorkp <kp@FreeBSD.org>
Fri, 29 Jun 2018 16:46:19 +0000 (16:46 +0000)
committerkp <kp@FreeBSD.org>
Fri, 29 Jun 2018 16:46:19 +0000 (16:46 +0000)
commit9e4899f2d2193db78e985cc427fcfb870a20e40a
treee791c4d3ff0c84d29e873344fa683e2d559b09dd
parent0b39c762ec1d16fa2bca8a386d2e1af10e106a5e
MFC r335569:

pf: Support "return" statements in passing rules when they fail.

Normally pf rules are expected to do one of two things: pass the traffic or
block it. Blocking can be silent - "drop", or loud - "return", "return-rst",
"return-icmp". Yet there is a 3rd category of traffic passing through pf:
Packets matching a "pass" rule but when applying the rule fails. This happens
when redirection table is empty or when src node or state creation fails. Such
rules always fail silently without notifying the sender.

Allow users to configure this behaviour too, so that pf returns an error packet
in these cases.

PR: 226850
Submitted by: Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by: InnoGames GmbH
sbin/pfctl/parse.y
share/man/man5/pf.conf.5
sys/netpfil/pf/pf.c