---
name: "firehol-group"
section: "5"
platform: "linux"
package: "firehol-doc"
version: "3.1.8+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/firehol-group"
---

# firehol-group(5)

group commands with common options

## NAME

firehol-group - group commands with common options

## SYNOPSIS

group with *rule-params*

group end

## DESCRIPTION

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

Grouping commands with common options (see [firehol-params(5)](/firehol-params/5.md)) 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
  ```

## SEE ALSO

- •

  [firehol(1)](/firehol/1.md) - FireHOL program

- •

  [firehol.conf(5)](/firehol.conf/5.md) - FireHOL configuration

- •

  [firehol-interface(5)](/firehol-interface/5.md) - interface definition

- •

  [firehol-router(5)](/firehol-router/5.md) - router definition

- •

  [firehol-params(5)](/firehol-params/5.md) - optional rule parameters

- •

  FireHOL Website ⟨http://firehol.org/⟩\\c

- •

  FireHOL Online PDF Manual ⟨http://firehol.org/firehol-manual.pdf⟩\\c

- •

  FireHOL Online Documentation ⟨http://firehol.org/documentation/⟩\\c

## AUTHORS

FireHOL Team.
