|
Lines 605-622
Link Here
|
| 605 |
interface. |
605 |
interface. |
| 606 |
.It Ar options : |
606 |
.It Ar options : |
| 607 |
.Bl -tag -width indent |
607 |
.Bl -tag -width indent |
| 608 |
.It Cm keep-state Op Ar method |
608 |
.It Xo Cm keep-state Op Ar method |
|
|
609 |
.Op Cm lifetime Ar number |
| 610 |
.Xc |
| 609 |
Upon a match, the firewall will create a dynamic rule, whose |
611 |
Upon a match, the firewall will create a dynamic rule, whose |
| 610 |
default behaviour is to matching bidirectional traffic between |
612 |
default behaviour is to match bidirectional traffic between |
| 611 |
source and destination IP/port using the same protocol. |
613 |
source and destination IP/port using the same protocol. |
| 612 |
The rule has a limited lifetime (controlled by a set of |
614 |
The rule has a limited lifetime controlled by a set of |
| 613 |
.Xr sysctl 8 |
615 |
.Xr sysctl 8 |
| 614 |
variables), and the lifetime is refreshed every time a matching |
616 |
variables that may be overridden on a per-rule basis. |
| 615 |
packet is found. |
617 |
The lifetime is refreshed every time a matching packet is |
|
|
618 |
found. |
| 616 |
.Pp |
619 |
.Pp |
| 617 |
The actual behaviour can be modified by specifying a different |
620 |
The actual behaviour can be modified by specifying a different |
| 618 |
.Ar method , |
621 |
.Ar method , |
| 619 |
although at the moment only the default one is specified. |
622 |
although at the moment only the default one is specified. |
|
|
623 |
.Pp |
| 624 |
The default rule lifetime may be overridden for a specific |
| 625 |
rule by appending |
| 626 |
.Cm lifetime Ar number |
| 627 |
to explicitly set the number of seconds for the dynamic rule |
| 628 |
lifetime. |
| 629 |
.Pp |
| 630 |
For TCP rules, explicitly setting a rule lifetime overrides the |
| 631 |
default setting stored in the |
| 632 |
.Xr sysctl 8 |
| 633 |
variable |
| 634 |
.Em net.inet.ip.fw.dyn_ack_lifetime . |
| 635 |
For non-TCP rules, it overrides the |
| 636 |
.Xr sysctl 8 |
| 637 |
variable |
| 638 |
.Em net.inet.ip.fw.dyn_short_lifetime |
| 639 |
instead. |
| 620 |
.It Cm bridged |
640 |
.It Cm bridged |
| 621 |
Matches only bridged packets. |
641 |
Matches only bridged packets. |
| 622 |
This can be useful for multicast or broadcast traffic, which |
642 |
This can be useful for multicast or broadcast traffic, which |