diff options
author | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2022-11-09 23:00:01 +0000 |
---|---|---|
committer | Alexandr Nedvedicky <sashan@cvs.openbsd.org> | 2022-11-09 23:00:01 +0000 |
commit | 5e114c420ed7c082cac33a3347615c988cc3c18d (patch) | |
tree | c822c7e272dee8df5c10601e305a0c462a68142e /share | |
parent | c476426cdb51f58d68eb6aea228356edc3d31619 (diff) |
simplify expiration of 'once' rules.
let packet to mark 'once' rule as expired. The rule
will be removed by pfctl(8) when rules are updated.
OK kn@
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man5/pf.conf.5 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index 3e5a17acb95..ce52d79d927 100644 --- a/share/man/man5/pf.conf.5 +++ b/share/man/man5/pf.conf.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: pf.conf.5,v 1.597 2022/07/24 12:22:12 jmc Exp $ +.\" $OpenBSD: pf.conf.5,v 1.598 2022/11/09 23:00:00 sashan Exp $ .\" .\" Copyright (c) 2002, Daniel Hartmeier .\" Copyright (c) 2003 - 2013 Henning Brauer <henning@openbsd.org> @@ -28,7 +28,7 @@ .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: July 24 2022 $ +.Dd $Mdocdate: November 9 2022 $ .Dt PF.CONF 5 .Os .Sh NAME @@ -661,10 +661,14 @@ When the rate is exceeded, all ICMP is blocked until the rate falls below 100 per 10 seconds again. .Pp .It Cm once -Creates a one shot rule that will remove itself from an active ruleset after -the first match. -In case this is the only rule in the anchor, the anchor will be destroyed -automatically after the rule is matched. +Creates a one shot rule. The first matching packet marks rule as expired. +The expired rule is never evaluated then. +.Xr pfctl 8 +does not report expired rules unless run in verbose mode ('-vv'). In verbose +mode +.Xr pfctl 8 +appends '# expired' to note the once rule which got hit by packet other +already. .Pp .It Cm probability Ar number Ns % A probability attribute can be attached to a rule, |