1.\" $OpenBSD: pfctl.8,v 1.138 2008/06/10 20:55:02 mcbride Exp $ 2.\" 3.\" Copyright (c) 2001 Kjell Wooding. All rights reserved. 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright 9.\" notice, this list of conditions and the following disclaimer. 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 3. The name of the author may not be used to endorse or promote products 14.\" derived from this software without specific prior written permission. 15.\" 16.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 17.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 18.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 19.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 20.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 21.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26.\" 27.Dd December 30, 2025 28.Dt PFCTL 8 29.Os 30.Sh NAME 31.Nm pfctl 32.Nd control the packet filter (PF) device 33.Sh SYNOPSIS 34.Nm pfctl 35.Bk -words 36.Op Fl AdeghMmNnOPqRrvz 37.Op Fl a Ar anchor 38.Oo Fl D Ar macro Ns = 39.Ar value Oc 40.Op Fl F Ar modifier 41.Op Fl f Ar file 42.Op Fl i Ar interface 43.Op Fl K Ar host | network 44.Xo 45.Oo Fl k 46.Ar host | network | label | id | gateway | source | nat 47.Oc Xc 48.Op Fl o Ar level 49.Op Fl p Ar device 50.Op Fl s Ar modifier 51.Xo 52.Oo Fl t Ar table 53.Fl T Ar command 54.Op Ar address ... 55.Oc Xc 56.Op Fl x Ar level 57.Ek 58.Sh DESCRIPTION 59The 60.Nm 61utility communicates with the packet filter device using the 62ioctl interface described in 63.Xr pf 4 . 64It allows ruleset and parameter configuration and retrieval of status 65information from the packet filter. 66.Pp 67Packet filtering restricts the types of packets that pass through 68network interfaces entering or leaving the host based on filter 69rules as described in 70.Xr pf.conf 5 . 71The packet filter can also replace addresses and ports of packets. 72Replacing source addresses and ports of outgoing packets is called 73NAT (Network Address Translation) and is used to connect an internal 74network (usually reserved address space) to an external one (the 75Internet) by making all connections to external hosts appear to 76come from the gateway. 77Replacing destination addresses and ports of incoming packets 78is used to redirect connections to different hosts and/or ports. 79A combination of both translations, bidirectional NAT, is also 80supported. 81Translation rules are described in 82.Xr pf.conf 5 . 83.Pp 84When the variable 85.Va pf_enable 86is set to 87.Dv YES 88in 89.Xr rc.conf 5 , 90the rule file specified with the variable 91.Va pf_rules 92is loaded automatically by the 93.Xr rc 8 94scripts and the packet filter is enabled. 95.Pp 96The packet filter does not itself forward packets between interfaces. 97Forwarding can be enabled by setting the 98.Xr sysctl 8 99variables 100.Em net.inet.ip.forwarding 101and/or 102.Em net.inet6.ip6.forwarding 103to 1. 104Set them permanently in 105.Xr sysctl.conf 5 . 106.Pp 107At least one option must be specified. 108The options are as follows: 109.Bl -tag -width Ds 110.It Fl A 111Load only the queue rules present in the rule file. 112Other rules and options are ignored. 113.It Fl a Ar anchor 114Apply flags 115.Fl f , 116.Fl F , 117.Fl s , 118.Fl T , 119and 120.Fl z 121only to the rules in the specified 122.Ar anchor . 123In addition to the main ruleset, 124.Nm 125can load and manipulate additional rulesets by name, 126called anchors. 127The main ruleset is the default anchor. 128.Pp 129Anchors are referenced by name and may be nested, 130with the various components of the anchor path separated by 131.Sq / 132characters, similar to how file system hierarchies are laid out. 133The last component of the anchor path is where ruleset operations are 134performed. 135.Pp 136Evaluation of 137.Ar anchor 138rules from the main ruleset is described in 139.Xr pf.conf 5 . 140.Pp 141For example, the following will show all filter rules (see the 142.Fl s 143flag below) inside the anchor 144.Dq authpf/smith(1234) , 145which would have been created for user 146.Dq smith 147by 148.Xr authpf 8 , 149PID 1234: 150.Bd -literal -offset indent 151# pfctl -a "authpf/smith(1234)" -s rules 152.Ed 153.Pp 154Private tables can also be put inside anchors, either by having table 155statements in the 156.Xr pf.conf 5 157file that is loaded in the anchor, or by using regular table commands, as in: 158.Bd -literal -offset indent 159# pfctl -a foo/bar -t mytable -T add 1.2.3.4 5.6.7.8 160.Ed 161.Pp 162When a rule referring to a table is loaded in an anchor, the rule will use the 163private table if one is defined, and then fall back to the table defined in the 164main ruleset, if there is one. 165This is similar to C rules for variable scope. 166It is possible to create distinct tables with the same name in the global 167ruleset and in an anchor, but this is often bad design and a warning will be 168issued in that case. 169.Pp 170By default, recursive inline printing of anchors applies only to unnamed 171anchors specified inline in the ruleset. 172If the anchor name is terminated with a 173.Sq * 174character, the 175.Fl s 176flag will recursively print all anchors in a brace delimited block. 177For example the following will print the 178.Dq authpf 179ruleset recursively: 180.Bd -literal -offset indent 181# pfctl -a 'authpf/*' -sr 182.Ed 183.Pp 184To print the main ruleset recursively, specify only 185.Sq * 186as the anchor name: 187.Bd -literal -offset indent 188# pfctl -a '*' -sr 189.Ed 190.Pp 191To flush all rulesets and tables recursively, specify only 192.Sq * 193as the anchor name: 194.Bd -literal -offset indent 195# pfctl -a '*' -Fa 196.Ed 197.It Fl D Ar macro Ns = Ns Ar value 198Define 199.Ar macro 200to be set to 201.Ar value 202on the command line. 203Overrides the definition of 204.Ar macro 205in the ruleset. 206.It Fl d 207Disable the packet filter. 208.It Fl e 209Enable the packet filter. 210.It Fl F Ar modifier 211Flush the filter parameters specified by 212.Ar modifier 213(may be abbreviated): 214.Pp 215.Bl -tag -width xxxxxxxxx -compact 216.It Cm nat 217Flush the NAT rules. 218.It Cm queue 219Flush the queue rules. 220.It Cm ethernet 221Flush the Ethernet filter rules. 222.It Cm rules 223Flush the filter rules. 224.It Cm states 225Flush the state table (NAT and filter). 226.It Cm Sources 227Flush the source tracking table. 228.It Cm info 229Flush the filter information (statistics that are not bound to rules). 230.It Cm Tables 231Flush the tables. 232.It Cm osfp 233Flush the passive operating system fingerprints. 234.It Cm Reset 235Reset limits, timeouts and other options back to default settings. 236See the OPTIONS section in 237.Xr pf.conf 5 238for details. 239.It Cm all 240Flush all of the above. 241.El 242.Pp 243If 244.Fl a 245is specified as well and 246.Ar anchor 247is terminated with a 248.Sq * 249character, 250.Cm rules , 251.Cm Tables 252and 253.Cm all 254flush the given anchor recursively. 255.It Fl f Ar file 256Load the rules contained in 257.Ar file . 258This 259.Ar file 260may contain macros, tables, options, and normalization, queueing, 261translation, and filtering rules. 262With the exception of macros and tables, the statements must appear in that 263order. 264.It Fl g 265Include output helpful for debugging. 266.It Fl h 267Help. 268.It Fl i Ar interface 269Restrict the operation to the given 270.Ar interface . 271.It Fl K Ar host | network 272Kill all of the source tracking entries originating from the specified 273.Ar host 274or 275.Ar network . 276A second 277.Fl K Ar host 278or 279.Fl K Ar network 280option may be specified, which will kill all the source tracking 281entries from the first host/network to the second. 282.It Xo 283.Fl k 284.Ar host | network | label | id | key | gateway | source | nat 285.Xc 286Kill all of the state entries matching the specified 287.Ar host , 288.Ar network , 289.Ar label , 290.Ar id , 291.Ar key , 292.Ar gateway, 293.Ar source , 294or 295.Ar nat. 296.Pp 297For example, to kill all of the state entries originating from 298.Dq host : 299.Pp 300.Dl # pfctl -k host 301.Pp 302A second 303.Fl k Ar host 304or 305.Fl k Ar network 306option may be specified, which will kill all the state entries 307from the first host/network to the second. 308To kill all of the state entries from 309.Dq host1 310to 311.Dq host2 : 312.Pp 313.Dl # pfctl -k host1 -k host2 314.Pp 315To kill all states originating from 192.168.1.0/24 to 172.16.0.0/16: 316.Pp 317.Dl # pfctl -k 192.168.1.0/24 -k 172.16.0.0/16 318.Pp 319A network prefix length of 0 can be used as a wildcard. 320To kill all states with the target 321.Dq host2 : 322.Pp 323.Dl # pfctl -k 0.0.0.0/0 -k host2 324.Pp 325It is also possible to kill states by rule label, state key or state ID. 326In this mode the first 327.Fl k 328argument is used to specify the type 329of the second argument. 330The following command would kill all states that have been created 331from rules carrying the label 332.Dq foobar : 333.Pp 334.Dl # pfctl -k label -k foobar 335.Pp 336To kill one specific state by its key 337(protocol, host1, port1, direction, host2 and port2 in the same format 338of pfctl -s state), 339use the 340.Ar key 341modifier and as a second argument the state key. 342To kill a state whose protocol is TCP and originating from 34310.0.0.101:32123 to 10.0.0.1:80 use: 344.Pp 345.Dl # pfctl -k key -k 'tcp 10.0.0.1:80 <- 10.0.0.101:32123' 346.Pp 347To kill one specific state by its unique state ID 348(as shown by pfctl -s state -vv), 349use the 350.Ar id 351modifier and as a second argument the state ID and optional creator ID. 352To kill a state with ID 4823e84500000003 use: 353.Pp 354.Dl # pfctl -k id -k 4823e84500000003 355.Pp 356To kill a state with ID 4823e84500000018 created from a backup 357firewall with hostid 00000002 use: 358.Pp 359.Dl # pfctl -k id -k 4823e84500000018/2 360.Pp 361It is also possible to kill states created from a rule with the route-to/reply-to 362parameter set to route the connection through a particular gateway. 363Note that rules routing via the default routing table (not via a route-to 364rule) will have their rt_addr set as 0.0.0.0 or ::. 365To kill all states using a gateway of 192.168.0.1 use: 366.Pp 367.Dl # pfctl -k gateway -k 192.168.0.1 368.Pp 369A network prefix length can also be specified. 370To kill all states using a gateway in 192.168.0.0/24: 371.Pp 372.Dl # pfctl -k gateway -k 192.168.0.0/24 373.Pp 374States can also be killed based on their pre-NAT address: 375.Pp 376.Dl # pfctl -k nat -k 192.168.0.1 377.Pp 378To remove a source from a source limiter use: 379.Pp 380.Dl # pfctl -I 1 -k source -k 192.0.2.2 381.Pp 382.It Fl M 383Kill matching states in the opposite direction (on other interfaces) when 384killing states. 385This applies to states killed using the -k option and also will apply to the 386flush command when flushing states. 387This is useful when an interface is specified when flushing states. 388Example: 389.Pp 390.Dl # pfctl -M -i interface -Fs 391.Pp 392.It Fl m 393Merge in explicitly given options without resetting those 394which are omitted. 395Allows single options to be modified without disturbing the others: 396.Bd -literal -offset indent 397# echo "set loginterface fxp0" | pfctl -mf - 398.Ed 399.It Fl N 400Load only the NAT rules present in the rule file. 401Other rules and options are ignored. 402.It Fl n 403Do not actually load rules, just parse them. 404.It Fl O 405Load only the options present in the rule file. 406Other rules and options are ignored. 407.It Fl o Ar level 408Control the ruleset optimizer, overriding any rule file settings. 409.Pp 410.Bl -tag -width xxxxxxxxx -compact 411.It Cm none 412Disable the ruleset optimizer. 413.It Cm basic 414Enable basic ruleset optimizations. 415This is the default behaviour. 416.It Cm profile 417Enable basic ruleset optimizations with profiling. 418.El 419.Pp 420For further information on the ruleset optimizer, see 421.Xr pf.conf 5 . 422.It Fl P 423Do not perform service name lookup for port specific rules, 424instead display the ports numerically. 425.It Fl p Ar device 426Use the device file 427.Ar device 428instead of the default 429.Pa /dev/pf . 430.It Fl q 431Only print errors and warnings. 432.It Fl R 433Load only the filter rules present in the rule file. 434Other rules and options are ignored. 435.It Fl r 436Perform reverse DNS lookups on states and tables when displaying them. 437.Fl N 438and 439.Fl r 440are mutually exclusive. 441.It Fl s Ar modifier Op Fl R Ar id 442Show the filter parameters specified by 443.Ar modifier 444(may be abbreviated): 445.Pp 446.Bl -tag -width xxxxxxxxxxx -compact 447.It Cm nat 448Show the currently loaded NAT rules. 449.It Cm queue 450Show the currently loaded queue rules. 451When used together with 452.Fl v , 453per-queue statistics are also shown. 454When used together with 455.Fl v v , 456.Nm 457will loop and show updated queue statistics every five seconds, including 458measured bandwidth and packets per second. 459.It Cm ether 460Show the currently loaded Ethernet rules. 461When used together with 462.Fl v , 463the per-rule statistics (number of evaluations, 464packets, and bytes) are also shown. 465.It Cm rules 466Show the currently loaded filter rules. 467When used together with 468.Fl v , 469the per-rule statistics (number of evaluations, 470packets, and bytes) are also shown. 471When used together with 472.Fl g 473or 474.Fl vv , 475expired rules 476.Pq marked as Dq # expired 477are also shown. 478Note that the 479.Dq skip step 480optimization done automatically by the kernel 481will skip evaluation of rules where possible. 482Packets passed statefully are counted in the rule that created the state 483(even though the rule is not evaluated more than once for the entire 484connection). 485.It Cm Anchors 486Show the currently loaded anchors directly attached to the main ruleset. 487If 488.Fl a Ar anchor 489is specified as well, the anchors loaded directly below the given 490.Ar anchor 491are shown instead. 492If 493.Fl v 494is specified, all anchors attached under the target anchor will be 495displayed recursively. 496.It Cm states 497Show the contents of the state table. 498.It Cm Sources 499Show the contents of the source tracking table. 500.It Cm info 501Show filter information (statistics and counters). 502When used together with 503.Fl v , 504source tracking statistics, the firewall's 32-bit hostid number and the 505main ruleset's MD5 checksum for use with 506.Xr pfsync 4 507are also shown. 508.It Cm Running 509Show the running status and provide a non-zero exit status when disabled. 510.It Cm labels 511Show per-rule statistics (label, evaluations, packets total, bytes total, 512packets in, bytes in, packets out, bytes out, state creations) of 513filter rules with labels, useful for accounting. 514.It Cm timeouts 515Show the current global timeouts. 516.It Cm memory 517Show the current pool memory hard limits. 518.It Cm Tables 519Show the list of tables. 520.It Cm osfp 521Show the list of operating system fingerprints. 522.It Cm Interfaces 523Show the list of interfaces and interface groups available to PF. 524When used together with 525.Fl v , 526it additionally lists which interfaces have skip rules activated. 527When used together with 528.Fl vv , 529interface statistics are also shown. 530.Fl i 531can be used to select an interface or a group of interfaces. 532.It Cm LimiterStates 533Show information about state limiters. 534If 535.Fl R Ar id 536is specified as well, 537only the state limiter identified by 538.Ar id 539is shown. 540.It Cm LimiterSrcs 541Show information about source limiters. 542If 543.Fl R Ar id 544is specified as well, 545only the state limiter identified by 546.Ar id 547is shown. 548If 549.Fl v 550is specified, 551the address entries for the source pools are shown too. 552.It Cm all 553Show all of the above, except for the lists of interfaces and operating 554system fingerprints. 555.El 556.Pp 557Counters shown with 558.Fl s Cm info 559are: 560.Pp 561.Bl -tag -width xxxxxxxxxxxxxx -compact 562.It match 563explicit rule match 564.It bad-offset 565currently unused 566.It fragment 567invalid fragments dropped 568.It short 569short packets dropped 570.It normalize 571dropped by normalizer: illegal packets 572.It memory 573memory could not be allocated 574.It bad-timestamp 575bad TCP timestamp; RFC 1323 576.It congestion 577network interface queue congested 578.It ip-option 579bad IP/IPv6 options 580.It proto-cksum 581invalid protocol checksum 582.It state-mismatch 583packet was associated with a state entry, but sequence numbers did not match 584.It state-insert 585state insertion failure 586.It state-limit 587configured state limit was reached 588.It src-limit 589source node/connection limit 590.It synproxy 591dropped by synproxy 592.It map-failed 593address mapping failed 594.It translate 595no free ports in translation port range 596.El 597.It Fl S 598Do not perform domain name resolution. 599If a name cannot be resolved without DNS, an error will be reported. 600.It Fl t Ar table Fl T Ar command Op Ar address ... 601Specify the 602.Ar command 603(may be abbreviated) to apply to 604.Ar table . 605Commands include: 606.Pp 607.Bl -tag -width "expire number" -compact 608.It Cm add 609Add one or more addresses to a table. 610Automatically create a persistent table if it does not exist. 611.It Cm delete 612Delete one or more addresses from a table. 613.It Cm expire Ar number 614Delete addresses which had their statistics cleared more than 615.Ar number 616seconds ago. 617For entries which have never had their statistics cleared, 618.Ar number 619refers to the time they were added to the table. 620.It Cm flush 621Flush all addresses in a table. 622.It Cm kill 623Kill a table. 624.It Cm replace 625Replace the addresses of the table. 626Automatically create a persistent table if it does not exist. 627.It Cm show 628Show the content (addresses) of a table. 629.It Cm test 630Test if the given addresses match a table. 631.It Cm zero Op Ar address ... 632Clear all the statistics of a table, or only for specified addresses. 633.It Cm reset 634Clear statistics only for addresses with non-zero statistics. Addresses 635with counter values at zero and their 636.Dq Cleared 637timestamp are left untouched. 638.It Cm load 639Load only the table definitions from 640.Xr pf.conf 5 . 641This is used in conjunction with the 642.Fl f 643flag, as in: 644.Bd -literal -offset indent 645# pfctl -Tl -f pf.conf 646.Ed 647.El 648.Pp 649For the 650.Cm add , 651.Cm delete , 652.Cm replace , 653and 654.Cm test 655commands, the list of addresses can be specified either directly on the command 656line and/or in an unformatted text file, using the 657.Fl f 658flag. 659Comments starting with a 660.Sq # 661or 662.Sq \; 663are allowed in the text file. 664With these commands, the 665.Fl v 666flag can also be used once or twice, in which case 667.Nm 668will print the 669detailed result of the operation for each individual address, prefixed by 670one of the following letters: 671.Pp 672.Bl -tag -width XXX -compact 673.It A 674The address/network has been added. 675.It C 676The address/network has been changed (negated). 677.It D 678The address/network has been deleted. 679.It M 680The address matches 681.Po 682.Cm test 683operation only 684.Pc . 685.It X 686The address/network is duplicated and therefore ignored. 687.It Y 688The address/network cannot be added/deleted due to conflicting 689.Sq \&! 690attributes. 691.It Z 692The address/network has been cleared (statistics). 693.El 694.Pp 695Each table can maintain a set of counters that can be retrieved using the 696.Fl v 697flag of 698.Nm . 699For example, the following commands define a wide open firewall which will keep 700track of packets going to or coming from the 701.Ox 702FTP server. 703The following commands configure the firewall and send 10 pings to the FTP 704server: 705.Bd -literal -offset indent 706# printf "table <test> counters { ftp.openbsd.org }\en \e 707 pass out to <test>\en" | pfctl -f- 708# ping -qc10 ftp.openbsd.org 709.Ed 710.Pp 711We can now use the table 712.Cm show 713command to output, for each address and packet direction, the number of packets 714and bytes that are being passed or blocked by rules referencing the table. 715The time at which the current accounting started is also shown with the 716.Dq Cleared 717line. 718.Bd -literal -offset indent 719# pfctl -t test -vTshow 720 129.128.5.191 721 Cleared: Thu Feb 13 18:55:18 2003 722 In/Block: [ Packets: 0 Bytes: 0 ] 723 In/Pass: [ Packets: 10 Bytes: 840 ] 724 Out/Block: [ Packets: 0 Bytes: 0 ] 725 Out/Pass: [ Packets: 10 Bytes: 840 ] 726.Ed 727.Pp 728Similarly, it is possible to view global information about the tables 729by using the 730.Fl v 731modifier twice and the 732.Fl s 733.Cm Tables 734command. 735This will display the number of addresses on each table, 736the number of rules which reference the table, and the global 737packet statistics for the whole table: 738.Bd -literal -offset indent 739# pfctl -vvsTables 740--a-r-C test 741 Addresses: 1 742 Cleared: Thu Feb 13 18:55:18 2003 743 References: [ Anchors: 0 Rules: 1 ] 744 Evaluations: [ NoMatch: 3496 Match: 1 ] 745 In/Block: [ Packets: 0 Bytes: 0 ] 746 In/Pass: [ Packets: 10 Bytes: 840 ] 747 In/XPass: [ Packets: 0 Bytes: 0 ] 748 Out/Block: [ Packets: 0 Bytes: 0 ] 749 Out/Pass: [ Packets: 10 Bytes: 840 ] 750 Out/XPass: [ Packets: 0 Bytes: 0 ] 751.Ed 752.Pp 753As we can see here, only one packet \- the initial ping request \- matched the 754table, but all packets passing as the result of the state are correctly 755accounted for. 756Reloading the table(s) or ruleset will not affect packet accounting in any way. 757The two 758.Dq XPass 759counters are incremented instead of the 760.Dq Pass 761counters when a 762.Dq stateful 763packet is passed but does not match the table anymore. 764This will happen in our example if someone flushes the table while the 765.Xr ping 8 766command is running. 767.Pp 768When used with a single 769.Fl v , 770.Nm 771will only display the first line containing the table flags and name. 772The flags are defined as follows: 773.Pp 774.Bl -tag -width XXX -compact 775.It c 776For constant tables, which cannot be altered outside 777.Xr pf.conf 5 . 778.It p 779For persistent tables, which do not get automatically killed when no rules 780refer to them. 781.It a 782For tables which are part of the 783.Em active 784tableset. 785Tables without this flag do not really exist, cannot contain addresses, and are 786only listed if the 787.Fl g 788flag is given. 789.It i 790For tables which are part of the 791.Em inactive 792tableset. 793This flag can only be witnessed briefly during the loading of 794.Xr pf.conf 5 . 795.It r 796For tables which are referenced (used) by rules. 797.It h 798This flag is set when a table in the main ruleset is hidden by one or more 799tables of the same name from anchors attached below it. 800.It C 801This flag is set when per-address counters are enabled on the table. 802.El 803.It Fl v 804Produce more verbose output. 805A second use of 806.Fl v 807will produce even more verbose output including ruleset warnings. 808See the previous section for its effect on table commands. 809.It Fl x Ar level 810Set the debug 811.Ar level 812(may be abbreviated) to one of the following: 813.Pp 814.Bl -tag -width xxxxxxxxxxxx -compact 815.It Fl x Cm none 816Do not generate debug messages. 817.It Fl x Cm urgent 818Generate debug messages only for serious errors. 819.It Fl x Cm misc 820Generate debug messages for various errors. 821.It Fl x Cm loud 822Generate debug messages for common conditions. 823.El 824.It Fl z 825Clear per-rule statistics. 826.El 827.Sh FILES 828.Bl -tag -width "/etc/pf.conf" -compact 829.It Pa /etc/pf.conf 830Packet filter rules file. 831.It Pa /etc/pf.os 832Passive operating system fingerprint database. 833.El 834.Sh SEE ALSO 835.Xr pf 4 , 836.Xr pf.conf 5 , 837.Xr pf.os 5 , 838.Xr rc.conf 5 , 839.Xr services 5 , 840.Xr sysctl.conf 5 , 841.Xr authpf 8 , 842.Xr ftp-proxy 8 , 843.Xr rc 8 , 844.Xr sysctl 8 845.Sh HISTORY 846The 847.Nm 848program and the 849.Xr pf 4 850filter mechanism appeared in 851.Ox 3.0 . 852They first appeared in 853.Fx 5.3 854ported from the version in 855.Ox 3.5 856