firehol-group(5)

firehol-group5

Group commands with common options

Usage

group with rule-params

group end

Overview

The group command allows you to group together multiple client and server commands.

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.

Nested groups may be used.

Examples

This:

interface any world
  client all accept
  server http accept
  # Provide these services to trusted hosts only
  server "ssh telnet" accept src "192.0.2.1 192.0.2.2"

can be replaced to produce a more efficient firewall by this:

interface any world
  client all accept
  server http accept
  # Provide these services to trusted hosts only
  group with src "192.0.2.1 192.0.2.2"
    server telnet accept
    server ssh accept
  group end

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Authors

FireHOL Team.

From firehol-doc 3.1.8+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.