|
Lines 640-657
Link Here
|
| 640 |
interface. |
640 |
interface. |
| 641 |
.It Ar options : |
641 |
.It Ar options : |
| 642 |
.Bl -tag -width indent |
642 |
.Bl -tag -width indent |
| 643 |
.It Cm keep-state Op Ar method |
643 |
.It Xo Cm keep-state Op Ar method |
|
|
644 |
.Op Cm lifetime Ar number |
| 645 |
.Xc |
| 644 |
Upon a match, the firewall will create a dynamic rule, whose |
646 |
Upon a match, the firewall will create a dynamic rule, whose |
| 645 |
default behaviour is to matching bidirectional traffic between |
647 |
default behaviour is to match bidirectional traffic between |
| 646 |
source and destination IP/port using the same protocol. |
648 |
source and destination IP/port using the same protocol. |
| 647 |
The rule has a limited lifetime (controlled by a set of |
649 |
The rule has a limited lifetime controlled by a set of |
| 648 |
.Xr sysctl 8 |
650 |
.Xr sysctl 8 |
| 649 |
variables), and the lifetime is refreshed every time a matching |
651 |
variables that may be overridden on a per-rule basis. |
| 650 |
packet is found. |
652 |
The lifetime is refreshed each time a matching packet is |
|
|
653 |
found. |
| 651 |
.Pp |
654 |
.Pp |
| 652 |
The actual behaviour can be modified by specifying a different |
655 |
The actual behaviour can be modified by specifying a different |
| 653 |
.Ar method , |
656 |
.Ar method , |
| 654 |
although at the moment only the default one is specified. |
657 |
although at the moment only the default one is specified. |
|
|
658 |
.Pp |
| 659 |
The default rule lifetime may be overridden for a specific |
| 660 |
rule by appending |
| 661 |
.Cm lifetime Ar number |
| 662 |
to explicitly set the number of seconds for the dynamic rule |
| 663 |
lifetime. |
| 664 |
.Pp |
| 665 |
For TCP rules, explicitly setting a rule lifetime overrides the |
| 666 |
default setting stored in the |
| 667 |
.Xr sysctl 8 |
| 668 |
variable |
| 669 |
.Em net.inet.ip.fw.dyn_ack_lifetime . |
| 670 |
For non-TCP rules, it overrides the |
| 671 |
.Xr sysctl 8 |
| 672 |
variable |
| 673 |
.Em net.inet.ip.fw.dyn_short_lifetime |
| 674 |
instead. |
| 655 |
.It Cm bridged |
675 |
.It Cm bridged |
| 656 |
Matches only bridged packets. |
676 |
Matches only bridged packets. |
| 657 |
This can be useful for multicast or broadcast traffic, which |
677 |
This can be useful for multicast or broadcast traffic, which |