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

# firehol-classify(5)

classify traffic for traffic shaping tools

## NAME

firehol-classify - classify traffic for traffic shaping tools

## SYNOPSIS

{ classify \| classify46 } *class* \[*rule-params*\]

classify4 *class* \[*rule-params*\]

classify6 *class* \[*rule-params*\]

## DESCRIPTION

The `classify` helper command puts matching traffic into the specified traffic shaping class.

The *class* is a class as used by [iptables(8)](/iptables/8.md) and [tc(8)](/tc/8.md) (e.g. MAJOR:MINOR).

The *rule-params* define a set of rule parameters to match the traffic that is to be classified. See [firehol-params(5)](/firehol-params/5.md) for more details.

Any classify commands will affect all traffic matched. They must be declared before the first router or interface.

## EXAMPLES

-

  ```
   # Put all smtp traffic leaving via eth1 in class 1:1
   classify 1:1 outface eth1 proto tcp dport 25
  ```

## SEE ALSO

- •

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

- •

  [iptables(8)](/iptables/8.md) ⟨http://ipset.netfilter.org/iptables.man.html⟩\\c  - administration tool for IPv4 firewalls

- •

  [ip6tables(8)](/ip6tables/8.md) ⟨http://ipset.netfilter.org/ip6tables.man.html⟩\\c  - administration tool for IPv6 firewalls

- •

  [tc(8)](/tc/8.md) - show / manipulate traffic control settings

- •

  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

- •

  Linux Advanced Routing & Traffic Control HOWTO ⟨http://lartc.org/howto/⟩\\c

## AUTHORS

FireHOL Team.
