.\" Automatically generated by Pandoc 3.1.3 .nh .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "firehol-group" "5" "Built 30 Mar 2024" "FireHOL Reference" "3.1.7" .hy .SH NAME .PP firehol-group - group commands with common options .SH SYNOPSIS .PP group with \f[I]rule-params\f[R] .PP group end .SH DESCRIPTION .PP The \f[V]group\f[R] command allows you to group together multiple \f[V]client\f[R] and \f[V]server\f[R] commands. .PP Grouping commands with common options (see firehol-params(5)) allows the option values to be checked only once in the generated firewall rather than once per service, making it more efficient. .PP Nested groups may be used. .SH EXAMPLES .PP This: .IP .nf \f[C] interface any world client all accept server http accept # Provide these services to trusted hosts only server \[dq]ssh telnet\[dq] accept src \[dq]192.0.2.1 192.0.2.2\[dq] \f[R] .fi .PP can be replaced to produce a more efficient firewall by this: .IP .nf \f[C] interface any world client all accept server http accept # Provide these services to trusted hosts only group with src \[dq]192.0.2.1 192.0.2.2\[dq] server telnet accept server ssh accept group end \f[R] .fi .SH SEE ALSO .IP \[bu] 2 firehol(1) - FireHOL program .IP \[bu] 2 firehol.conf(5) - FireHOL configuration .IP \[bu] 2 firehol-interface(5) - interface definition .IP \[bu] 2 firehol-router(5) - router definition .IP \[bu] 2 firehol-params(5) - optional rule parameters .IP \[bu] 2 FireHOL Website (http://firehol.org/) .IP \[bu] 2 FireHOL Online PDF Manual (http://firehol.org/firehol-manual.pdf) .IP \[bu] 2 FireHOL Online Documentation (http://firehol.org/documentation/) .SH AUTHORS FireHOL Team.