From 6f7189bc9ef573f7ceaec56ce7f2f612156552ba Mon Sep 17 00:00:00 2001 From: Dru Lavigne Date: Tue, 25 Feb 2014 17:59:16 +0000 Subject: [PATCH] Initial prep work for IPFW section so that it starts to match layout of other firewall sections. Many more commits to come. Sponsored by: iXsystems --- .../books/handbook/firewalls/chapter.xml | 83 ++++++++----------- 1 file changed, 34 insertions(+), 49 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml b/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml index 51ce505ecc..ccd904b7da 100644 --- a/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/firewalls/chapter.xml @@ -1639,10 +1639,6 @@ block drop out quick on $ext_if from any to $martians net.inet.ip.fw.verbose=1 net.inet.ip.fw.verbose_limit=5 - - - - Kernel Options kernel options @@ -1720,12 +1716,8 @@ net.inet.ip.fw.verbose_limit=5 option or a rule to explicitly allow these connections is missing. - - - <filename>/etc/rc.conf</filename> Options - - Enables the firewall: + The following /etc/rc.conf option enables the firewall: firewall_enable="YES" @@ -1876,7 +1868,7 @@ ipfw add deny out - IPFW Rulesets + IPFW Rule Syntax IPFW @@ -1907,14 +1899,6 @@ ipfw add deny out via options. For a complete rule syntax description, refer to &man.ipfw.8;. - - Be careful when working with firewall rules, as it is - easy to lock out even the administrator. - - - - Rule Syntax - IPFW @@ -1930,25 +1914,28 @@ ipfw add deny out CMD RULE_NUMBER ACTION LOGGING SELECTION STATEFUL - - CMD - + + + CMD + Each new rule has to be prefixed with add to add the rule to the internal table. - - - - RULE_NUMBER + + + + RULE_NUMBER + Each rule is associated with a rule_number in the range of 1 to 65535. - - - - ACTION + + + + ACTION + A rule can be associated with one of the following actions. The specified action will be executed when the packet matches the selection criterion of the rule. @@ -1977,11 +1964,12 @@ ipfw add deny out Both words mean the same thing, which is to discard packets that match this rule. The search terminates. - - - - Logging + + + + Logging + When a packet matches a rule with the log keyword, a message will be logged to &man.syslogd.8; with a facility name of @@ -2002,11 +1990,12 @@ ipfw add deny out final action on the packet. The administrator decides which rules to enable logging on. - - - - Selection + + + + Selection + The keywords described in this section are used to describe attributes of the packet to be checked when determining whether rules match the packet or not. @@ -2087,18 +2076,12 @@ ipfw add deny out specified. limit and keep-state can not be used on the same rule as they provide the same stateful function. - - - - - Stateful Rule Option - - - IPFW - - stateful filtering - + + + + Stateful Rule Option + The check-state option is used to identify where in the IPFW ruleset the packet is to be tested against the dynamic rules facility. On a match, the @@ -2119,7 +2102,9 @@ ipfw add deny out combination occurred. If this count is greater than the value specified by limit, the packet is discarded. - + + + Logging Firewall Messages