---
name: "firehol-client"
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-client"
---

# firehol-client(5)

client command

## NAME

firehol-client - client command

## SYNOPSIS

{ client \| client46 } *service* *action* \[*rule-params*\]

client4 *service* *action* \[*rule-params*\]

client6 *service* *action* \[*rule-params*\]

## DESCRIPTION

The `client` subcommand defines a client of a service on an interface or router. Any *rule-params* given to a parent interface or router are inherited by the client, but are reversed.

For FireHOL a client is the source of a request. Even though this is more complex for some multi-socket services, to FireHOL a client always initiates the connection.

The *service* parameter is one of the supported service names from [firehol-services(5)](/firehol-services/5.md). Multiple services may be specified, space delimited in quotes.

The *action* can be any of the actions listed in [firehol-actions(5)](/firehol-actions/5.md).

The *rule-params* define a set of rule parameters to further restrict the traffic that is matched to this service. See [firehol-params(5)](/firehol-params/5.md) for more details.

**Note**

Writing `client4` is equivalent to writing `ipv4 client` and ensures this subcommand is applied only in the IPv4 firewall rules.

Writing `client6` is equivalent to writing `ipv6 client` and ensures this subcommand is applied only in the IPv6 firewall rules.

Writing `client46` is equivalent to writing `both client` and ensures this subcommand is applied in both the IPv4 and IPv6 firewall rules; it cannot be used as part an interface or router that is IPv4 or IPv6 only.

The default `client` inherits its behaviour from the enclosing interface or router.

## EXAMPLES

-

  ```
  client smtp accept
  client "smtp pop3" accept
  client smtp accept src 192.0.2.1
  client smtp accept log "mail packet" src 192.0.2.1
  ```

## SEE ALSO

- •

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

- •

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

- •

  [firehol-modifiers(5)](/firehol-modifiers/5.md) - ipv4/ipv6 selection

- •

  [firehol-services(5)](/firehol-services/5.md) - services list

- •

  [firehol-actions(5)](/firehol-actions/5.md) - actions for rules

- •

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

- •

  [firehol-server(5)](/firehol-server/5.md) - server subcommand

- •

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

- •

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

- •

  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.
